I use docker image on RaspberryPi4+.
It run but, when I select Play audio on server and try English example text I get error
FileNotFoundError: [Errno 2] No such file or directory: ‘aplay’
root@b2qt-raspberrypi4-64:~# docker run -it -p 59125:59125 -v "${HOME}/.local/share/mycroft/mimic3:/home/mimic3/.local/share/mycroft/mimic3" 'mycroftai/mimic3'
INFO:__main__:Starting web server
[2022-12-05 17:42:52 +0000] [1] [INFO] Running on http://0.0.0.0:59125 (CTRL + C to quit)
INFO:hypercorn.error:Running on http://0.0.0.0:59125 (CTRL + C to quit)
INFO:mimic3_tts.tts:Loaded voice from /usr/share/mycroft/mimic3/voices/en_UK/apope_low
ERROR:mimic3_http.app:[Errno 2] No such file or directory: 'aplay'
Traceback (most recent call last):
File "/home/mimic3/app/.venv/lib/python3.9/site-packages/quart/app.py", line 1673, in full_dispatch_request
result = await self.dispatch_request(request_context)
File "/home/mimic3/app/.venv/lib/python3.9/site-packages/quart/app.py", line 1718, in dispatch_request
return await self.ensure_async(handler)(**request_.view_args)
File "/home/mimic3/app/mimic3_http/app.py", line 225, in app_tts
subprocess.run(play_cmd, input=wav_bytes, check=True)
File "/usr/lib/python3.9/subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.9/subprocess.py", line 1823, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'aplay'
But I have it
root@b2qt-raspberrypi4-64:~# whereis aplay
aplay: /usr/bin/aplay