PulseAudio handles the sound that is emitted by your Linux application. It works like a proxy or a sound server which can manipulate the sound before it reaches your ears.PulseAudio has the ability to combine sounds from different sources (aka mixing). It can alter the sound format, decrease or increase sound channels, send the sound of one machine to another one.
In this tutorial, you will learn how to use PulseAudio in order to Manage Sounds on Ubuntu 18.04.
Before you start, you would need to ensure that main, universe, multiverse and restricted software sources are already enabled on your Ubuntu 18.04 . This is because some of the required packages that would need to be installed will be retrieved from software sources.
In order to achieve this using a GUI, look up Software & Updates application by writing ‘software’ in the activities section as shown below.
Once you open the application, ensure the the marked checkboxes are ticked as shown in the snapshot below.
Now close Software & Updates application and execute the command below in order to update the package repository list:
sudo apt update
You can install PulseAudio with the following command:
sudo apt install pulseaudio
PulseAudio Ubuntu 18.04
Your computer would need to be restarted.
You can configure sound volume using PulseAudio graphical user interface or frontend which would need to be installed as well. Run the command below to do so :
sudo apt install pavucontrol
Hit ‘y’ and press Enter to continue.
To run Pavucontrol, open up the activities screen and type in ‘pulse’ in the input field as shown below :
Once you click on the Pavucontrol icon, you will see the following screen :
On the Output Devices tab, you have the possibility to configure the sound output by dragging the slider to the left or to the right.
To mute or unmute the sound, click on the toggle button as shown below in the Output Devices tab.
PulseAudio allows you to control your speakers separately. Clicking on the lock button in the Output Devices tab will display two sliders as shown in the snapshot below :
On the Input Devices tab, you can control the sound from the input devices using the slider as shown below :
Other input devices (Microphone/Line In/Analog Input/Video) can be selected from the Port dropdown menu in the Input Devices tab.
Similarly, two sliders will show up when you click on the Lock button :
To display specific input devices in case you have several, use the Show drop down menu in the Input Devices tab.
Sound profiles can be changed as well from the Configuration tab. By default, Analog Stereo Duplex is the selected.
In the Playback tab, you have the possibility to control the sound for individual apps since any running media player application will show up in this tab. This can be done by using the corresponding slider.
When using VLC Media Player for instance, it will show up in the Playback tab :
You can control the sound while recording as well. The recording controls can be found on the Recording tab. Here is example below using GNOME Recorder :
Ubuntu audio recording