Skip to content

Unreliable performance of tts.piper since 2025.8.x #149870

@Anto79-ops

Description

@Anto79-ops

The problem

hello,

Since updating to 2025.8.x, I've noticed my tts.piper is not working well, or at all.

First, I have several tts.speak action in my automations, for example:

action: tts.speak
target:
  entity_id:
    - tts.piper
data:
  cache: false
  message: "hello hello hello hello "
  media_player_entity_id: media_player.fire_tablet

None of these work, and there is no error messsage in the logs, but there are logs in piper:

ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='wyoming event handler' coro=<AsyncEventHandler.run() done, defined at /usr/local/lib/python3.11/dist-packages/wyoming/server.py:31> exception=AttributeError("'NoneType' object has no attribute 'get'")>
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/dist-packages/wyoming/server.py", line 41, in run
    if not (await self.handle_event(event)):
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/wyoming_piper/handler.py", line 112, in handle_event
    raise err
  File "/usr/local/lib/python3.11/dist-packages/wyoming_piper/handler.py", line 73, in handle_event
    stream_start = SynthesizeStart.from_event(event)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/wyoming/tts.py", line 121, in from_event
    context=event.data.get("context"),
            ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='wyoming event handler' coro=<AsyncEventHandler.run() done, defined at /usr/local/lib/python3.11/dist-packages/wyoming/server.py:31> exception=AttributeError("'NoneType' object has no attribute 'get'")>
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/dist-packages/wyoming/server.py", line 41, in run
    if not (await self.handle_event(event)):
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/wyoming_piper/handler.py", line 112, in handle_event
    raise err
  File "/usr/local/lib/python3.11/dist-packages/wyoming_piper/handler.py", line 73, in handle_event
    stream_start = SynthesizeStart.from_event(event)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/wyoming/tts.py", line 121, in from_event
    context=event.data.get("context"),
            ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'

When I switch to HA Cloud TTS, it works

even if I add the voice ID, it works but not on repeated attempts, and in most case it ignores the first few wors of the text.

Happy to add more information.

What version of Home Assistant Core has the issue?

2025.8.x

What was the last working version of Home Assistant Core?

2025.7.x

What type of installation are you running?

Home Assistant OS

Integration causing the issue

piper

Link to integration documentation on our website

https://www.home-assistant.io/integrations/piper/

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions