DEV Community

Cover image for To play audio from one browser through your speakers and from another browser through Bluetooth headphones on Ubuntu,
Bilal Ahmad Khan
Bilal Ahmad Khan

Posted on

To play audio from one browser through your speakers and from another browser through Bluetooth headphones on Ubuntu,

To play audio from one browser through your speakers and from another browser through Bluetooth headphones on Ubuntu, you need to use PulseAudio, Ubuntu's sound system. Here is a step-by-step guide:

First, make sure your Bluetooth device is paired and connected to your Ubuntu machine. You can do this by going to the system settings, finding the Bluetooth settings, and then scanning for and connecting to your device.

Install PulseAudio Volume Control if it is not already installed. You can do so by opening a Terminal window and using the following command:

sudo apt-get install pavucontrol
Enter fullscreen mode Exit fullscreen mode
After connecting your Bluetooth device and installing PulseAudio `Volume Control, open two different browsers or browser instances. For instance, you could open one page in Chrome and another in Firefox.

Play the music from each browser. Open PulseAudio Volume Control. You can do this by typing pavucontrol in a Terminal window or by searching for it in the applications menu.
Go to the 'Playback' tab. Here, you should see your two browser instances listed as audio sources.

For each browser, you can choose an output device. Click the button on the right side of the browser source and choose your desired output - one will be your speakers, and the other the Bluetooth device.
Enter fullscreen mode Exit fullscreen mode

Please note, the effectiveness of this method can depend on the exact setup and configuration of your Ubuntu system. If you face any issues, feel free to seek further assistance.

Top comments (0)