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

asyncio error #11

Open
krusse opened this issue Nov 9, 2023 · 4 comments
Open

asyncio error #11

krusse opened this issue Nov 9, 2023 · 4 comments

Comments

@krusse
Copy link

krusse commented Nov 9, 2023

I get the following error in docker logs when pushing the button or using the wakeword with the Atom Echo, and then nothing happens:

INFO:__main__:Ready
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-5' coro=<AsyncEventHandler.run() done, defined at /usr/local/lib/python3.9/dist-packages/wyoming/server.py:26> exception=JSONDecodeError('Extra data: line 1 column 19 (char 18)')>
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/wyoming/server.py", line 28, in run
    event = await async_read_event(self.reader)
  File "/usr/local/lib/python3.9/dist-packages/wyoming/event.py", line 48, in async_read_event
    event_dict = json.loads(json_line)
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 340, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 19 (char 18)

Everything in home assistant is set up according to the guide. I am running the following docker stack:

  wyoming-whisper:
    image: rhasspy/wyoming-whisper:latest
    container_name: ha-whisper
    ports:
      - "10301:10300"
    volumes:
      - ./whisper:/data
    # command: --model tiny-int8 --language en
    command: --model tiny --language en
    restart: unless-stopped
    environment:
      - TZ=$TZ

  wyoming-piper:
    container_name: ha-piper
    image: rhasspy/wyoming-piper:1.3.2
    command: '--voice en_US-lessac-medium'
    volumes:
      - ./piper-data:/data
    environment:
      - TZ=$TZ
    restart: unless-stopped
    ports:
      - 10200:10200

  wyoming-openwakeword:
    image: rhasspy/wyoming-openwakeword
    container_name: ha-wakeword
    command: [  "--preload-model", "ok_nabu"  ]
    volumes:
      - "./openwakeword/custom-models:/custom"
    environment:
      - TZ=$TZ
    restart: unless-stopped
    ports:
        - 10400:10400

Any help is appreciated.

@chpego
Copy link

chpego commented Dec 4, 2023

Hi @krusse
Maybe you've a bad indention in your container for openwakeword, in port section, nope ?

@leranp
Copy link

leranp commented Jan 13, 2024

Same here

@synesthesiam
Copy link
Contributor

Looks like bad data coming in over the TCP port

@c1pher-cn
Copy link

I have the same error
But the error just come when i use atom-echo listening

ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='wyoming event handler' coro=<AsyncEventHandler.run() done, defined at /usr/local/lib/python3.9/dist-packages/wyoming/server.py:28> exception=AssertionError()>
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/wyoming/server.py", line 35, in run
if not (await self.handle_event(event)):
File "/usr/local/lib/python3.9/dist-packages/wyoming_faster_whisper/handler.py", line 58, in handle_event
assert self._wav_file is not None
AssertionError

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

5 participants