synesthesiam / rhasspy

Rhasspy voice assistant for offline home automation
https://rhasspy.readthedocs.io
MIT License
944 stars 101 forks source link

docker container: no audio output #113

Closed adrianofoschi closed 4 years ago

adrianofoschi commented 4 years ago

Hello, I'm trying rhasspy inside a docker container using docker-compose. All features work as aspected but I cannot hear nothing from the speaker.

The latest lines of this logs regards the "speaker" test. I have no errors, the microphone works perfectly.

rhasspy    | DEBUG:__main__:Namespace(host='0.0.0.0', log_level='DEBUG', port=12101, profile='it', set=[], ssl=None, system_profiles='/usr/share/rhasspy/profiles', user_profiles='/profiles')
rhasspy    | DEBUG:RhasspyCore:Loaded profile from /usr/share/rhasspy/profiles/it/profile.json
rhasspy    | DEBUG:RhasspyCore:Profile files will be written to /profiles/it
rhasspy    | DEBUG:root:Loading default profile settings from /usr/share/rhasspy/profiles/defaults.json
rhasspy    | DEBUG:WebSocketObserver: -> started
rhasspy    | DEBUG:DialogueManager: -> started
rhasspy    | DEBUG:DialogueManager:started -> loading
rhasspy    | DEBUG:DialogueManager:Loading actors
rhasspy    | DEBUG:PyAudioRecorder: -> started
rhasspy    | DEBUG:APlayAudioPlayer: -> started
rhasspy    | DEBUG:PocketsphinxSpeechTrainer: -> started
rhasspy    | DEBUG:EspeakSentenceSpeaker: -> started
rhasspy    | DEBUG:DialogueManager:Actors created. Waiting for ['recorder', 'player', 'speech', 'wake', 'command', 'decoder', 'recognizer', 'handler', 'speech_trainer', 'intent_trainer', 'word_pronouncer'] to start.
rhasspy    | DEBUG:PocketsphinxDecoder: -> started
rhasspy    | DEBUG:DummyWakeListener: -> started
rhasspy    | DEBUG:FsticuffsRecognizer: -> started
rhasspy    | DEBUG:WebrtcvadCommandListener: -> started
rhasspy    | DEBUG:DummyIntentHandler: -> started
rhasspy    | DEBUG:FsticuffsIntentTrainer: -> started
rhasspy    | DEBUG:PhonetisaurusPronounce: -> started
rhasspy    | DEBUG:EspeakSentenceSpeaker:started -> ready
rhasspy    | DEBUG:WebrtcvadCommandListener:started -> loaded
rhasspy    | DEBUG:DialogueManager:recorder started
rhasspy    | DEBUG:FsticuffsRecognizer:Using stop words at /usr/share/rhasspy/profiles/it/stop_words.txt
rhasspy    | DEBUG:DialogueManager:player started
rhasspy    | DEBUG:DialogueManager:speech_trainer started
rhasspy    | DEBUG:DialogueManager:wake started
rhasspy    | DEBUG:DialogueManager:intent_trainer started
rhasspy    | DEBUG:DialogueManager:word_pronouncer started
rhasspy    | DEBUG:FsticuffsRecognizer:started -> loaded
rhasspy    | DEBUG:DialogueManager:handler started
rhasspy    | DEBUG:DialogueManager:command started
rhasspy    | DEBUG:DialogueManager:speech started
rhasspy    | DEBUG:DialogueManager:recognizer started
rhasspy    | DEBUG:PocketsphinxDecoder:Loading decoder with hmm=/profiles/it/acoustic_model, dict=/profiles/it/dictionary.txt, lm=/profiles/it/language_model.txt
rhasspy    | DEBUG:PocketsphinxDecoder:started -> loaded
rhasspy    | DEBUG:DialogueManager:decoder started
rhasspy    | DEBUG:DialogueManager:Actors loaded
rhasspy    | DEBUG:DialogueManager:loading -> ready
rhasspy    | INFO:DialogueManager:Automatically listening for wake word
rhasspy    | DEBUG:DialogueManager:ready -> asleep
rhasspy    | INFO:__main__:Started
rhasspy    | DEBUG:__main__:Starting web server at http://0.0.0.0:12101
rhasspy    | Running on https://0.0.0.0:12101 (CTRL + C to quit)
rhasspy    | [2019-12-22 17:57:33,206] ASGI Framework Lifespan error, continuing without Lifespan support
rhasspy    | WARNING:quart.serving:ASGI Framework Lifespan error, continuing without Lifespan support
rhasspy    | DEBUG:EspeakSentenceSpeaker:['espeak', '-v', 'it', '--stdout', 'che ore sono']
rhasspy    | [2019-12-22 18:04:39,708] 192.168.0.109:56658 GET /api/events/log 1.1 101 - 384553789
rhasspy    | INFO:quart.serving:192.168.0.109:56658 GET /api/events/log 1.1 101 - 384553789
rhasspy    | [2019-12-22 18:04:39,722] 192.168.0.109:56702 GET /api/events/log 1.1 101 - 304577763
rhasspy    | INFO:quart.serving:192.168.0.109:56702 GET /api/events/log 1.1 101 - 304577763
rhasspy    | [2019-12-22 18:04:39,736] 192.168.0.109:56792 GET /api/events/log 1.1 101 - 224593760
rhasspy    | INFO:quart.serving:192.168.0.109:56792 GET /api/events/log 1.1 101 - 224593760
rhasspy    | [2019-12-22 18:04:39,747] 192.168.0.109:56840 GET /api/events/log 1.1 101 - 144602804
rhasspy    | INFO:quart.serving:192.168.0.109:56840 GET /api/events/log 1.1 101 - 144602804
rhasspy    | [2019-12-22 18:04:39,758] 192.168.0.109:56922 GET /api/events/log 1.1 101 - 64565558
rhasspy    | INFO:quart.serving:192.168.0.109:56922 GET /api/events/log 1.1 101 - 64565558
rhasspy    | ERROR:__main__:api_events_log
rhasspy    | Traceback (most recent call last):
rhasspy    |   File "app.py", line 1089, in api_events_log
rhasspy    |     await websocket.send(text)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/wrappers/request.py", line 296, in send
rhasspy    |     await asyncio.sleep(0)
rhasspy    |   File "/usr/lib/python3.6/asyncio/tasks.py", line 472, in sleep
rhasspy    |     yield
rhasspy    | concurrent.futures._base.CancelledError
rhasspy    | DEBUG:EspeakSentenceSpeaker:ready -> speaking
rhasspy    | ERROR:__main__:api_events_log
rhasspy    | Traceback (most recent call last):
rhasspy    |   File "app.py", line 1089, in api_events_log
rhasspy    |     await websocket.send(text)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/wrappers/request.py", line 296, in send
rhasspy    |     await asyncio.sleep(0)
rhasspy    |   File "/usr/lib/python3.6/asyncio/tasks.py", line 472, in sleep
rhasspy    |     yield
rhasspy    | concurrent.futures._base.CancelledError
rhasspy    | DEBUG:APlayAudioPlayer:['aplay', '-q']
rhasspy    | ERROR:__main__:api_events_log
rhasspy    | Traceback (most recent call last):
rhasspy    |   File "app.py", line 1089, in api_events_log
rhasspy    |     await websocket.send(text)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/wrappers/request.py", line 296, in send
rhasspy    |     await asyncio.sleep(0)
rhasspy    |   File "/usr/lib/python3.6/asyncio/tasks.py", line 472, in sleep
rhasspy    |     yield
rhasspy    | concurrent.futures._base.CancelledError
rhasspy    | ERROR:__main__:api_events_log
rhasspy    | Traceback (most recent call last):
rhasspy    |   File "app.py", line 1089, in api_events_log
rhasspy    |     await websocket.send(text)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/wrappers/request.py", line 296, in send
rhasspy    |     await asyncio.sleep(0)
rhasspy    |   File "/usr/lib/python3.6/asyncio/tasks.py", line 472, in sleep
rhasspy    |     yield
rhasspy    | concurrent.futures._base.CancelledError
rhasspy    | ERROR:__main__:api_events_log
rhasspy    | Traceback (most recent call last):
rhasspy    |   File "app.py", line 1089, in api_events_log
rhasspy    |     await websocket.send(text)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/wrappers/request.py", line 296, in send
rhasspy    |     await asyncio.sleep(0)
rhasspy    |   File "/usr/lib/python3.6/asyncio/tasks.py", line 472, in sleep
rhasspy    |     yield
rhasspy    | concurrent.futures._base.CancelledError
rhasspy    | [2019-12-22 18:04:39,848] Error in ASGI Framework
rhasspy    | Traceback (most recent call last):
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 91, in handle_asgi_app
rhasspy    |     await asgi_instance(self.asgi_receive, self.asgi_send)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 106, in __call__
rhasspy    |     await _cancel_tasks(pending)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 189, in _cancel_tasks
rhasspy    |     raise task.exception()
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 157, in handle_websocket
rhasspy    |     'code': 1000,
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 149, in asgi_send
rhasspy    |     await self.asend(CloseConnection(code=int(message["code"])))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asyncio/wsproto.py", line 93, in asend
rhasspy    |     self.write(self.connection.send(event))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/__init__.py", line 64, in send
rhasspy    |     data += self.connection.send(event)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/connection.py", line 101, in send
rhasspy    |     "Connection cannot be closed in state %s" % self.state
rhasspy    | wsproto.utilities.LocalProtocolError: Connection cannot be closed in state ConnectionState.CLOSED
rhasspy    | ERROR:quart.serving:Error in ASGI Framework
rhasspy    | Traceback (most recent call last):
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 91, in handle_asgi_app
rhasspy    |     await asgi_instance(self.asgi_receive, self.asgi_send)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 106, in __call__
rhasspy    |     await _cancel_tasks(pending)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 189, in _cancel_tasks
rhasspy    |     raise task.exception()
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 157, in handle_websocket
rhasspy    |     'code': 1000,
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 149, in asgi_send
rhasspy    |     await self.asend(CloseConnection(code=int(message["code"])))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asyncio/wsproto.py", line 93, in asend
rhasspy    |     self.write(self.connection.send(event))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/__init__.py", line 64, in send
rhasspy    |     data += self.connection.send(event)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/connection.py", line 101, in send
rhasspy    |     "Connection cannot be closed in state %s" % self.state
rhasspy    | wsproto.utilities.LocalProtocolError: Connection cannot be closed in state ConnectionState.CLOSED
rhasspy    | [2019-12-22 18:04:39,861] Error in ASGI Framework
rhasspy    | Traceback (most recent call last):
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 91, in handle_asgi_app
rhasspy    |     await asgi_instance(self.asgi_receive, self.asgi_send)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 106, in __call__
rhasspy    |     await _cancel_tasks(pending)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 189, in _cancel_tasks
rhasspy    |     raise task.exception()
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 157, in handle_websocket
rhasspy    |     'code': 1000,
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 149, in asgi_send
rhasspy    |     await self.asend(CloseConnection(code=int(message["code"])))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asyncio/wsproto.py", line 93, in asend
rhasspy    |     self.write(self.connection.send(event))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/__init__.py", line 64, in send
rhasspy    |     data += self.connection.send(event)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/connection.py", line 101, in send
rhasspy    |     "Connection cannot be closed in state %s" % self.state
rhasspy    | wsproto.utilities.LocalProtocolError: Connection cannot be closed in state ConnectionState.CLOSED
rhasspy    | ERROR:quart.serving:Error in ASGI Framework
rhasspy    | Traceback (most recent call last):
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 91, in handle_asgi_app
rhasspy    |     await asgi_instance(self.asgi_receive, self.asgi_send)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 106, in __call__
rhasspy    |     await _cancel_tasks(pending)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 189, in _cancel_tasks
rhasspy    |     raise task.exception()
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 157, in handle_websocket
rhasspy    |     'code': 1000,
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 149, in asgi_send
rhasspy    |     await self.asend(CloseConnection(code=int(message["code"])))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asyncio/wsproto.py", line 93, in asend
rhasspy    |     self.write(self.connection.send(event))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/__init__.py", line 64, in send
rhasspy    |     data += self.connection.send(event)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/connection.py", line 101, in send
rhasspy    |     "Connection cannot be closed in state %s" % self.state
rhasspy    | wsproto.utilities.LocalProtocolError: Connection cannot be closed in state ConnectionState.CLOSED
rhasspy    | [2019-12-22 18:04:39,869] Error in ASGI Framework
rhasspy    | Traceback (most recent call last):
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 91, in handle_asgi_app
rhasspy    |     await asgi_instance(self.asgi_receive, self.asgi_send)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 106, in __call__
rhasspy    |     await _cancel_tasks(pending)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 189, in _cancel_tasks
rhasspy    |     raise task.exception()
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 157, in handle_websocket
rhasspy    |     'code': 1000,
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 149, in asgi_send
rhasspy    |     await self.asend(CloseConnection(code=int(message["code"])))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asyncio/wsproto.py", line 93, in asend
rhasspy    |     self.write(self.connection.send(event))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/__init__.py", line 64, in send
rhasspy    |     data += self.connection.send(event)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/connection.py", line 101, in send
rhasspy    |     "Connection cannot be closed in state %s" % self.state
rhasspy    | wsproto.utilities.LocalProtocolError: Connection cannot be closed in state ConnectionState.CLOSED
rhasspy    | ERROR:quart.serving:Error in ASGI Framework
rhasspy    | Traceback (most recent call last):
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 91, in handle_asgi_app
rhasspy    |     await asgi_instance(self.asgi_receive, self.asgi_send)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 106, in __call__
rhasspy    |     await _cancel_tasks(pending)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 189, in _cancel_tasks
rhasspy    |     raise task.exception()
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 157, in handle_websocket
rhasspy    |     'code': 1000,
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 149, in asgi_send
rhasspy    |     await self.asend(CloseConnection(code=int(message["code"])))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asyncio/wsproto.py", line 93, in asend
rhasspy    |     self.write(self.connection.send(event))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/__init__.py", line 64, in send
rhasspy    |     data += self.connection.send(event)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/connection.py", line 101, in send
rhasspy    |     "Connection cannot be closed in state %s" % self.state
rhasspy    | wsproto.utilities.LocalProtocolError: Connection cannot be closed in state ConnectionState.CLOSED
rhasspy    | [2019-12-22 18:04:39,879] Error in ASGI Framework
rhasspy    | Traceback (most recent call last):
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 91, in handle_asgi_app
rhasspy    |     await asgi_instance(self.asgi_receive, self.asgi_send)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 106, in __call__
rhasspy    |     await _cancel_tasks(pending)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 189, in _cancel_tasks
rhasspy    |     raise task.exception()
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 157, in handle_websocket
rhasspy    |     'code': 1000,
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 149, in asgi_send
rhasspy    |     await self.asend(CloseConnection(code=int(message["code"])))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asyncio/wsproto.py", line 93, in asend
rhasspy    |     self.write(self.connection.send(event))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/__init__.py", line 64, in send
rhasspy    |     data += self.connection.send(event)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/connection.py", line 101, in send
rhasspy    |     "Connection cannot be closed in state %s" % self.state
rhasspy    | wsproto.utilities.LocalProtocolError: Connection cannot be closed in state ConnectionState.CLOSED
rhasspy    | ERROR:quart.serving:Error in ASGI Framework
rhasspy    | Traceback (most recent call last):
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 91, in handle_asgi_app
rhasspy    |     await asgi_instance(self.asgi_receive, self.asgi_send)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 106, in __call__
rhasspy    |     await _cancel_tasks(pending)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 189, in _cancel_tasks
rhasspy    |     raise task.exception()
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 157, in handle_websocket
rhasspy    |     'code': 1000,
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 149, in asgi_send
rhasspy    |     await self.asend(CloseConnection(code=int(message["code"])))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asyncio/wsproto.py", line 93, in asend
rhasspy    |     self.write(self.connection.send(event))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/__init__.py", line 64, in send
rhasspy    |     data += self.connection.send(event)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/connection.py", line 101, in send
rhasspy    |     "Connection cannot be closed in state %s" % self.state
rhasspy    | wsproto.utilities.LocalProtocolError: Connection cannot be closed in state ConnectionState.CLOSED
rhasspy    | [2019-12-22 18:04:39,889] Error in ASGI Framework
rhasspy    | Traceback (most recent call last):
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 91, in handle_asgi_app
rhasspy    |     await asgi_instance(self.asgi_receive, self.asgi_send)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 106, in __call__
rhasspy    |     await _cancel_tasks(pending)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 189, in _cancel_tasks
rhasspy    |     raise task.exception()
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 157, in handle_websocket
rhasspy    |     'code': 1000,
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 149, in asgi_send
rhasspy    |     await self.asend(CloseConnection(code=int(message["code"])))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asyncio/wsproto.py", line 93, in asend
rhasspy    |     self.write(self.connection.send(event))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/__init__.py", line 64, in send
rhasspy    |     data += self.connection.send(event)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/connection.py", line 101, in send
rhasspy    |     "Connection cannot be closed in state %s" % self.state
rhasspy    | wsproto.utilities.LocalProtocolError: Connection cannot be closed in state ConnectionState.CLOSED
rhasspy    | ERROR:quart.serving:Error in ASGI Framework
rhasspy    | Traceback (most recent call last):
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 91, in handle_asgi_app
rhasspy    |     await asgi_instance(self.asgi_receive, self.asgi_send)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 106, in __call__
rhasspy    |     await _cancel_tasks(pending)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 189, in _cancel_tasks
rhasspy    |     raise task.exception()
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 157, in handle_websocket
rhasspy    |     'code': 1000,
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 149, in asgi_send
rhasspy    |     await self.asend(CloseConnection(code=int(message["code"])))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/hypercorn/asyncio/wsproto.py", line 93, in asend
rhasspy    |     self.write(self.connection.send(event))
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/__init__.py", line 64, in send
rhasspy    |     data += self.connection.send(event)
rhasspy    |   File "/usr/local/lib/python3.6/dist-packages/wsproto/connection.py", line 101, in send
rhasspy    |     "Connection cannot be closed in state %s" % self.state
rhasspy    | wsproto.utilities.LocalProtocolError: Connection cannot be closed in state ConnectionState.CLOSED
rhasspy    | DEBUG:EspeakSentenceSpeaker:speaking -> ready
rhasspy    | [2019-12-22 18:04:41,047] 192.168.0.109:56996 POST /api/text-to-speech 1.1 200 12 1378500
rhasspy    | INFO:quart.serving:192.168.0.109:56996 POST /api/text-to-speech 1.1 200 12 1378500
rhasspy    | [2019-12-22 18:04:41,055] 192.168.0.109:56998 GET / 1.1 200 1029 59428
rhasspy    | INFO:quart.serving:192.168.0.109:56998 GET / 1.1 200 1029 59428
rhasspy    | [2019-12-22 18:04:41,212] 192.168.0.109:56998 GET /css/bootstrap.min.css 1.1 200 140930 123173
rhasspy    | INFO:quart.serving:192.168.0.109:56998 GET /css/bootstrap.min.css 1.1 200 140930 123173
rhasspy    | [2019-12-22 18:04:41,299] 192.168.0.109:57000 GET /css/fontawesome-all.min.css 1.1 200 54456 165748
rhasspy    | INFO:quart.serving:192.168.0.109:57000 GET /css/fontawesome-all.min.css 1.1 200 54456 165748
rhasspy    | [2019-12-22 18:04:41,306] 192.168.0.109:57002 GET /css/main.css 1.1 200 688 170907
rhasspy    | INFO:quart.serving:192.168.0.109:57002 GET /css/main.css 1.1 200 688 170907
rhasspy    | [2019-12-22 18:04:41,324] 192.168.0.109:57004 GET /css/app.7ca2916b.css 1.1 200 309 184953
rhasspy    | INFO:quart.serving:192.168.0.109:57004 GET /css/app.7ca2916b.css 1.1 200 309 184953
rhasspy    | [2019-12-22 18:04:41,332] 192.168.0.109:57006 GET /js/recorder.js 1.1 200 13027 161906
rhasspy    | INFO:quart.serving:192.168.0.109:57006 GET /js/recorder.js 1.1 200 13027 161906
rhasspy    | [2019-12-22 18:04:41,360] 192.168.0.109:57008 GET /js/jquery-3.3.1.slim.min.js 1.1 200 69917 189421
rhasspy    | INFO:quart.serving:192.168.0.109:57008 GET /js/jquery-3.3.1.slim.min.js 1.1 200 69917 189421
rhasspy    | [2019-12-22 18:04:41,432] 192.168.0.109:56998 GET /js/axios.min.js 1.1 200 12941 147965
rhasspy    | INFO:quart.serving:192.168.0.109:56998 GET /js/axios.min.js 1.1 200 12941 147965
rhasspy    | [2019-12-22 18:04:41,486] 192.168.0.109:57002 GET /js/vue-axios.min.js 1.1 200 673 120392
rhasspy    | INFO:quart.serving:192.168.0.109:57002 GET /js/vue-axios.min.js 1.1 200 673 120392
rhasspy    | [2019-12-22 18:04:41,495] 192.168.0.109:57004 GET /js/bootstrap.min.js 1.1 200 50731 121341
rhasspy    | INFO:quart.serving:192.168.0.109:57004 GET /js/bootstrap.min.js 1.1 200 50731 121341
rhasspy    | [2019-12-22 18:04:41,536] 192.168.0.109:57006 GET /js/app.d0eda369.js 1.1 200 143858 160104
rhasspy    | INFO:quart.serving:192.168.0.109:57006 GET /js/app.d0eda369.js 1.1 200 143858 160104
rhasspy    | [2019-12-22 18:04:41,543] 192.168.0.109:57000 GET /js/chunk-vendors.b32a53f5.js 1.1 200 279655 172271
rhasspy    | INFO:quart.serving:192.168.0.109:57000 GET /js/chunk-vendors.b32a53f5.js 1.1 200 279655 172271
rhasspy    | INFO:quart.serving:192.168.0.109:57000 GET /img/logo.png 1.1 200 1924 21369
rhasspy    | [2019-12-22 18:04:41,802] 192.168.0.109:57000 GET /img/logo.png 1.1 200 1924 21369
rhasspy    | [2019-12-22 18:04:41,896] 192.168.0.109:57000 GET /api/sentences 1.1 200 349 29175
rhasspy    | INFO:quart.serving:192.168.0.109:57000 GET /api/sentences 1.1 200 349 29175
rhasspy    | DEBUG:__main__:Loading phoneme examples from /usr/share/rhasspy/profiles/it/phoneme_examples.txt
rhasspy    | [2019-12-22 18:04:41,975] 192.168.0.109:57006 GET /api/slots 1.1 200 2 74666
rhasspy    | INFO:quart.serving:192.168.0.109:57006 GET /api/slots 1.1 200 2 74666
rhasspy    | [2019-12-22 18:04:41,980] 192.168.0.109:56998 GET /api/phonemes 1.1 200 1139 78856
rhasspy    | INFO:quart.serving:192.168.0.109:56998 GET /api/phonemes 1.1 200 1139 78856
rhasspy    | Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924
rhasspy    | [2019-12-22 18:04:42,054] 192.168.0.109:57006 GET /api/profile 1.1 200 7306 58254
rhasspy    | INFO:quart.serving:192.168.0.109:57006 GET /api/profile 1.1 200 7306 58254
rhasspy    | [2019-12-22 18:04:42,060] 192.168.0.109:56998 GET /api/profiles 1.1 200 144 63313
rhasspy    | INFO:quart.serving:192.168.0.109:56998 GET /api/profiles 1.1 200 144 63313
rhasspy    | Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
rhasspy    | ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
rhasspy    | INFO:quart.serving:192.168.0.109:57002 GET /api/profile 1.1 200 1363 148332
rhasspy    | [2019-12-22 18:04:42,107] 192.168.0.109:57002 GET /api/profile 1.1 200 1363 148332
rhasspy    | INFO:quart.serving:192.168.0.109:57000 GET /api/version 1.1 200 6 149688
rhasspy    | [2019-12-22 18:04:42,111] 192.168.0.109:57000 GET /api/version 1.1 200 6 149688
rhasspy    | Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924
rhasspy    | INFO:quart.serving:192.168.0.109:57006 GET /api/profile 1.1 200 6569 40560
rhasspy    | [2019-12-22 18:04:42,127] 192.168.0.109:57006 GET /api/profile 1.1 200 6569 40560
rhasspy    | INFO:quart.serving:192.168.0.109:57000 GET /api/unknown-words 1.1 200 164 71879
rhasspy    | [2019-12-22 18:04:42,208] 192.168.0.109:57000 GET /api/unknown-words 1.1 200 164 71879
rhasspy    | [2019-12-22 18:04:42,216] 192.168.0.109:57008 GET /api/microphones 1.1 200 135 313585
rhasspy    | INFO:quart.serving:192.168.0.109:57008 GET /api/microphones 1.1 200 135 313585
rhasspy    | INFO:quart.serving:192.168.0.109:57002 GET /api/custom-words 1.1 200 143 104544
rhasspy    | [2019-12-22 18:04:42,240] 192.168.0.109:57002 GET /api/custom-words 1.1 200 143 104544
rhasspy    | [2019-12-22 18:04:42,317] 192.168.0.109:57004 GET /api/speakers 1.1 200 1249 413417
rhasspy    | INFO:quart.serving:192.168.0.109:57004 GET /api/speakers 1.1 200 1249 413417
rhasspy    | [2019-12-22 18:04:42,324] 192.168.0.109:56998 GET /api/problems 1.1 200 285 192447
rhasspy    | INFO:quart.serving:192.168.0.109:56998 GET /api/problems 1.1 200 285 192447
rhasspy    | DEBUG:EspeakSentenceSpeaker:['espeak', '-v', 'it', '--stdout', 'mamma']
rhasspy    | DEBUG:EspeakSentenceSpeaker:ready -> speaking
rhasspy    | DEBUG:APlayAudioPlayer:['aplay', '-q']
rhasspy    | DEBUG:EspeakSentenceSpeaker:speaking -> ready
rhasspy    | [2019-12-22 18:04:46,235] 192.168.0.109:57000 POST /api/text-to-speech 1.1 200 5 943498
rhasspy    | INFO:quart.serving:192.168.0.109:57000 POST /api/text-to-speech 1.1 200 5 943498
adrianofoschi commented 4 years ago

I solved using sysdefault:seeed2micvoicec as "sound" default device. Thanks you