Voice error: Error processing de-DE speech: 400 Invalid HTTP request

Hi,

i just git my m5 atom echo delivered. Took me a while to set everything up as i am running home-assistant in docker and therefore cannot use the esphome addon. However now everything is up an running - an not completly working.

I have flashed the atom echo with the standard configuration and it is listed as device in home-assistant. The assist pipeline is configured to use the cloud service from napucasa. Wakeword detection is not used for the device (nothing happens). To better reroduce the errors I have currently set it up to listen on pressing the button. After pressing it, the lamp of the atom echo starts blinking slowly in blue. After finished the voice command it turns to red. In the log of the atom echo i see the following:

[16:31:24][D][binary_sensor:036]: 'Button': Sending state ON
[16:31:25][D][binary_sensor:036]: 'Button': Sending state OFF
[16:31:25][D][voice_assistant:422]: State changed from IDLE to START_PIPELINE
[16:31:25][D][voice_assistant:428]: Desired state set to START_MICROPHONE
[16:31:25][D][voice_assistant:124]: microphone not running
[16:31:25][D][voice_assistant:206]: Requesting start...
[16:31:25][D][voice_assistant:422]: State changed from START_PIPELINE to STARTING_PIPELINE
[16:31:25][D][voice_assistant:124]: microphone not running
[16:31:25][D][voice_assistant:124]: microphone not running
[16:31:25][D][voice_assistant:124]: microphone not running
[16:31:25][D][voice_assistant:443]: Client started, streaming microphone
[16:31:25][D][voice_assistant:422]: State changed from STARTING_PIPELINE to START_MICROPHONE
[16:31:25][D][voice_assistant:428]: Desired state set to STREAMING_MICROPHONE
[16:31:25][D][voice_assistant:159]: Starting Microphone
[16:31:25][D][voice_assistant:422]: State changed from START_MICROPHONE to STARTING_MICROPHONE
[16:31:25][D][esp-idf:000]: I (219455) I2S: DMA Malloc info, datalen=blocksize=1024, dma_buf_count=4

[16:31:25][D][voice_assistant:529]: Event Type: 1
[16:31:25][D][voice_assistant:532]: Assist Pipeline running
[16:31:25][D][voice_assistant:422]: State changed from STARTING_MICROPHONE to STREAMING_MICROPHONE
[16:31:25][D][voice_assistant:529]: Event Type: 3
[16:31:25][D][voice_assistant:543]: STT started
[16:31:25][D][light:036]: 'Atom Echo Wohnzimmer' Setting:
[16:31:25][D][light:047]:   State: ON
[16:31:25][D][light:059]:   Red: 0%, Green: 0%, Blue: 100%
[16:31:25][D][light:109]:   Effect: 'Slow Pulse'
[16:31:32][D][voice_assistant:529]: Event Type: 0
[16:31:32][E][voice_assistant:656]: Error: stt-stream-failed - speech-to-text failed
[16:31:32][D][voice_assistant:522]: Signaling stop...
[16:31:32][D][voice_assistant:422]: State changed from STREAMING_MICROPHONE to STOP_MICROPHONE
[16:31:32][D][voice_assistant:428]: Desired state set to IDLE
[16:31:32][D][voice_assistant:422]: State changed from STOP_MICROPHONE to STOPPING_MICROPHONE
[16:31:32][D][light:036]: 'Atom Echo Wohnzimmer' Setting:
[16:31:32][D][light:051]:   Brightness: 100%
[16:31:32][D][light:059]:   Red: 100%, Green: 0%, Blue: 0%
[16:31:32][D][light:109]:   Effect: 'None'
[16:31:32][D][esp-idf:000]: I (226367) I2S: DMA queue destroyed

[16:31:32][D][voice_assistant:529]: Event Type: 2
[16:31:32][D][voice_assistant:619]: Assist Pipeline ended
[16:31:32][D][voice_assistant:422]: State changed from STOPPING_MICROPHONE to IDLE
[16:31:32][D][light:036]: 'Atom Echo Wohnzimmer' Setting:
[16:31:32][D][light:047]:   State: OFF
[16:31:33][D][light:036]: 'Atom Echo Wohnzimmer' Setting:
[16:32:47][I][ota:117]: Boot seems successful, resetting boot loop counter.
[16:32:47][D][esp32.preferences:114]: Saving 1 preferences to flash...
[16:32:47][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed

In home-assistant i have an corresponding error:

2024-01-05 16:31:35.044 ERROR (MainThread) [homeassistant.components.cloud.stt] Voice error: Error processing de-DE speech: 400 Invalid HTTP request.

The behaviour can be reproduced every time i presse the button and try to run a voice command.

Does one of you has any ideas for this? Couldn’t find this error on the web and i am currently out of any ideas what to try next.

Edit:
My Assist Pipeline ist working with the home-assistant companion app.

The error message seems to be misleading. Cause of my problem is the udp connection from the atom to home-assistant which is required to transfer the recorded voice. For the udp connection an high port is opened on home-assistant but the connection is blocked in my setup as i am running home-assistant in docker but not in network mode host. I found two other bug reports related to this an verified it using wireshark.

For the moment i am using a quick and dirty fix from here. With it everything is running even with wakeword detection.