Skip to main content

Timeline for answer to Changing audio output from terminal by George Vasiliou

Current License: CC BY-SA 4.0

Post Revisions

5 events
when toggle format what by license comment
Nov 7, 2022 at 15:34 comment added Cadoiz This askubuntu answer showed me pacmd list-sinks. Analogously, you could use an easier command: pacmd list-cards |grep -E 'index:|name:|output:'
Nov 7, 2022 at 15:26 comment added Cadoiz Unfortunately my result was the same as with other methods: The output seems to change according to console, but not according to the gui util and real sound. Note that there could be more than one active sound profile - and you can omit the second grep to also see the "dead" indices.
Nov 7, 2022 at 15:25 comment added Cadoiz Thanks for the answer. Pulse Audio can be installed with one of apt-get install pulseaudio-utils, brew install pulseaudio, brew install pulumi or nix-env -iA nixpkgs.pulseaudio among others. I tried to extend your command for listing the output profiles as follows: pacmd list |grep -E 'Default |module\(s\)|sink\(s\)|source\(s\)|client\(s\)|card\(s\)|sink input|index:|output:' | grep -B2 'output:' - that way, you will easily see the index of each profile and to what it belongs.
Nov 7, 2022 at 12:23 comment added George Vasiliou @Cadoiz pacmd was (at 2018) the name of Pulse Audio deamon. I have not checked recently if the deamon name has been changed. Search about Pulse Audio.
Aug 1, 2018 at 0:53 history answered George Vasiliou CC BY-SA 4.0