In this video, I cover a method of setting a default speaker and microphone, aka audio output and input at boot in Ubuntu 22.04.
Step 1. Specify A Default Speaker or Audio Output.
To bring up a list of all speaker outputs, run the following Terminal command.
pactl list short sinks
Take a copy of the output you want to use, for example, alsa_output.pci-0000_09_00.4.analog-stereo
Next, create a command that will set this speaker as default on the system.
This can be done with the following Terminal command.
pactl_set-default-sink
For example, for me the full command would be:
pactl_set-default-sink alsa_output.pci-0000_09_00.4.analog-stereo
Take a copy of this command, open Startup Applications Preferences, create a new entry called Speaker and paste the command into the Command section and click Save.
This command will now run at boot and set the output.
Step 2. Specify A Default Microphone or Audio Input.
To bring up a list of available inputs, run the following Terminal command.
pactl list short sources
Take a copy of the input you want to use, for example, alsa_input.usb-Blue_Microphones_Yeti_Stereo_Microphone_797_2019_09_15_37966-00.analog-stereo
Next, create a command that will set this input as default for the system, which can be done with the following Terminal command.
pactl_set-default-source command.
For example, the full command would be:
pactl set-default-source alsa_input.usb-Blue_Microphones_Yeti_Stereo_Microphone_797_2019_09_15_37966-00. analog-stereo
Once again, open Startup Applications Preferences, create a new entry called Microphone, paste the command into the Command section, and click Save.
Now, with both entries in the Startup Application, the commands will run at login and set both speakers and microphones to the ones you want to use as default.
#gnome #ubuntu #audio
Discord - https://discord.gg/3SxGk3WG2D
Facebook - https://www.facebook.com/Intelligent-Gaming-101640054531594
Mastodon - https://mastodon.social/@Intelligentgaming
Reddit - https://www.reddit.com/r/IntelligentGaming2020/
Twitter - https://twitter.com/inspectorgecko
13 Comments