The following PR adds an abstraction player that is used to play music, videos,
beeps, adjust volume etc etc.
The actual module player can operate in two modes:
direct play using python-vlc, using the module VlcPlayer (in susi_installer)
playback via soundserver
The soundserver and VlcPlayer module are in susi_installer.
By default the sound server is used, but on initialization the availability is tested
and if hte server is not available, we switch to direct playback.
Reason
Support contorl of playback of music from mobile apps
simplify code of sound output
full featured susi hotword and answering during playback
Properties
music playback's volume is reduced during voice detection and answering
volume is restored after Susi said something (liek "whats the time")
How to test
After starting susi_server, start susi_linux the usual way, but help locating the vlcplaye rmodule:
PYTHONPATH=<PATH-TO>/susi_installer/ python3 -m main -v -v
The following PR adds an abstraction
player
that is used to play music, videos, beeps, adjust volume etc etc.The actual module player can operate in two modes:
python-vlc
, using the moduleVlcPlayer
(insusi_installer
)The soundserver and VlcPlayer module are in
susi_installer
.By default the sound server is used, but on initialization the availability is tested and if hte server is not available, we switch to direct playback.
Reason
Properties
How to test
After starting susi_server, start susi_linux the usual way, but help locating the vlcplaye rmodule:
This should work even without a sound server
If you want to test the sound server, call
After that restart susi_linux, and all output should be done via the sound server and connectins are logged.
Todo