Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STT timeout #10

Open
goldyfruit opened this issue Oct 21, 2024 · 2 comments
Open

STT timeout #10

goldyfruit opened this issue Oct 21, 2024 · 2 comments
Assignees

Comments

@goldyfruit
Copy link
Member

goldyfruit commented Oct 21, 2024

Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]: 2024-10-21 17:28:42.337 - voice - ovos_dinkum_listener.voice_loop.voice_loop:_get_tx:714 - ERROR - STT failed
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]: Traceback (most recent call last):
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/urllib3/connection.py", line 199, in _new_conn
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     sock = connection.create_connection(
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/urllib3/util/connection.py", line 85, in create_connection
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     raise err
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/urllib3/util/connection.py", line 73, in create_connection
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     sock.connect(sa)
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]: OSError: [Errno 101] Network is unreachable
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]: The above exception was the direct cause of the following exception:
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]: Traceback (most recent call last):
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/urllib3/connectionpool.py", line 789, in urlopen
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     response = self._make_request(
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:                ^^^^^^^^^^^^^^^^^^^
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/urllib3/connectionpool.py", line 495, in _make_request
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     conn.request(
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/urllib3/connection.py", line 441, in request
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     self.endheaders()
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/usr/lib64/python3.11/http/client.py", line 1298, in endheaders
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     self._send_output(message_body, encode_chunked=encode_chunked)
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/usr/lib64/python3.11/http/client.py", line 1058, in _send_output
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     self.send(msg)
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/usr/lib64/python3.11/http/client.py", line 996, in send
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     self.connect()
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/urllib3/connection.py", line 279, in connect
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     self.sock = self._new_conn()
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:                 ^^^^^^^^^^^^^^^^
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/urllib3/connection.py", line 214, in _new_conn
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     raise NewConnectionError(
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]: urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f1920092d50>: Failed to establish a new connection: [Errno 101] Network is unreachable
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]: The above exception was the direct cause of the following exception:
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]: Traceback (most recent call last):
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/requests/adapters.py", line 667, in send
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     resp = conn.urlopen(
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:            ^^^^^^^^^^^^^
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/urllib3/connectionpool.py", line 843, in urlopen
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     retries = retries.increment(
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:               ^^^^^^^^^^^^^^^^^^
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/urllib3/util/retry.py", line 519, in increment
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]: urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='www.google.com', port=80): Max retries exceeded with url: /speech-api/v2/recognize?client=chromium&lang=en-US&key=AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw&pFilter=0 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f1920092d50>: Failed to establish a new connection: [Errno 101] Network is unreachable'))
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]: During handling of the above exception, another exception occurred:
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]: Traceback (most recent call last):
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/ovos_dinkum_listener/voice_loop/voice_loop.py", line 712, in _get_tx
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     utts = self.stt.transcribe() or []
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:            ^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/ovos_dinkum_listener/plugins.py", line 67, in transcribe
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     transcripts = self.engine.transcribe(audiod, lang)
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/ovos_plugin_manager/templates/stt.py", line 127, in transcribe
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     return [(self.execute(audio, lang), 1.0)]
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:              ^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/ovos_stt_plugin_chromium/__init__.py", line 236, in execute
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     r = requests.post(url, headers=headers, data=flac_data, params=params)
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/requests/api.py", line 115, in post
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     return request("post", url, data=data, json=json, **kwargs)
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/requests/api.py", line 59, in request
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     return session.request(method=method, url=url, **kwargs)
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/requests/sessions.py", line 589, in request
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     resp = self.send(prep, **send_kwargs)
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/requests/sessions.py", line 703, in send
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     r = adapter.send(request, **kwargs)
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/requests/adapters.py", line 700, in send
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]:     raise ConnectionError(e, request=request)
Oct 21 17:28:42 x270.home.lan ovos-dinkum-listener[445840]: requests.exceptions.ConnectionError: HTTPConnectionPool(host='www.google.com', port=80): Max retries exceeded with url: /speech-api/v2/recognize?client=chromium&lang=en-US&key=AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw&pFilter=0 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f1920092d50>: Failed to establish a new connection: [Errno 101] Network is unreachable'))
@JarbasAl JarbasAl self-assigned this Oct 21, 2024
@JarbasAl
Copy link
Member

wrong logs

@goldyfruit
Copy link
Member Author

wrong logs

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants