Hi all,
I'm working with the ESPHome-based Voice Assistant (using the voice-pe project), and I'm running into an issue where longer TTS responses are causing the HTTP streaming callback to timeout. The log shows something like:
HTTP_CLIENT: Connection timed out before data was ready!
This happens especially with longer TTS replies—short messages work fine. From what I can tell, the default timeout seems to be around 5 seconds.
I came across a suggestion to copy the nabu component into a custom_components folder and override the timeout there, but I’m not sure exactly where to place it or how to make ESPHome use it. Also, I’ve tried both manual upload and device plug-in install, but the ESPHome dashboard gets stuck at a screen (I’ve attached a screenshot below, which just stays there and doesn’t progress).
What I need help with:
-
How do I correctly override the HTTP client timeout for TTS callback streaming?
-
What’s the proper way to structure and load the custom_components/nabu folder?
-
Any idea why the ESPHome dashboard gets stuck when trying to compile or install the firmware?
Thanks in advance for your help!