I created a namespace and ran a terminal like that:
ip netns exec <namespace> gnome-terminal
As by default namespace are handled in root, when I open the terminal I change to my normal user:
su <user>
Then I run firefox, spotify, etc. the sound is not heard in headphones, something you notice is that in the sound configuration (gnome) is that there is no application that emits sound. When done normally, the application that emits sound appears in a list, however when done as explained, the list appears empty.