jarbashivemind / hivemind-voice-sat Goto Github PK
View Code? Open in Web Editor NEWOpenVoiceOS Voice Satellite
License: Apache License 2.0
OpenVoiceOS Voice Satellite
License: Apache License 2.0
Logs from the listener
:
ovos-core-8686984476-8xj2f ovos-hivemind-listener 2023-09-03 14:20:35.354 - HiveMind - hivemind_core.protocol:decode:103 - WARNING - Message was unencrypted
ovos-core-8686984476-8xj2f ovos-hivemind-listener 2023-09-03 14:20:35.361 - HiveMind - hivemind_core.service:on_message:114 - INFO - received VoiceSatelliteV0.3.0:10.233.75.0::0e0826ea-3d09-41b9-9e9c-2d8dbeecfd92 message: {"msg_type": "bus", "payload": {"type": "recognizer_loop:wakeword", "data": {"engine": "PreciseLiteHotwordPlugin", "sound": null, "bus_event": null, "trigger": false, "utterance": "hey mycroft", "stt_lang": "en-us", "listen": true, "wakeup": false, "stopword": false, "key_phrase": "hey_mycroft", "module": "ovos-ww-plugin-precise-lite"}, "context": {"client_name": "ovos_dinkum_listener", "source": "audio", "destination": ["skills"]}}, "route": [], "node": null, "source_peer": null}
ovos-core-8686984476-8xj2f ovos-hivemind-listener 2023-09-03 14:20:35.377 - HiveMind - hivemind_core.protocol:handle_inject_mycroft_msg:481 - WARNING - VoiceSatelliteV0.3.0:10.233.75.0::0e0826ea-3d09-41b9-9e9c-2d8dbeecfd92 sent an unauthorized bus message
ovos-core-8686984476-8xj2f ovos-hivemind-listener 2023-09-03 14:20:35.387 - HiveMind - hivemind_core.protocol:decode:103 - WARNING - Message was unencrypted
ovos-core-8686984476-8xj2f ovos-hivemind-listener 2023-09-03 14:20:35.397 - HiveMind - hivemind_core.service:on_message:114 - INFO - received VoiceSatelliteV0.3.0:10.233.75.0::0e0826ea-3d09-41b9-9e9c-2d8dbeecfd92 message: {"msg_type": "bus", "payload": {"type": "recognizer_loop:record_begin", "data": {}, "context": {}}, "route": [], "node": null, "source_peer": null}
ovos-core-8686984476-8xj2f ovos-hivemind-listener 2023-09-03 14:20:35.413 - HiveMind - hivemind_core.protocol:handle_inject_mycroft_msg:481 - WARNING - VoiceSatelliteV0.3.0:10.233.75.0::0e0826ea-3d09-41b9-9e9c-2d8dbeecfd92 sent an unauthorized bus message
ovos-core-8686984476-8xj2f ovos-hivemind-listener 2023-09-03 14:20:37.671 - HiveMind - hivemind_core.protocol:decode:103 - WARNING - Message was unencrypted
ovos-core-8686984476-8xj2f ovos-hivemind-listener 2023-09-03 14:20:37.678 - HiveMind - hivemind_core.service:on_message:114 - INFO - received VoiceSatelliteV0.3.0:10.233.75.0::0e0826ea-3d09-41b9-9e9c-2d8dbeecfd92 message: {"msg_type": "bus", "payload": {"type": "recognizer_loop:record_end", "data": {}, "context": {"client_name": "ovos_dinkum_listener", "source": "audio", "destination": ["skills"], "transcription": "\"What time is it?\""}}, "route": [], "node": null, "source_peer": null}
ovos-core-8686984476-8xj2f ovos-hivemind-listener 2023-09-03 14:20:37.689 - HiveMind - hivemind_core.protocol:handle_inject_mycroft_msg:481 - WARNING - VoiceSatelliteV0.3.0:10.233.75.0::0e0826ea-3d09-41b9-9e9c-2d8dbeecfd92 sent an unauthorized bus message
ovos-core-8686984476-8xj2f ovos-hivemind-listener 2023-09-03 14:20:37.695 - HiveMind - hivemind_core.protocol:decode:103 - WARNING - Message was unencrypted
ovos-core-8686984476-8xj2f ovos-hivemind-listener 2023-09-03 14:20:37.702 - HiveMind - hivemind_core.service:on_message:114 - INFO - received VoiceSatelliteV0.3.0:10.233.75.0::0e0826ea-3d09-41b9-9e9c-2d8dbeecfd92 message: {"msg_type": "bus", "payload": {"type": "recognizer_loop:utterance", "data": {"client_name": "ovos_dinkum_listener", "source": "audio", "destination": ["skills"], "transcription": "\"What time is it?\"", "utterances": ["\"What time is it?\""]}, "context": {"client_name": "ovos_dinkum_listener", "source": "audio", "destination": ["skills"], "transcription": "\"What time is it?\"", "utterances": ["\"What time is it?\""]}}, "route": [], "node": null, "source_peer": null}
ovos-core-8686984476-8xj2f ovos-hivemind-listener 2023-09-03 14:20:37.714 - HiveMind - hivemind_core.protocol:handle_inject_mycroft_msg:492 - INFO - Forwarding message to mycroft bus from client: VoiceSatelliteV0.3.0:10.233.75.0::0e0826ea-3d09-41b9-9e9c-2d8dbeecfd92
Logs fro voice-sat
:
2023-09-03 10:20:35.346 - OVOS - ovos_dinkum_listener.voice_loop.voice_loop:run:205 - INFO - Wakeword detected
2023-09-03 10:20:37.189 - OVOS - ovos_dinkum_listener.voice_loop.voice_loop:run:235 - INFO - speech finished
2023-09-03 10:20:37.649 - OVOS - ovos_dinkum_listener.voice_loop.voice_loop:_after_cmd:640 - INFO - transcribed: "What time is it?"
2023-09-03 10:20:37.975 - OVOS - ovos_bus_client.client.client:on_error:112 - ERROR - === TypeError("HiveMessage.__init__() got an unexpected keyword argument 'ciphertext'") ===
Traceback (most recent call last):
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_socket.py", line 108, in recv
bytes_ = _recv()
^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_socket.py", line 87, in _recv
return sock.recv(bufsize)
^^^^^^^^^^^^^^^^^^
TimeoutError: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_bus_client/client/client.py", line 115, in on_error
self.emitter.emit('error', error)
File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 118, in emit
self._emit_handle_potential_error(event, args[0] if args else None)
File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 88, in _emit_handle_potential_error
raise error
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_app.py", line 434, in setSock
dispatcher.read(self.sock.sock, read, check)
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_app.py", line 80, in read
if not read_callback():
^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_app.py", line 443, in read
op_code, frame = self.sock.recv_data_frame(True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_core.py", line 406, in recv_data_frame
frame = self.recv_frame()
^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_core.py", line 445, in recv_frame
return self.frame_buffer.recv_frame()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_abnf.py", line 338, in recv_frame
self.recv_header()
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_abnf.py", line 294, in recv_header
header = self.recv_strict(2)
^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_abnf.py", line 373, in recv_strict
bytes_ = self.recv(min(16384, shortage))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_core.py", line 529, in _recv
return recv(self.sock, bufsize)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_socket.py", line 110, in recv
raise WebSocketTimeoutException("Connection timed out")
websocket._exceptions.WebSocketTimeoutException: Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_bus_client/client/client.py", line 115, in on_error
self.emitter.emit('error', error)
File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 118, in emit
self._emit_handle_potential_error(event, args[0] if args else None)
File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 88, in _emit_handle_potential_error
raise error
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_app.py", line 418, in setSock
self.sock.connect(
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_core.py", line 249, in connect
self.sock, addrs = connect(url, self.sock_opt, proxy_info(**options),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_http.py", line 129, in connect
sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_http.py", line 196, in _open_socket
raise error
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_http.py", line 184, in _open_socket
sock.connect(address)
OSError: [Errno 113] No route to host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_bus_client/client/client.py", line 115, in on_error
self.emitter.emit('error', error)
File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 118, in emit
self._emit_handle_potential_error(event, args[0] if args else None)
File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 88, in _emit_handle_potential_error
raise error
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_app.py", line 418, in setSock
self.sock.connect(
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_core.py", line 249, in connect
self.sock, addrs = connect(url, self.sock_opt, proxy_info(**options),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_http.py", line 129, in connect
sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_http.py", line 196, in _open_socket
raise error
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_http.py", line 184, in _open_socket
sock.connect(address)
OSError: [Errno 113] No route to host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_bus_client/client/client.py", line 115, in on_error
self.emitter.emit('error', error)
File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 118, in emit
self._emit_handle_potential_error(event, args[0] if args else None)
File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 88, in _emit_handle_potential_error
raise error
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_app.py", line 418, in setSock
self.sock.connect(
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_core.py", line 249, in connect
self.sock, addrs = connect(url, self.sock_opt, proxy_info(**options),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_http.py", line 129, in connect
sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_http.py", line 196, in _open_socket
raise error
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_http.py", line 184, in _open_socket
sock.connect(address)
OSError: [Errno 113] No route to host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_bus_client/client/client.py", line 115, in on_error
self.emitter.emit('error', error)
File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 118, in emit
self._emit_handle_potential_error(event, args[0] if args else None)
File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 88, in _emit_handle_potential_error
raise error
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_app.py", line 418, in setSock
self.sock.connect(
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_core.py", line 249, in connect
self.sock, addrs = connect(url, self.sock_opt, proxy_info(**options),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_http.py", line 129, in connect
sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_http.py", line 196, in _open_socket
raise error
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_http.py", line 184, in _open_socket
sock.connect(address)
OSError: [Errno 113] No route to host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_bus_client/client/client.py", line 115, in on_error
self.emitter.emit('error', error)
File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 118, in emit
self._emit_handle_potential_error(event, args[0] if args else None)
File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 88, in _emit_handle_potential_error
raise error
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_app.py", line 418, in setSock
self.sock.connect(
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_core.py", line 249, in connect
self.sock, addrs = connect(url, self.sock_opt, proxy_info(**options),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_http.py", line 129, in connect
sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_http.py", line 196, in _open_socket
raise error
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_http.py", line 184, in _open_socket
sock.connect(address)
OSError: [Errno 113] No route to host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_bus_client/client/client.py", line 115, in on_error
self.emitter.emit('error', error)
File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 118, in emit
self._emit_handle_potential_error(event, args[0] if args else None)
File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 88, in _emit_handle_potential_error
raise error
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_app.py", line 553, in _callback
callback(self, *args)
File "/home/ovos/.venv/lib/python3.11/site-packages/hivemind_bus_client/client.py", line 186, in on_message
self._handle_hive_protocol(HiveMessage(**message))
^^^^^^^^^^^^^^^^^^^^^^
TypeError: HiveMessage.__init__() got an unexpected keyword argument 'ciphertext'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_bus_client/client/client.py", line 115, in on_error
self.emitter.emit('error', error)
File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 118, in emit
self._emit_handle_potential_error(event, args[0] if args else None)
File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 88, in _emit_handle_potential_error
raise error
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_app.py", line 553, in _callback
callback(self, *args)
File "/home/ovos/.venv/lib/python3.11/site-packages/hivemind_bus_client/client.py", line 186, in on_message
self._handle_hive_protocol(HiveMessage(**message))
^^^^^^^^^^^^^^^^^^^^^^
TypeError: HiveMessage.__init__() got an unexpected keyword argument 'ciphertext'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_bus_client/client/client.py", line 115, in on_error
self.emitter.emit('error', error)
File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 118, in emit
self._emit_handle_potential_error(event, args[0] if args else None)
File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 88, in _emit_handle_potential_error
raise error
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_app.py", line 553, in _callback
callback(self, *args)
File "/home/ovos/.venv/lib/python3.11/site-packages/hivemind_bus_client/client.py", line 186, in on_message
self._handle_hive_protocol(HiveMessage(**message))
^^^^^^^^^^^^^^^^^^^^^^
TypeError: HiveMessage.__init__() got an unexpected keyword argument 'ciphertext'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ovos/.venv/lib/python3.11/site-packages/websocket/_app.py", line 553, in _callback
callback(self, *args)
File "/home/ovos/.venv/lib/python3.11/site-packages/hivemind_bus_client/client.py", line 186, in on_message
self._handle_hive_protocol(HiveMessage(**message))
^^^^^^^^^^^^^^^^^^^^^^
TypeError: HiveMessage.__init__() got an unexpected keyword argument 'ciphertext'
2023-09-03 10:20:38.052 - OVOS - ovos_bus_client.client.client:on_error:119 - ERROR - Exception closing websocket at ws://192.168.100.55:5678?authorization=Vm9pY2VTYXRlbGxpdGVWMC4zLjA6OTViNzc0ZjFlODVjMmVhOGU4YTgwYWMyYzVkMDljNmI=: HiveMessage.__init__() got an unexpected keyword argument 'ciphertext'
2023-09-03 10:20:38.085 - OVOS - ovos_bus_client.client.client:on_error:121 - WARNING - Message Bus Client will reconnect in 5.0 seconds.
add pretty readme + changelog
At the moment, with "record utterances" enabled, only successful STT calls are actually saved. We need to be able to record failed utterances, so we can check what the machine heard that didn't process.
$ hivemind-voice-sat
2023-06-27 18:03:30.141 - OVOS - ovos_utils.configuration:get_xdg_config_save_path - WARNING - Deprecation version=0.1.0. Caller=ovos_backend_client.identity:61. configuration moved to the `ovos_config` package.
2023-06-27 18:03:30.167 - OVOS - ovos_utils.configuration:get_xdg_base - WARNING - Deprecation version=0.1.0. Caller=ovos_backend_client.identity:62. configuration moved to the `ovos_config` package.
Traceback (most recent call last):
File "/home/goldyfruit/Virtualenvs/hivemind/bin/hivemind-voice-sat", line 33, in <module>
sys.exit(load_entry_point('HiveMind-voice-sat==2.0.0a1', 'console_scripts', 'hivemind-voice-sat')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/goldyfruit/Virtualenvs/hivemind/bin/hivemind-voice-sat", line 25, in importlib_load_entry_point
return next(matches).load()
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/importlib/metadata/__init__.py", line 202, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/goldyfruit/Virtualenvs/hivemind/lib64/python3.11/site-packages/hivemind_voice_satellite/__main__.py", line 2, in <module>
from hivemind_presence import LocalDiscovery
ModuleNotFoundError: No module named 'hivemind_presence'
When I restart pipewire the hivemind-sat goes into an unrecoverable state:
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: 2023-09-11 09:34:58.311 - HiveMind-voice-sat - ovos_microphone_plugin_alsa:_run:92 - WARNING - Bad chunk length: -32
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: 2023-09-11 09:34:58.313 - HiveMind-voice-sat - ovos_microphone_plugin_alsa:_run:92 - WARNING - Bad chunk length: -32
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: 2023-09-11 09:34:58.310 - HiveMind-voice-sat - ovos_dinkum_listener.service:run:263 - ERROR - voice_loop failed
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: Traceback (most recent call last):
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_dinkum_listener/service.py", line 259, in run
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: self.voice_loop.run()
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_dinkum_listener/voice_loop/voice_loop.py", line 181, in run
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: chunk = self.mic.read_chunk()
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: ^^^^^^^^^^^^^^^^^^^^^
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_microphone_plugin_alsa/__init__.py", line 47, in read_chunk
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: return self._queue.get(timeout=self.timeout)
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: File "/usr/lib/python3.11/queue.py", line 179, in get
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: raise Empty
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: _queue.Empty
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: 2023-09-11 09:34:58.321 - HiveMind-voice-sat - hivemind_voice_satellite.service:on_error:23 - ERROR - HiveMind Voice Satellite failed to launch ().
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: 2023-09-11 09:34:58.319 - HiveMind-voice-sat - ovos_microphone_plugin_alsa:_run:92 - WARNING - Bad chunk length: -32
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: 2023-09-11 09:34:58.324 - HiveMind-voice-sat - ovos_dinkum_listener.service:run:266 - INFO - Service stopping
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: 2023-09-11 09:34:58.324 - HiveMind-voice-sat - ovos_microphone_plugin_alsa:_run:92 - WARNING - Bad chunk length: -32
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: 2023-09-11 09:34:58.327 - HiveMind-voice-sat - ovos_microphone_plugin_alsa:_run:92 - WARNING - Bad chunk length: -32
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: 2023-09-11 09:34:58.329 - HiveMind-voice-sat - ovos_microphone_plugin_alsa:_run:92 - WARNING - Bad chunk length: -32
Sep 11 09:34:58 ovos-kitchen hivemind-sat[5024]: 2023-09-11 09:34:58.336 - HiveMind-voice-sat - hivemind_voice_satellite.service:on_stopping:19 - INFO - HiveMind Voice Satellite is shutting down...
The process just hangs there, and I have to manually restart the service. It would be better (imho) if the entire process exited when this error state is reached, then systemd/docker/etc can automatically restart the service.
2023-09-05 13:02:05.898 - OVOS - ovos_plugin_manager.ocp:load:54 - INFO - Loaded OCP plugin: ovos-ocp-files-plugin
2023-09-05 13:02:06.345 - OVOS - ovos_plugin_manager.ocp:load:54 - INFO - Loaded OCP plugin: ovos-ocp-m3u-plugin
2023-09-05 13:02:06.790 - OVOS - ovos_plugin_manager.ocp:load:54 - INFO - Loaded OCP plugin: ovos-ocp-news-plugin
2023-09-05 13:02:07.234 - OVOS - ovos_plugin_manager.ocp:load:54 - INFO - Loaded OCP plugin: ovos-ocp-rss-plugin
2023-09-05 13:02:08.306 - OVOS - hivemind_bus_client.client:connect:116 - INFO - Connecting to Hivemind
2023-09-05 13:02:08.434 - OVOS - hivemind_bus_client.protocol:bind:99 - INFO - Initializing HiveMindSlaveInternalProtocol
2023-09-05 13:02:08.443 - OVOS - hivemind_bus_client.protocol:bind:102 - INFO - registering protocol handlers
2023-09-05 13:02:13.476 - OVOS - hivemind_bus_client.protocol:start_handshake:139 - INFO - hivemind does not support binarization protocol
2023-09-05 13:02:13.844 - OVOS - hivemind_bus_client.protocol:handle_handshake:169 - INFO - HANDSHAKE: {'envelope': '7073494679785072afb03ffa3a1b3c1b3c353c0fb1b2c76e', 'binarize': False}
2023-09-05 13:02:13.852 - OVOS - hivemind_bus_client.protocol:receive_handshake:152 - INFO - Received password envelope
2023-09-05 13:02:14.373 - OVOS - ovos_audio.service:__init__:49 - INFO - Starting Audio Service
2023-09-05 13:02:14.382 - OVOS - ovos_audio.service:on_started:31 - INFO - Audio service started.
2023-09-05 13:02:14.435 - OVOS - ovos_config.utils:__init__:21 - WARNING - Deprecation version=0.1.0. Caller=ovos_config.config:283. Import from ovos_utils.file_utils directly
2023-09-05 13:02:14.691 - OVOS - ovos_audio.service:_maybe_reload_tts:291 - INFO - (re)loading TTS engine
2023-09-05 13:02:14.898 - OVOS - ovos_utils.configuration:get_xdg_base - WARNING - Deprecation version=0.1.0. Caller=ovos_tts_plugin_mimic:93. configuration moved to the `ovos_config` package.
2023-09-05 13:02:15.001 - OVOS - ovos_utils.configuration:read_mycroft_config - WARNING - Deprecation version=0.1.0. Caller=ovos_tts_plugin_mimic:106. configuration moved to the `ovos_config` package.
2023-09-05 13:02:15.027 - OVOS - ovos_plugin_manager.tts:create:197 - INFO - Found plugin ovos-tts-plugin-server
2023-09-05 13:02:15.054 - OVOS - ovos_utils.file_utils:resolve_resource_file:153 - WARNING - Deprecation version=0.1.0. Caller=ovos_plugin_manager.templates.tts:526. Expected a dict config and got None.
2023-09-05 13:02:20.068 - OVOS - ovos_plugin_manager.tts:create:200 - INFO - Loaded plugin ovos-tts-plugin-server
2023-09-05 13:02:20.075 - OVOS - ovos_audio.service:_maybe_reload_tts:310 - INFO - (re)loading fallback TTS engine
2023-09-05 13:02:20.159 - OVOS - ovos_plugin_manager.tts:create:197 - INFO - Found plugin ovos-tts-plugin-mimic3-server
2023-09-05 13:02:20.175 - OVOS - ovos_utils.file_utils:resolve_resource_file:153 - WARNING - Deprecation version=0.1.0. Caller=ovos_plugin_manager.templates.tts:526. Expected a dict config and got None.
2023-09-05 13:02:20.467 - OVOS - ovos_plugin_manager.tts:create:200 - INFO - Loaded plugin ovos-tts-plugin-mimic3-server
2023-09-05 13:02:20.547 - OVOS - ovos_audio.audio:load_services:94 - INFO - Loading audio service plugin: ovos_audio_simple
2023-09-05 13:02:20.553 - OVOS - ovos_audio.audio:find_default:69 - WARNING - default backend set to OCP, but OCP is disabled
2023-09-05 13:02:20.559 - OVOS - ovos_audio.audio:find_default:71 - INFO - Finding default audio backend...
2023-09-05 13:02:20.565 - OVOS - ovos_audio.audio:find_default:79 - INFO - no default found
2023-09-05 13:02:20.657 - OVOS - ovos_audio.service:on_alive:27 - INFO - Audio service is alive.
2023-09-05 13:02:20.666 - OVOS - ovos_dinkum_listener.service:__init__:123 - INFO - Starting Voice Service
2023-09-05 13:02:20.672 - OVOS - hivemind_voice_satellite.service:on_alive:15 - INFO - HiveMind Voice Satellite alive.
2023-09-05 13:02:20.678 - OVOS - ovos_dinkum_listener.service:_before_start:293 - INFO - Starting service...
2023-09-05 13:02:20.765 - OVOS - ovos_audio.service:run:238 - WARNING - No audio backends loaded! Audio playback is not available
2023-09-05 13:02:20.781 - OVOS - ovos_audio.service:run:240 - INFO - Running audio service in TTS only mode
2023-09-05 13:02:20.786 - OVOS - ovos_audio.service:on_ready:23 - INFO - Audio service is ready.
2023-09-05 13:02:22.894 - OVOS - hivemind_voice_satellite.service:on_alive:15 - INFO - HiveMind Voice Satellite alive.
2023-09-05 13:02:22.898 - OVOS - ovos_dinkum_listener.service:_before_start:293 - INFO - Starting service...
2023-09-05 13:02:22.959 - OVOS - ovos_dinkum_listener.voice_loop.hotwords:load_hotword_engines:108 - INFO - creating hotword engines
2023-09-05 13:02:22.993 - OVOS - ovos_workshop.skills.mycroft_skill:__call__:67 - WARNING - skill_id should be a kwarg, please update PHAL
2023-09-05 13:02:22.998 - OVOS - ovos_plugin_manager.wakewords:load_module:165 - INFO - Loading "hey_mycroft" wake word via ovos-ww-plugin-precise-lite with config: {'module': 'ovos-ww-plugin-precise-lite', 'model': 'https://github.com/OpenVoiceOS/precise-lite-models/raw/master/wakewords/en/hey_mycroft.tflite', 'expected_duration': 3, 'trigger_level': 3, 'sensitivity': 0.5, 'listen': True, 'fallback_ww': 'hey_mycroft_precise'}
2023-09-05 13:02:23.006 - OVOS - ovos_workshop.skills.mycroft_skill:__call__:81 - WARNING - skill initialized without bus!! this is legacy behaviour and requires you to call skill.bind(bus) or skill._startup(skill_id, bus)
bus will be required starting on ovos-core 0.1.0
2023-09-05 13:02:23.079 - OVOS - ovos_bus_client.client.client:on_error:110 - WARNING - Connection Refused. Is Messagebus Service running?
2023-09-05 13:02:23.100 - OVOS - ovos_bus_client.client.client:on_error:119 - ERROR - Exception closing websocket at ws://0.0.0.0:8181/core: [Errno 111] Connection refused
2023-09-05 13:02:23.124 - OVOS - ovos_bus_client.client.client:on_error:121 - WARNING - Message Bus Client will reconnect in 5.0 seconds.
2023-09-05 13:02:23.131 - OVOS - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:168. Support for `mycroft_core` will be deprecated
2023-09-05 13:02:23.322 - OVOS - ovos_plugin_manager.wakewords:load_module:172 - INFO - Loaded the Wake Word hey_mycroft with module ovos-ww-plugin-precise-lite
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
2023-09-05 13:02:23.347 - OVOS - ovos_dinkum_listener.voice_loop.hotwords:load_hotword_engines:158 - INFO - Loading hotword: hey_mycroft with engine: <ovos_ww_plugin_precise_lite.PreciseLiteHotwordPlugin object at 0x7f55be5550>
2023-09-05 13:02:23.356 - OVOS - ovos_dinkum_listener.voice_loop.hotwords:load_hotword_engines:189 - WARNING - No wakeup words loaded
2023-09-05 13:02:23.363 - OVOS - ovos_dinkum_listener.voice_loop.hotwords:load_hotword_engines:191 - WARNING - No stop words loaded
2023-09-05 13:02:23.382 - OVOS - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.ovos:39. Support for `mycroft_core` will be deprecated
2023-09-05 13:02:23.385 - OVOS - ovos_dinkum_listener.voice_loop.voice_loop:start:166 - INFO - Listening mode: ListeningMode.WAKEWORD
2023-09-05 13:02:23.411 - OVOS - ovos_utils.gui:get_ui_directories:94 - INFO - Checking for legacy UI directories
2023-09-05 13:02:23.478 - OVOS - ovos_workshop.skills.base:is_classic_core:85 - WARNING - Deprecation version=0.1.0. Caller=ovos_workshop.skills.mycroft_skill:148. Support for `mycroft_core` will be deprecated
2023-09-05 13:02:23.481 - ovos.PHAL - WARNING - Tried to initialize ovos.PHAL multiple times, ignoring
2023-09-05 13:02:23.493 - OVOS - ovos_PHAL.service:on_started:26 - INFO - PHAL is started
2023-09-05 13:02:23.579 - OVOS - hivemind_voice_satellite.service:on_started:11 - INFO - HiveMind Voice Satellite started.
2023-09-05 13:02:23.583 - OVOS - hivemind_voice_satellite.service:on_started:11 - INFO - HiveMind Voice Satellite started.
2023-09-05 13:02:23.597 - OVOS - hivemind_voice_satellite.service:on_ready:7 - INFO - HiveMind Voice Satellite is ready.
2023-09-05 13:02:23.607 - OVOS - ovos_dinkum_listener.service:run:268 - INFO - Service ready
2023-09-05 13:02:23.618 - OVOS - ovos_dinkum_listener.voice_loop.voice_loop:run:191 - INFO - Starting loop in mode: ListeningMode.WAKEWORD
2023-09-05 13:02:23.662 - OVOS - ovos_PHAL.service:on_ready:10 - INFO - PHAL is ready.
2023-09-05 13:02:28.135 - OVOS - ovos_bus_client.client.client:on_error:110 - WARNING - Connection Refused. Is Messagebus Service running?
2023-09-05 13:02:28.144 - OVOS - ovos_bus_client.client.client:on_error:119 - ERROR - Exception closing websocket at ws://0.0.0.0:8181/core: [Errno 111] Connection refused
2023-09-05 13:02:28.151 - OVOS - ovos_bus_client.client.client:on_error:121 - WARNING - Message Bus Client will reconnect in 10.0 seconds.
2023-09-05 13:02:34.752 - OVOS - ovos_dinkum_listener.voice_loop.voice_loop:run:219 - INFO - Wakeword detected
2023-09-05 13:02:35.898 - OVOS - ovos_dinkum_listener.voice_loop.voice_loop:run:249 - INFO - speech finished
2023-09-05 13:02:36.369 - OVOS - ovos_dinkum_listener.voice_loop.voice_loop:_after_cmd:657 - INFO - transcribed: "To what time is it?"
2023-09-05 13:02:36.693 - OVOS - hivemind_bus_client.protocol:handle_bus:196 - INFO - BUS: skill-ovos-date-time.openvoiceos:handle_query_time
2023-09-05 13:02:36.712 - OVOS - hivemind_bus_client.protocol:handle_bus:196 - INFO - BUS: mycroft.skill.handler.start
2023-09-05 13:02:36.767 - OVOS - hivemind_bus_client.protocol:handle_bus:196 - INFO - BUS: enclosure.active_skill
2023-09-05 13:02:36.793 - OVOS - ovos_audio.service:execute_tts:322 - INFO - Speak: It is one oh two
2023-09-05 13:02:37.064 - OVOS - ovos_audio.utils:report_timing:63 - ERROR - Failed to upload metrics
2023-09-05 13:02:37.084 - OVOS - hivemind_bus_client.protocol:handle_bus:196 - INFO - BUS: speak
2023-09-05 13:02:37.120 - OVOS - hivemind_bus_client.protocol:handle_bus:196 - INFO - BUS: enclosure.mouth.events.deactivate
2023-09-05 13:02:37.154 - OVOS - hivemind_bus_client.protocol:handle_bus:196 - INFO - BUS: enclosure.mouth.display
2023-09-05 13:02:37.192 - OVOS - hivemind_bus_client.protocol:handle_bus:196 - INFO - BUS: enclosure.mouth.display
2023-09-05 13:02:37.224 - OVOS - hivemind_bus_client.protocol:handle_bus:196 - INFO - BUS: enclosure.mouth.display
2023-09-05 13:02:37.255 - OVOS - hivemind_bus_client.protocol:handle_bus:196 - INFO - BUS: enclosure.mouth.display
2023-09-05 13:02:37.294 - OVOS - hivemind_bus_client.protocol:handle_bus:196 - INFO - BUS: enclosure.mouth.display
2023-09-05 13:02:37.327 - OVOS - hivemind_bus_client.protocol:handle_bus:196 - INFO - BUS: enclosure.mouth.display
Playing WAVE '/home/ovos/.cache/mycroft/OVOSServerTTS/default/en-us/09a291f749a395b326daccc0d8218325.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
2023-09-05 13:02:38.164 - OVOS - ovos_bus_client.client.client:on_error:110 - WARNING - Connection Refused. Is Messagebus Service running?
2023-09-05 13:02:38.174 - OVOS - ovos_bus_client.client.client:on_error:119 - ERROR - Exception closing websocket at ws://0.0.0.0:8181/core: [Errno 111] Connection refused
2023-09-05 13:02:38.184 - OVOS - ovos_bus_client.client.client:on_error:121 - WARNING - Message Bus Client will reconnect in 20.0 seconds.
2023-09-05 13:02:40.068 - OVOS - hivemind_bus_client.protocol:handle_bus:196 - INFO - BUS: enclosure.mouth.display
2023-09-05 13:02:45.095 - OVOS - hivemind_bus_client.protocol:handle_bus:196 - INFO - BUS: enclosure.mouth.reset
2023-09-05 13:02:45.113 - OVOS - hivemind_bus_client.protocol:handle_bus:196 - INFO - BUS: enclosure.mouth.events.activate
2023-09-05 13:02:45.131 - OVOS - hivemind_bus_client.protocol:handle_bus:196 - INFO - BUS: mycroft.skill.handler.complete
2023-09-05 13:02:58.197 - OVOS - ovos_bus_client.client.client:on_error:110 - WARNING - Connection Refused. Is Messagebus Service running?
2023-09-05 13:02:58.211 - OVOS - ovos_bus_client.client.client:on_error:119 - ERROR - Exception closing websocket at ws://0.0.0.0:8181/core: [Errno 111] Connection refused
2023-09-05 13:02:58.225 - OVOS - ovos_bus_client.client.client:on_error:121 - WARNING - Message Bus Client will reconnect in 40.0 seconds.
If, when you try to run the voice sat, you get a bunch of ALSA error spam and a traceback from pyaudio.PyAudio()
, this can be kludged around.
Weirdly, if you try to instantiate the object a second time, it works the second time around. Hence, users on PinePhone and possibly other SOCs can use the following as a hotfix, until the problem is diagnosed.
master...ChanceNCounter:pinephone-pa-kludge
NOTE TO READERS: The file may have been worked on since this issue was posted. You only care about my additions, not my deletions, when you look at that diff.
Mea culpa...
sync with mycroft-core, add support for streaming STT
A warning when something goes wrong is important. Identical warnings several hundred times per minute solve little, and cause additional problems =P
It just took me five full minutes to figure out that PA was the problem on a particular device, because I couldn't catch anything it was logging.
extract TTS factory from mycroft and support all engines
If the listener restart, the voice-sat is not able to reconnect to it.
2023-06-27 19:24:54.665 - OVOS - ovos_bus_client.client.client:on_error:121 - WARNING - Message Bus Client will reconnect in 5.0 seconds.
2023-06-27 19:24:59.774 - OVOS - hivemind_bus_client.client:on_message:148 - WARNING - Message was unencrypted
2023-06-27 19:24:59.784 - OVOS - hivemind_bus_client.protocol:handle_hello:122 - INFO - HELLO: {'pubkey': '-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nxsFNBGSbbwoBEAC0k5PzsGEizC1bRZOE/PstNmnBjZNwvaof8uoijVFZbWwMJzPo\nu+jkLbSW42ejOV3tB97v/mJ8f+yZ0ep/GzwTpjF/JYg+WyCACV1S5Vm2eGHMrCeP\nvVUyjS3U1JjQbK7nisyu6/mPyUMt6bAnc77H7PHBnQTOAcqB5o9BDNoXwSiIdNHR\nS1f3XlZKZiW5fzFoNzj/3t9OIrEI59xHMaLwQJ5tObPi5PDxZTBEWICBPA3Uu1Nu\nrGSCpWvC5pxKeSUEJMmGhioITTe2D7CMQYO2tffoiVYQ3OIzyABahaeSz9xYl0Ot\n4IGWVO1fQzQBP7Pse04YADf+e7fjaqguiFySB3nkFh08U/2hOiAECykqwXW7NEzt\n4Vkhwa446AwJFIKX9vvtJHlGrnyQvayCAJ59MpO9vexpq9Vf+uRTbYEG0zJtqFRY\n25jgF9R+RcLoq0qNfS6pAzkf17IZ2MSXuCn9h4vEpMhGSxKjT+n///5ltnsMGkQ2\nUmext84qMAfgvRqSqJSNnhmhuCxRPqmSa+0lyZymuLJtfzX22cSuuXAKbfTr9Is5\nwmfrSvofyUiQckEZEx/PFv0Wm0+DrHRKNg6E+fXET1/LFoFm5WselGFzGJENxMMq\nXFbswijxjMrtY5c1BHYeOTC0srzzc2hRYQKQjbxv0ILnvgHu5FkxACC+VwARAQAB\nzRBQb29yTWFuSGFuZHNoYWtlwsGGBBMBCgAwBQJkm28LAhsGAwsJDQMVCggEFgMB\nAAIeARYhBMJQOYV/vWoFW7h4vGjN6M/9cJyqAAoJEGjN6M/9cJyqlCIP/3huUDX+\n8sZNcp1UvAzdc+VZIuzVNZ/IBLpzw1xxhneVIVhjFIkZblmjvmuncgnVzXtNqjdj\nrkPNdSzW4hEOqzkxgz2AKrxNuvcxlhcr11OvxoMqukGx5oMoEAjoDdGxE2680o0P\nOioC3P9TXT+7BvjVsXojf8oUAyBzu3DQZiLiqTLEOH/BlYNW3uDnPPKEqeZPTv9e\n/NbLL4cSj360pztmO4OhJzqb1sgLutFfn89ctFZoHfcFLlSV2PM1Biw3DXzCn+im\nsUj3YaGDKkpImpZS01Q1+65IBxbQkKKNBhbwsGWLChRy6bQsTli4/l8KDLqqfW2W\nX3phYeb4+PvjoKY7ERnc8OLFB6nuUACglt7G4EIErCskI/VYXJvHeARNHiLsWp5K\n2NtOvpRgMy+17HMia+7kMFuY1mDOSpu2yLDq/z8aRiZO4vCbab7fJvhdX6kaBFKR\n3I1vVhGWOl+pGVvbr7Thrp9Nr92B6q8CxaUym996VnOLNH7Sk4xC9721HCCP6O0p\nIiLb8reakbKil4T6ymZysz80NECjF8TZCZqnP3+nBGqeLYSrd73mOmcDs9oHBZBx\nSklQ1Xl4tzE24IEksakwvGWZ/CYiD1WILW8JyNfUNeso95Gnu+Mc7Zv1EsdtGK0X\n7l4nKHgW+YW4jgqcrfxpij6dWz92VMvwJ3kX\n=NiKb\n-----END PGP PUBLIC KEY BLOCK-----\n', 'peer': 'VoiceSatelliteV0.3.0:192.168.100.245::206b719e-f2b8-4008-bb5e-5e664ffd9ba1', 'node_id': 'master:0.0.0.0'}
2023-06-27 19:24:59.797 - OVOS - hivemind_bus_client.client:on_message:148 - WARNING - Message was unencrypted
2023-06-27 19:24:59.809 - OVOS - hivemind_bus_client.protocol:handle_handshake:130 - INFO - HANDSHAKE: {'handshake': False, 'min_protocol_version': 0, 'max_protocol_version': 1, 'preshared_key': True, 'password': True, 'crypto_required': True}
2023-06-27 19:24:59.814 - OVOS - hivemind_bus_client.client:emit:186 - INFO - sending to HiveMind: {"msg_type": "shake", "payload": {"envelope": "384e3146445a5777ad02c5419da861575e4c888578ed0563"}, "route": [], "node": null, "source_peer": null}
2023-06-27 19:24:59.841 - OVOS - ovos_bus_client.client.client:on_error:108 - WARNING - Could not send message because connection has closed
2023-06-27 19:24:59.848 - OVOS - ovos_bus_client.client.client:on_error:119 - ERROR - Exception closing websocket at ws://192.168.100.55:5678?authorization=Vm9pY2VTYXRlbGxpdGVWMC4zLjA6MzcyNTdlNWVkMDhkNTg2MDA5NDM0ZGQ4N2I0ODIwMTM=: Connection is already closed.
2023-06-27 19:24:59.854 - OVOS - ovos_bus_client.client.client:on_error:121 - WARNING - Message Bus Client will reconnect in 5.0 seconds.
2023-06-27 19:25:04.967 - OVOS - hivemind_bus_client.client:on_message:148 - WARNING - Message was unencrypted
2023-06-27 19:25:04.974 - OVOS - hivemind_bus_client.protocol:handle_hello:122 - INFO - HELLO: {'pubkey': '-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nxsFNBGSbbwoBEAC0k5PzsGEizC1bRZOE/PstNmnBjZNwvaof8uoijVFZbWwMJzPo\nu+jkLbSW42ejOV3tB97v/mJ8f+yZ0ep/GzwTpjF/JYg+WyCACV1S5Vm2eGHMrCeP\nvVUyjS3U1JjQbK7nisyu6/mPyUMt6bAnc77H7PHBnQTOAcqB5o9BDNoXwSiIdNHR\nS1f3XlZKZiW5fzFoNzj/3t9OIrEI59xHMaLwQJ5tObPi5PDxZTBEWICBPA3Uu1Nu\nrGSCpWvC5pxKeSUEJMmGhioITTe2D7CMQYO2tffoiVYQ3OIzyABahaeSz9xYl0Ot\n4IGWVO1fQzQBP7Pse04YADf+e7fjaqguiFySB3nkFh08U/2hOiAECykqwXW7NEzt\n4Vkhwa446AwJFIKX9vvtJHlGrnyQvayCAJ59MpO9vexpq9Vf+uRTbYEG0zJtqFRY\n25jgF9R+RcLoq0qNfS6pAzkf17IZ2MSXuCn9h4vEpMhGSxKjT+n///5ltnsMGkQ2\nUmext84qMAfgvRqSqJSNnhmhuCxRPqmSa+0lyZymuLJtfzX22cSuuXAKbfTr9Is5\nwmfrSvofyUiQckEZEx/PFv0Wm0+DrHRKNg6E+fXET1/LFoFm5WselGFzGJENxMMq\nXFbswijxjMrtY5c1BHYeOTC0srzzc2hRYQKQjbxv0ILnvgHu5FkxACC+VwARAQAB\nzRBQb29yTWFuSGFuZHNoYWtlwsGGBBMBCgAwBQJkm28LAhsGAwsJDQMVCggEFgMB\nAAIeARYhBMJQOYV/vWoFW7h4vGjN6M/9cJyqAAoJEGjN6M/9cJyqlCIP/3huUDX+\n8sZNcp1UvAzdc+VZIuzVNZ/IBLpzw1xxhneVIVhjFIkZblmjvmuncgnVzXtNqjdj\nrkPNdSzW4hEOqzkxgz2AKrxNuvcxlhcr11OvxoMqukGx5oMoEAjoDdGxE2680o0P\nOioC3P9TXT+7BvjVsXojf8oUAyBzu3DQZiLiqTLEOH/BlYNW3uDnPPKEqeZPTv9e\n/NbLL4cSj360pztmO4OhJzqb1sgLutFfn89ctFZoHfcFLlSV2PM1Biw3DXzCn+im\nsUj3YaGDKkpImpZS01Q1+65IBxbQkKKNBhbwsGWLChRy6bQsTli4/l8KDLqqfW2W\nX3phYeb4+PvjoKY7ERnc8OLFB6nuUACglt7G4EIErCskI/VYXJvHeARNHiLsWp5K\n2NtOvpRgMy+17HMia+7kMFuY1mDOSpu2yLDq/z8aRiZO4vCbab7fJvhdX6kaBFKR\n3I1vVhGWOl+pGVvbr7Thrp9Nr92B6q8CxaUym996VnOLNH7Sk4xC9721HCCP6O0p\nIiLb8reakbKil4T6ymZysz80NECjF8TZCZqnP3+nBGqeLYSrd73mOmcDs9oHBZBx\nSklQ1Xl4tzE24IEksakwvGWZ/CYiD1WILW8JyNfUNeso95Gnu+Mc7Zv1EsdtGK0X\n7l4nKHgW+YW4jgqcrfxpij6dWz92VMvwJ3kX\n=NiKb\n-----END PGP PUBLIC KEY BLOCK-----\n', 'peer': 'VoiceSatelliteV0.3.0:192.168.100.245::461a1391-88b9-49ca-9ee9-c12f2624d540', 'node_id': 'master:0.0.0.0'}
2023-06-27 19:25:04.996 - OVOS - hivemind_bus_client.client:on_message:148 - WARNING - Message was unencrypted
2023-06-27 19:25:05.006 - OVOS - hivemind_bus_client.protocol:handle_handshake:130 - INFO - HANDSHAKE: {'handshake': False, 'min_protocol_version': 0, 'max_protocol_version': 1, 'preshared_key': True, 'password': True, 'crypto_required': True}
2023-06-27 19:25:05.015 - OVOS - hivemind_bus_client.client:emit:186 - INFO - sending to HiveMind: {"msg_type": "shake", "payload": {"envelope": "7666347a6576783002e471d1bc8256a39114a59b68553bad"}, "route": [], "node": null, "source_peer": null}
2023-06-27 19:25:05.041 - OVOS - ovos_bus_client.client.client:on_error:108 - WARNING - Could not send message because connection has closed
2023-06-27 19:25:05.046 - OVOS - ovos_bus_client.client.client:on_error:119 - ERROR - Exception closing websocket at ws://192.168.100.55:5678?authorization=Vm9pY2VTYXRlbGxpdGVWMC4zLjA6MzcyNTdlNWVkMDhkNTg2MDA5NDM0ZGQ4N2I0ODIwMTM=: Connection is already closed.
2023-06-27 19:25:05.056 - OVOS - ovos_bus_client.client.client:on_error:121 - WARNING - Message Bus Client will reconnect in 5.0 seconds.
2023-06-27 19:25:10.164 - OVOS - hivemind_bus_client.client:on_message:148 - WARNING - Message was unencrypted
2023-06-27 19:25:10.172 - OVOS - hivemind_bus_client.protocol:handle_hello:122 - INFO - HELLO: {'pubkey': '-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nxsFNBGSbbwoBEAC0k5PzsGEizC1bRZOE/PstNmnBjZNwvaof8uoijVFZbWwMJzPo\nu+jkLbSW42ejOV3tB97v/mJ8f+yZ0ep/GzwTpjF/JYg+WyCACV1S5Vm2eGHMrCeP\nvVUyjS3U1JjQbK7nisyu6/mPyUMt6bAnc77H7PHBnQTOAcqB5o9BDNoXwSiIdNHR\nS1f3XlZKZiW5fzFoNzj/3t9OIrEI59xHMaLwQJ5tObPi5PDxZTBEWICBPA3Uu1Nu\nrGSCpWvC5pxKeSUEJMmGhioITTe2D7CMQYO2tffoiVYQ3OIzyABahaeSz9xYl0Ot\n4IGWVO1fQzQBP7Pse04YADf+e7fjaqguiFySB3nkFh08U/2hOiAECykqwXW7NEzt\n4Vkhwa446AwJFIKX9vvtJHlGrnyQvayCAJ59MpO9vexpq9Vf+uRTbYEG0zJtqFRY\n25jgF9R+RcLoq0qNfS6pAzkf17IZ2MSXuCn9h4vEpMhGSxKjT+n///5ltnsMGkQ2\nUmext84qMAfgvRqSqJSNnhmhuCxRPqmSa+0lyZymuLJtfzX22cSuuXAKbfTr9Is5\nwmfrSvofyUiQckEZEx/PFv0Wm0+DrHRKNg6E+fXET1/LFoFm5WselGFzGJENxMMq\nXFbswijxjMrtY5c1BHYeOTC0srzzc2hRYQKQjbxv0ILnvgHu5FkxACC+VwARAQAB\nzRBQb29yTWFuSGFuZHNoYWtlwsGGBBMBCgAwBQJkm28LAhsGAwsJDQMVCggEFgMB\nAAIeARYhBMJQOYV/vWoFW7h4vGjN6M/9cJyqAAoJEGjN6M/9cJyqlCIP/3huUDX+\n8sZNcp1UvAzdc+VZIuzVNZ/IBLpzw1xxhneVIVhjFIkZblmjvmuncgnVzXtNqjdj\nrkPNdSzW4hEOqzkxgz2AKrxNuvcxlhcr11OvxoMqukGx5oMoEAjoDdGxE2680o0P\nOioC3P9TXT+7BvjVsXojf8oUAyBzu3DQZiLiqTLEOH/BlYNW3uDnPPKEqeZPTv9e\n/NbLL4cSj360pztmO4OhJzqb1sgLutFfn89ctFZoHfcFLlSV2PM1Biw3DXzCn+im\nsUj3YaGDKkpImpZS01Q1+65IBxbQkKKNBhbwsGWLChRy6bQsTli4/l8KDLqqfW2W\nX3phYeb4+PvjoKY7ERnc8OLFB6nuUACglt7G4EIErCskI/VYXJvHeARNHiLsWp5K\n2NtOvpRgMy+17HMia+7kMFuY1mDOSpu2yLDq/z8aRiZO4vCbab7fJvhdX6kaBFKR\n3I1vVhGWOl+pGVvbr7Thrp9Nr92B6q8CxaUym996VnOLNH7Sk4xC9721HCCP6O0p\nIiLb8reakbKil4T6ymZysz80NECjF8TZCZqnP3+nBGqeLYSrd73mOmcDs9oHBZBx\nSklQ1Xl4tzE24IEksakwvGWZ/CYiD1WILW8JyNfUNeso95Gnu+Mc7Zv1EsdtGK0X\n7l4nKHgW+YW4jgqcrfxpij6dWz92VMvwJ3kX\n=NiKb\n-----END PGP PUBLIC KEY BLOCK-----\n', 'peer': 'VoiceSatelliteV0.3.0:192.168.100.245::ba5d7c52-1cac-4813-a183-f65a39edf1dc', 'node_id': 'master:0.0.0.0'}
2023-06-27 19:25:10.181 - OVOS - hivemind_bus_client.client:on_message:148 - WARNING - Message was unencrypted
2023-06-27 19:25:10.187 - OVOS - hivemind_bus_client.protocol:handle_handshake:130 - INFO - HANDSHAKE: {'handshake': False, 'min_protocol_version': 0, 'max_protocol_version': 1, 'preshared_key': True, 'password': True, 'crypto_required': True}
2023-06-27 19:25:10.194 - OVOS - hivemind_bus_client.client:emit:186 - INFO - sending to HiveMind: {"msg_type": "shake", "payload": {"envelope": "464f7459366774732fc4968babaf4280c462a3ad5469d5ae"}, "route": [], "node": null, "source_peer": null}
2023-06-27 19:25:10.216 - OVOS - ovos_bus_client.client.client:on_error:108 - WARNING - Could not send message because connection has closed
2023-06-27 19:25:10.223 - OVOS - ovos_bus_client.client.client:on_error:119 - ERROR - Exception closing websocket at ws://192.168.100.55:5678?authorization=Vm9pY2VTYXRlbGxpdGVWMC4zLjA6MzcyNTdlNWVkMDhkNTg2MDA5NDM0ZGQ4N2I0ODIwMTM=: Connection is already closed.
2023-06-27 19:25:10.229 - OVOS - ovos_bus_client.client.client:on_error:121 - WARNING - Message Bus Client will reconnect in 5.0 seconds.
Logs from the listener
2023-06-27 23:25:15.254 - HiveMind - hivemind_core.service:open:124 - INFO - authorizing client: VoiceSatelliteV0.3.0
2023-06-27 23:25:15.286 - HiveMind - hivemind_core.protocol:handle_new_client:224 - INFO - new client: VoiceSatelliteV0.3.0:192.168.100.245::7b89089c-44e2-4f0e-b1a8-f215446c9637
2023-06-27 23:25:15.310 - HiveMind - hivemind_core.protocol:handle_new_client:239 - INFO - saying HELLO to: VoiceSatelliteV0.3.0:192.168.100.245::7b89089c-44e2-4f0e-b1a8-f215446c9637
2023-06-27 23:25:15.322 - HiveMind - hivemind_core.protocol:send:76 - INFO - sending to VoiceSatelliteV0.3.0:192.168.100.245::7b89089c-44e2-4f0e-b1a8-f215446c9637: {"msg_type": "hello", "payload": {"pubkey": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nxsFNBGSbbwoBEAC0k5PzsGEizC1bRZOE/PstNmnBjZNwvaof8uoijVFZbWwMJzPo\nu+jkLbSW42ejOV3tB97v/mJ8f+yZ0ep/GzwTpjF/JYg+WyCACV1S5Vm2eGHMrCeP\nvVUyjS3U1JjQbK7nisyu6/mPyUMt6bAnc77H7PHBnQTOAcqB5o9BDNoXwSiIdNHR\nS1f3XlZKZiW5fzFoNzj/3t9OIrEI59xHMaLwQJ5tObPi5PDxZTBEWICBPA3Uu1Nu\nrGSCpWvC5pxKeSUEJMmGhioITTe2D7CMQYO2tffoiVYQ3OIzyABahaeSz9xYl0Ot\n4IGWVO1fQzQBP7Pse04YADf+e7fjaqguiFySB3nkFh08U/2hOiAECykqwXW7NEzt\n4Vkhwa446AwJFIKX9vvtJHlGrnyQvayCAJ59MpO9vexpq9Vf+uRTbYEG0zJtqFRY\n25jgF9R+RcLoq0qNfS6pAzkf17IZ2MSXuCn9h4vEpMhGSxKjT+n///5ltnsMGkQ2\nUmext84qMAfgvRqSqJSNnhmhuCxRPqmSa+0lyZymuLJtfzX22cSuuXAKbfTr9Is5\nwmfrSvofyUiQckEZEx/PFv0Wm0+DrHRKNg6E+fXET1/LFoFm5WselGFzGJENxMMq\nXFbswijxjMrtY5c1BHYeOTC0srzzc2hRYQKQjbxv0ILnvgHu5FkxACC+VwARAQAB\nzRBQb29yTWFuSGFuZHNoYWtlwsGGBBMBCgAwBQJkm28LAhsGAwsJDQMVCggEFgMB\nAAIeARYhBMJQOYV/vWoFW7h4vGjN6M/9cJyqAAoJEGjN6M/9cJyqlCIP/3huUDX+\n8sZNcp1UvAzdc+VZIuzVNZ/IBLpzw1xxhneVIVhjFIkZblmjvmuncgnVzXtNqjdj\nrkPNdSzW4hEOqzkxgz2AKrxNuvcxlhcr11OvxoMqukGx5oMoEAjoDdGxE2680o0P\nOioC3P9TXT+7BvjVsXojf8oUAyBzu3DQZiLiqTLEOH/BlYNW3uDnPPKEqeZPTv9e\n/NbLL4cSj360pztmO4OhJzqb1sgLutFfn89ctFZoHfcFLlSV2PM1Biw3DXzCn+im\nsUj3YaGDKkpImpZS01Q1+65IBxbQkKKNBhbwsGWLChRy6bQsTli4/l8KDLqqfW2W\nX3phYeb4+PvjoKY7ERnc8OLFB6nuUACglt7G4EIErCskI/VYXJvHeARNHiLsWp5K\n2NtOvpRgMy+17HMia+7kMFuY1mDOSpu2yLDq/z8aRiZO4vCbab7fJvhdX6kaBFKR\n3I1vVhGWOl+pGVvbr7Thrp9Nr92B6q8CxaUym996VnOLNH7Sk4xC9721HCCP6O0p\nIiLb8reakbKil4T6ymZysz80NECjF8TZCZqnP3+nBGqeLYSrd73mOmcDs9oHBZBx\nSklQ1Xl4tzE24IEksakwvGWZ/CYiD1WILW8JyNfUNeso95Gnu+Mc7Zv1EsdtGK0X\n7l4nKHgW+YW4jgqcrfxpij6dWz92VMvwJ3kX\n=NiKb\n-----END PGP PUBLIC KEY BLOCK-----\n", "peer": "VoiceSatelliteV0.3.0:192.168.100.245::7b89089c-44e2-4f0e-b1a8-f215446c9637", "node_id": "master:0.0.0.0"}, "route": [], "node": null, "source_peer": null}
2023-06-27 23:25:15.328 - HiveMind - hivemind_core.protocol:send:83 - WARNING - sent unencrypted!
2023-06-27 23:25:15.342 - HiveMind - hivemind_core.protocol:handle_new_client:254 - INFO - starting VoiceSatelliteV0.3.0:192.168.100.245::7b89089c-44e2-4f0e-b1a8-f215446c9637 HANDSHAKE: {'handshake': False, 'min_protocol_version': <ProtocolVersion.ZERO: 0>, 'max_protocol_version': <ProtocolVersion.ONE: 1>, 'preshared_key': True, 'password': True, 'crypto_required': True}
2023-06-27 23:25:15.350 - HiveMind - hivemind_core.protocol:send:76 - INFO - sending to VoiceSatelliteV0.3.0:192.168.100.245::7b89089c-44e2-4f0e-b1a8-f215446c9637: {"msg_type": "shake", "payload": {"handshake": false, "min_protocol_version": 0, "max_protocol_version": 1, "preshared_key": true, "password": true, "crypto_required": true}, "route": [], "node": null, "source_peer": null}
2023-06-27 23:25:15.358 - HiveMind - hivemind_core.protocol:send:83 - WARNING - sent unencrypted!
2023-06-27 23:25:15.397 - HiveMind - ovos_utils.security:decrypt:101 - ERROR - decryption failed, invalid key?
Uncaught exception GET /?authorization=Vm9pY2VTYXRlbGxpdGVWMC4zLjA6MzcyNTdlNWVkMDhkNTg2MDA5NDM0ZGQ4N2I0ODIwMTM= (192.168.100.245)
HTTPServerRequest(protocol='http', host='192.168.100.55:5678', method='GET', uri='/?authorization=Vm9pY2VTYXRlbGxpdGVWMC4zLjA6MzcyNTdlNWVkMDhkNTg2MDA5NDM0ZGQ4N2I0ODIwMTM=', version='HTTP/1.1', remote_ip='192.168.100.245')
Traceback (most recent call last):
File "/home/ovos/.venv/lib/python3.11/site-packages/hivemind_bus_client/util.py", line 126, in decrypt_from_json
return decrypt(key, ciphertext, tag, nonce)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_utils/security.py", line 97, in decrypt
data = cipher.decrypt_and_verify(ciphertext, tag)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/Cryptodome/Cipher/_mode_gcm.py", line 567, in decrypt_and_verify
self.verify(received_mac_tag)
File "/home/ovos/.venv/lib/python3.11/site-packages/Cryptodome/Cipher/_mode_gcm.py", line 508, in verify
raise ValueError("MAC check failed")
ValueError: MAC check failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ovos/.venv/lib/python3.11/site-packages/tornado/websocket.py", line 630, in _run_callback
result = callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/hivemind_core/service.py", line 117, in on_message
message = self.client.decode(message)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/hivemind_core/protocol.py", line 91, in decode
payload = decrypt_from_json(self.crypto_key, payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/hivemind_bus_client/util.py", line 128, in decrypt_from_json
raise DecryptionKeyError
hivemind_bus_client.exceptions.DecryptionKeyError
deepspeech now works pretty well, even on a pi we can use it real time
Add regular and streaming deepspeech options
#0 20.04 The conflict is caused by:
#0 20.04 hivemind-voice-sat 1.0.7 depends on jarbas_utils
#0 20.04 hivemind-voice-sat 1.0.6 depends on jarbas_utils
#0 20.04 hivemind-voice-sat 1.0.5 depends on jarbas_utils
#0 20.04 hivemind-voice-sat 1.0.4 depends on jarbas_utils
#0 20.04 hivemind-voice-sat 1.0.3 depends on jarbas_utils
#0 20.04 hivemind-voice-sat 1.0.2 depends on jarbas_utils
#0 20.04 hivemind-voice-sat 1.0.1 depends on jarbas_utils
add support for local kaldi stt streaming, check https://github.com/JarbasAl/kaldi_spotter
Hi All,
Using pip install git+https://github.com/JarbasHiveMind/HiveMind-voice-sat, received the following message.
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
SpeechRecognition~=3.9 from https://www.piwheels.org/simple/speechrecognition/SpeechRecognition-3.10.1-py2.py3-none-any.whl#sha256=2e1e47088e06ecf0b45e5ca0f0e21770d2d9bead1a848d93751bc724fc868ce4 (from ovos-dinkum-listener<0.1.0,>=0.0.3a14->HiveMind-voice-sat==2.0.0a9):
Expected sha256 2e1e47088e06ecf0b45e5ca0f0e21770d2d9bead1a848d93751bc724fc868ce4
Got 3b04f1d5097dde0051eefc95207cd265a4cc1cfaee151cbd54500f2ef273ab6f
OS - Fresh install of 2023-10-10-raspios-bookworm-arm64-lite with WM8960-Audio-HAT
(git clone https://github.com/waveshare/WM8960-Audio-HAT)
Thanks
Steve Smith
Using the hivemind-voice-sat
doesn't work, it tries to connect to wss://127.0.0.
...
hivemind-voice-sat --name remote-ryzen --access_key 37257e5ed08d586009434dd87b482013 --password 33c4da0435426453d97de4755efd7d32 --host ws://192.168.100.55 --port 5678
Error:
2023-06-27 19:01:38.647 - OVOS - ovos_bus_client.client.client:on_error:119 - ERROR - Exception closing websocket at wss://127.0.0.1:5678?authorization=Vm9pY2VTYXRlbGxpdGVWMC4zLjA6Tm9uZQ==: [Errno 111] Connection refused
Using __main__.py
works fine.
python ~/Virtualenvs/hivemind/lib/python3.11/site-packages/hivemind_voice_satellite/__main__.py --access-key 37257e5ed08d586009434dd87b482013 --password 33c4da0435426453d97de4755efd7d32 --host ws://192.168.100.55
There may be a connection to post #24 by Goldyfruit: As soon as the ask_yesno() or get_response() methods of Mycroft/OVOS are used in an intent, the HiveMind master can obviously no longer assign the subsequent communication to the skill. The query is still sent to the client, but the subsequent response comes to nothing. At the same time, the listener on the Hivemind master enters an endless loop. It cannot be interrupted by a "Hey Mycroft, stop".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.