I have a working multiroom audio setup running on a raspberry pi.
My picroft (another raspberry pi) is running great using matrix voice as input device and 3,5mm cable with external speakers as output device.
What i want to do is, that mycroft uses my external pulseaudio sink as output which does not work.
I verified that the following command gives output on my multiroom audio setup correctly (running as user pi)
As far as I understand Mycroft takes control over PulseAudio as soon as Mycroft-Audio services are started. This may be the reason why the test on the console works as desired but paplay issued from Mycroft does not.
Maybe you can try editing /etc/pulse/default.pa and change the default-sink?
Thanks for your reply @Dominik.
I double checked what i did and the activation sound is send correctly through my multiroom setup.
To be sure i edited /etc/mycroft/mycroft.conf too (additional to /home/pi/mycroft/…/mycroft.conf)
But the tts output is still played through local 3,5mm speaker.
Maybe tts output is an mp3 stream and i should change this line "play_mp3_cmdline": "mpg123 -a hw:0,0 %1",
(not 100% sure if everything is still up to date with current development, but think the pulseaudio section might give you enough pointers to keep going)
Even if your link seems broken you got the right “keyword” for me - mplayer.
The following steps made mycroft use my existing remote pulseaudio sinks for tts.
sudo apt-get install mplayer
edit /etc/pulse/default.pa and adding the following line load-module module-tunnel-sink sink_name=<localSinkAlias> server=<pulseaudioServer> sink=<remoteSinkName>
Modify mycroft.conf and replace the following content "play_mp3_cmdline": "mpg123 %1",
with "play_mp3_cmdline": "mplayer -ao pulse::<localSinkAlias> -volume 40 %1",