Skip to content

stt fails with TypeError: 'bytes' object cannot be interpreted as an integer #143

Description

@JarbasAl

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions