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 fails with TypeError: 'bytes' object cannot be interpreted as an integer #143

Open
JarbasAl opened this issue Sep 15, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@JarbasAl
Copy link
Member

i think this one might be exclusive to using the sounddevice mic plugin, but tracking it here

2024-09-15 14:50:37.252 - voice - ovos_dinkum_listener.voice_loop.voice_loop:_get_tx:714 - ERROR - STT failed
Traceback (most recent call last):
  File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_dinkum_listener/voice_loop/voice_loop.py", line 712, in _get_tx
    utts = self.stt.transcribe() or []
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_dinkum_listener/plugins.py", line 64, in transcribe
    audiod = AudioData(audio or self.stream.buffer.read(),
                                ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_plugin_manager/utils/__init__.py", line 225, in read
    chunk = bytes([self.buffer.popleft() for _ in range(n)])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'bytes' object cannot be interpreted as an integer
@JarbasAl JarbasAl added the bug Something isn't working label Sep 15, 2024
@JarbasAl JarbasAl self-assigned this Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant