fossasia / susi_linux

Hardware for SUSI AI https://susi.ai
Apache License 2.0
1.61k stars 148 forks source link

Playback of sounds either via python-vlc directly or soundserver #509

Closed norbusan closed 5 years ago

norbusan commented 5 years ago

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:

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:

PYTHONPATH=<PATH-TO>/susi_installer/ python3 -m main -v -v

This should work even without a sound server

If you want to test the sound server, call

python3 <PATH-TO>/susi_installer/soundserver/soundserver.py

After that restart susi_linux, and all output should be done via the sound server and connectins are logged.

Todo

norbusan commented 5 years ago

Thanks both of you