nico d79982b830 8 жил өмнө
..
tests 8ea917529a [Tests] #234 player modularity tests 8 жил өмнө
README.md d79982b830 8 жил өмнө
__init__.py 3e5c2b0fa9 [Feature] #234 Player modularity 8 жил өмнө
pyalsaaudio.py dec1438350 [Test] replace ffmpeg to libav-tools and start refactoring test 8 жил өмнө

README.md

PyAlsaAudio

This Player is based on the alsa engine

Input parameters

parameter required default choices comment
device no "default" Select the device to use for alsa
convert_to_wav no TRUE True, False Convert the generated file from the TTS into wav before reading

Example settings

Here is n example of configuration you would use if your TTS was acapela. As this TTS generate an MP3 file, this last need to be converted into wav.

default_player: "pyalsaaudio"

players:
  - pyalsaaudio:
     device: "default"
     convert_to_wav: True

Notes

Define the default card to use in the device parameter. For example, on a Raspberry Pi, the default card can be sysdefault:CARD=ALSA

This Player does not handle mp3 format, converting mp3 to wav might be required if the selected TTS engine generate mp3 file.