{"id":5391,"date":"2015-11-03T14:54:23","date_gmt":"2015-11-03T14:54:23","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=5391"},"modified":"2015-11-03T14:54:23","modified_gmt":"2015-11-03T14:54:23","slug":"switch-audio-devices-pyaudio-selector-indicator","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2015\/11\/switch-audio-devices-pyaudio-selector-indicator\/","title":{"rendered":"Easy Switch Between Audio Devices with PyAudioSelector Indicator"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/11\/switch-between-sound-sources-devices.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/11\/switch-between-sound-sources-devices.png\" alt=\"switch between sound sources and devices\" width=\"245\" height=\"250\" class=\"aligncenter size-full wp-image-5392\" \/><\/a><\/p>\n<p>PyAudioSelector, an open-source project written in Python, is a GTK3 indicator applet for Ubuntu users to easy switch between audio devices for all or some of the audio sources.<\/p>\n<p>With the indicator applet, you can even set the different audio sources to different output devices.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/11\/PyAudioSelector.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/11\/PyAudioSelector-600x353.jpg\" alt=\"PyAudioSelector\" width=\"600\" height=\"353\" class=\"aligncenter size-large wp-image-5393\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/11\/PyAudioSelector-600x353.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/11\/PyAudioSelector-450x265.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/11\/PyAudioSelector.jpg 669w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><b>How to Install:<\/b><\/p>\n<p>The project is now under early development stage. An Ubuntu PPA will be created to make it easy to install. And before that, follow below steps to install a git release.<\/p>\n<p>Open terminal from the Unity Dash, App Launcher, or via Ctrl+Alt+T shortcut key. When it opens, run below commands one by one:<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/09\/launch-terminal-emulator.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/09\/launch-terminal-emulator.jpg\" alt=\"launch-terminal-emulator\" width=\"544\" height=\"228\" class=\"aligncenter size-full wp-image-5291\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/09\/launch-terminal-emulator.jpg 544w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/09\/launch-terminal-emulator-450x188.jpg 450w\" sizes=\"auto, (max-width: 544px) 100vw, 544px\" \/><\/a><\/p>\n<p>1. Install git if you don&#8217;t have it.<\/p>\n<pre style=\"border:none;\">sudo apt-get update && sudo apt-get install git<\/pre>\n<p>2. Grab the source:<\/p>\n<pre style=\"border:none;\">cd \/tmp\/ && git clone https:\/\/github.com\/agustinmista\/PyAudioSelector.git<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/11\/download-pyaudioselector.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/11\/download-pyaudioselector-600x138.jpg\" alt=\"download-pyaudioselector\" width=\"600\" height=\"138\" class=\"aligncenter size-large wp-image-5394\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/11\/download-pyaudioselector-600x138.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/11\/download-pyaudioselector-450x104.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/11\/download-pyaudioselector.jpg 869w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>3. Navigate to the source folder and run the install script:<\/p>\n<pre style=\"border:none;\">cd \/tmp\/PyAudioSelector && sudo sh install.sh<\/pre>\n<p>Once installed, it starts automatically at next login.<\/p>\n<p><b>How to Uninstall:<\/b><\/p>\n<p>There is not an uninstall script at the moment, but you can easily remove the applet by running below commands one by one:<\/p>\n<p>1. Remove the python script:<\/p>\n<pre style=\"border:none;\">sudo rm \/usr\/local\/bin\/PyAudioSelector\/PyAudioSelector.py<\/pre>\n<p>2. Remove the config file:<\/p>\n<pre style=\"border:none;\">sudo rm \/usr\/share\/PyAudioSelector\/config.ini<\/pre>\n<p>3. Finally remove the autostart file:<\/p>\n<pre style=\"border:none;\">rm ~\/.config\/autostart\/PyAudioSelector.desktop<\/pre>\n<p>more at <a href=\"https:\/\/github.com\/agustinmista\/PyAudioSelector\" target=\"_blank\">github.com<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>PyAudioSelector, an open-source project written in Python, is a GTK3 indicator applet for Ubuntu users to easy switch between audio devices for all or some of the audio sources. With the indicator applet, you can even set the different audio sources to different output devices. How to Install: The project is now under early development [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[277],"class_list":["post-5391","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-audio"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/5391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=5391"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/5391\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=5391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=5391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=5391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}