yktoo / indicator-sound-switcher

Sound input/output selector indicator for Linux

Home Page:https://yktoo.com/en/software/sound-switcher-indicator/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using the switch scripts in external python software

T0nio opened this issue · comments

commented

Hi !

I'm trying to build a script that would need to be able to switch audio output.
I don't find a simple way to do that. I found this indicator sound switcher that seems to work like a charm, and I was wondering if it was possible to use it easily from CLI or another python software (listing the outputs and selecting one).

If it's not possible, I'll read the source code, but I was wondering if some API was already available from current project

Thanks

No, this is not the intended use of this app. This application is essentially a frontend to PulseAudio, and there are lots of other ways to communicate with the daemon. You can do it directly via the API, like SSI does (however that's a bit of a challenge due to the asynchronous nature of PulseAudio), or employ other CLI utilities like pacmd.