Skip to content

"The announcement pipeline's file reader encountered an error" #13

@RobMeades

Description

@RobMeades

I have performed a trial installation of TTMG from scratch today, using OpenAI TTS, but am getting about a 50% failure rate in the playback part: the HAVPE log says "[E][speaker_media_player:334]: The announcement pipeline's file reader encountered an error".

The failure doesn't seem to be related to the query or the response/length, just happens randomly when using the same query each time. For instance, find below logs of a success case followed by a fail case of the query "Please count from 1 to 10" (TTMG is on 10.10.1.11, HAVPE is on 10.10.1.25). Looks as though the response audio is simply not arriving at the HAVPE (HAVPE reporting signal strength -40 dBm, shouldn't be an issue as it is about 3 metres away from the WiFi access point).

Any suggestions as to how I might narrow down what's going on? 10.10.1.11 is a desktop Ubuntu machine with wired Ethernet.

EDIT: I am also running the non-TTMG HAVPE so it seems likely that this the issue is somehow TTMG-linked.

HAVPE side:

[15:36:20][D][micro_wake_word:355]: Detected 'Okay Nabu' with sliding average probability is 0.89 and max probability is 0.98
[15:36:20][D][media_player:073]: 'Home Assistant Voice Streaming' - Setting
[15:36:20][D][media_player:077]:   Command: STOP
[15:36:20][D][media_player:086]:  Announcement: yes
[15:36:20][D][ring_buffer:034][ann_read]: Created ring buffer with size 1000000
[15:36:20][D][speaker_media_player:420]: State changed to ANNOUNCING
[15:36:20][D][speaker_media_player.pipeline:114]: Reading FLAC file type
[15:36:20][D][speaker_media_player.pipeline:124]: Decoded audio has 1 channels, 48000 Hz sample rate, and 16 bits per sample
[15:36:20][D][ring_buffer:034]: Created ring buffer with size 9600
[15:36:20][D][speaker_mixer:306]: Starting speaker mixer
[15:36:20][D][speaker_mixer:314]: Started speaker mixer
[15:36:20][D][voice_assistant:515]: State changed from IDLE to START_MICROPHONE
[15:36:20][D][voice_assistant:522]: Desired state set to START_PIPELINE
[15:36:20][D][voice_assistant:225]: Starting Microphone
[15:36:20][D][voice_assistant:515]: State changed from START_MICROPHONE to STARTING_MICROPHONE
[15:36:20][D][voice_assistant:515]: State changed from STARTING_MICROPHONE to START_PIPELINE
[15:36:20][D][voice_assistant:280]: Requesting start...
[15:36:20][D][voice_assistant:515]: State changed from START_PIPELINE to STARTING_PIPELINE
[15:36:20][D][voice_assistant:537]: Client started, streaming microphone
[15:36:20][D][voice_assistant:515]: State changed from STARTING_PIPELINE to STREAMING_MICROPHONE
[15:36:20][D][voice_assistant:522]: Desired state set to STREAMING_MICROPHONE
[15:36:21][D][voice_assistant:641]: Event Type: 1
[15:36:21][D][voice_assistant:644]: Assist Pipeline running
[15:36:21][D][voice_assistant:641]: Event Type: 3
[15:36:21][D][voice_assistant:655]: STT started
[15:36:21][D][light:036]: 'voice_assistant_leds' Setting:
[15:36:21][D][light:047]:   State: ON
[15:36:21][D][light:051]:   Brightness: 66%
[15:36:21][D][light:109]:   Effect: 'Waiting for Command'
[15:36:21][D][power_supply:033]: Enabling power supply.
[15:36:21][D][speaker_media_player:420]: State changed to IDLE
[15:36:21][D][speaker_mixer:319]: Stopping speaker mixer
[15:36:22][D][voice_assistant:641]: Event Type: 11
[15:36:22][D][voice_assistant:802]: Starting STT by VAD
[15:36:22][D][light:036]: 'voice_assistant_leds' Setting:
[15:36:22][D][light:051]:   Brightness: 66%
[15:36:22][D][light:109]:   Effect: 'Listening For Command'
[15:36:23][D][voice_assistant:641]: Event Type: 12
[15:36:23][D][voice_assistant:806]: STT by VAD end
[15:36:23][D][voice_assistant:515]: State changed from STREAMING_MICROPHONE to STOP_MICROPHONE
[15:36:23][D][voice_assistant:522]: Desired state set to AWAITING_RESPONSE
[15:36:23][D][voice_assistant:515]: State changed from STOP_MICROPHONE to STOPPING_MICROPHONE
[15:36:23][D][light:036]: 'voice_assistant_leds' Setting:
[15:36:23][D][light:051]:   Brightness: 66%
[15:36:23][D][light:109]:   Effect: 'Thinking'
[15:36:23][D][voice_assistant:515]: State changed from STOPPING_MICROPHONE to AWAITING_RESPONSE
[15:36:23][D][voice_assistant:515]: State changed from AWAITING_RESPONSE to AWAITING_RESPONSE
[15:36:24][D][power_supply:033]: Enabling power supply.
[15:36:24][D][power_supply:033]: Enabling power supply.
[15:36:25][D][power_supply:033]: Enabling power supply.
[15:36:25][D][power_supply:033]: Enabling power supply.
[15:36:25][D][power_supply:033]: Enabling power supply.
[15:36:26][D][power_supply:033]: Enabling power supply.
[15:36:26][D][power_supply:033]: Enabling power supply.
[15:36:27][D][power_supply:033]: Enabling power supply.
[15:36:27][D][power_supply:033]: Enabling power supply.
[15:36:27][D][power_supply:033]: Enabling power supply.
[15:36:27][D][voice_assistant:641]: Event Type: 4
[15:36:27][D][voice_assistant:669]: Speech recognised as: " Please count from 1 to 10."
[15:36:27][D][voice_assistant:641]: Event Type: 5
[15:36:27][D][voice_assistant:674]: Intent started
[15:36:27][D][voice_assistant:641]: Event Type: 6
[15:36:27][D][voice_assistant:641]: Event Type: 7
[15:36:27][D][voice_assistant:697]: Response: "Processing your request, please wait..."
[15:36:27][D][light:036]: 'voice_assistant_leds' Setting:
[15:36:27][D][light:051]:   Brightness: 66%
[15:36:27][D][light:109]:   Effect: 'Replying'
[15:36:27][D][voice_assistant:641]: Event Type: 8
[15:36:27][D][voice_assistant:717]: Response URL: "http://10.10.1.11:8888/play/d7cd77a08886cd9aa810ddaf058ee881.flac"
[15:36:27][D][voice_assistant:515]: State changed from AWAITING_RESPONSE to STREAMING_RESPONSE
[15:36:27][D][voice_assistant:522]: Desired state set to STREAMING_RESPONSE
[15:36:27][D][media_player:073]: 'Home Assistant Voice Streaming' - Setting
[15:36:27][D][media_player:080]:   Media URL: http://10.10.1.11:8888/play/d7cd77a08886cd9aa810ddaf058ee881.flac
[15:36:27][D][media_player:086]:  Announcement: yes
[15:36:27][D][speaker_media_player:420]: State changed to ANNOUNCING
[15:36:27][D][voice_assistant:641]: Event Type: 2
[15:36:27][D][voice_assistant:731]: Assist Pipeline ended
[15:36:27][D][ring_buffer:034][ann_read]: Created ring buffer with size 1000000
[15:36:27][D][speaker_media_player.pipeline:114]: Reading FLAC file type
[15:36:32][D][voice_assistant:515]: State changed from STREAMING_RESPONSE to IDLE
[15:36:32][D][voice_assistant:522]: Desired state set to IDLE
[15:36:32][D][light:036]: 'voice_assistant_leds' Setting:
[15:36:32][D][light:047]:   State: OFF
[15:36:32][D][light:109]:   Effect: 'None'
[15:36:32][D][speaker_media_player.pipeline:124]: Decoded audio has 2 channels, 24000 Hz sample rate, and 16 bits per sample
[15:36:32][D][ring_buffer:034][sample]: Created ring buffer with size 9600
[15:36:32][D][ring_buffer:034]: Created ring buffer with size 19200
[15:36:32][D][resampler_speaker:059]: Starting resampler task
[15:36:32][D][resampler_speaker:080]: Started resampler task
[15:36:32][D][speaker_mixer:306]: Starting speaker mixer
[15:36:32][D][speaker_mixer:314]: Started speaker mixer
[15:36:35][D][speaker_media_player:420]: State changed to IDLE
[15:36:35][D][speaker_mixer:319]: Stopping speaker mixer
[15:36:35][D][resampler_speaker:085]: Stopping resampler task
[15:36:35][D][resampler_speaker:090]: Stopped resampler task
[15:36:42][D][power_supply:048]: Disabling power supply.
[15:36:44][D][micro_wake_word:355]: Detected 'Okay Nabu' with sliding average probability is 0.89 and max probability is 0.96
[15:36:44][D][media_player:073]: 'Home Assistant Voice Streaming' - Setting
[15:36:44][D][media_player:077]:   Command: STOP
[15:36:44][D][media_player:086]:  Announcement: yes
[15:36:44][D][ring_buffer:034][ann_read]: Created ring buffer with size 1000000
[15:36:44][D][speaker_media_player:420]: State changed to ANNOUNCING
[15:36:44][D][speaker_media_player.pipeline:114]: Reading FLAC file type
[15:36:44][D][speaker_media_player.pipeline:124]: Decoded audio has 1 channels, 48000 Hz sample rate, and 16 bits per sample
[15:36:44][D][ring_buffer:034]: Created ring buffer with size 9600
[15:36:44][D][speaker_mixer:306]: Starting speaker mixer
[15:36:44][D][speaker_mixer:314]: Started speaker mixer
[15:36:44][D][voice_assistant:515]: State changed from IDLE to START_MICROPHONE
[15:36:44][D][voice_assistant:522]: Desired state set to START_PIPELINE
[15:36:44][D][voice_assistant:225]: Starting Microphone
[15:36:44][D][voice_assistant:515]: State changed from START_MICROPHONE to STARTING_MICROPHONE
[15:36:44][D][voice_assistant:515]: State changed from STARTING_MICROPHONE to START_PIPELINE
[15:36:44][D][voice_assistant:280]: Requesting start...
[15:36:44][D][voice_assistant:515]: State changed from START_PIPELINE to STARTING_PIPELINE
[15:36:44][D][voice_assistant:537]: Client started, streaming microphone
[15:36:44][D][voice_assistant:515]: State changed from STARTING_PIPELINE to STREAMING_MICROPHONE
[15:36:44][D][voice_assistant:522]: Desired state set to STREAMING_MICROPHONE
[15:36:44][D][voice_assistant:641]: Event Type: 1
[15:36:44][D][voice_assistant:644]: Assist Pipeline running
[15:36:44][D][voice_assistant:641]: Event Type: 3
[15:36:44][D][voice_assistant:655]: STT started
[15:36:45][D][light:036]: 'voice_assistant_leds' Setting:
[15:36:45][D][light:047]:   State: ON
[15:36:45][D][light:051]:   Brightness: 66%
[15:36:45][D][light:109]:   Effect: 'Waiting for Command'
[15:36:45][D][power_supply:033]: Enabling power supply.
[15:36:45][D][speaker_media_player:420]: State changed to IDLE
[15:36:45][D][speaker_mixer:319]: Stopping speaker mixer
[15:36:46][D][voice_assistant:641]: Event Type: 11
[15:36:46][D][voice_assistant:802]: Starting STT by VAD
[15:36:46][D][light:036]: 'voice_assistant_leds' Setting:
[15:36:46][D][light:051]:   Brightness: 66%
[15:36:46][D][light:109]:   Effect: 'Listening For Command'
[15:36:47][D][voice_assistant:641]: Event Type: 12
[15:36:47][D][voice_assistant:806]: STT by VAD end
[15:36:47][D][voice_assistant:515]: State changed from STREAMING_MICROPHONE to STOP_MICROPHONE
[15:36:47][D][voice_assistant:522]: Desired state set to AWAITING_RESPONSE
[15:36:47][D][voice_assistant:515]: State changed from STOP_MICROPHONE to STOPPING_MICROPHONE
[15:36:47][D][light:036]: 'voice_assistant_leds' Setting:
[15:36:47][D][light:051]:   Brightness: 66%
[15:36:47][D][light:109]:   Effect: 'Thinking'
[15:36:47][D][voice_assistant:515]: State changed from STOPPING_MICROPHONE to AWAITING_RESPONSE
[15:36:47][D][voice_assistant:515]: State changed from AWAITING_RESPONSE to AWAITING_RESPONSE
[15:36:48][D][power_supply:033]: Enabling power supply.
[15:36:48][D][power_supply:033]: Enabling power supply.
[15:36:48][D][power_supply:033]: Enabling power supply.
[15:36:49][D][power_supply:033]: Enabling power supply.
[15:36:49][D][power_supply:033]: Enabling power supply.
[15:36:50][D][power_supply:033]: Enabling power supply.
[15:36:50][D][power_supply:033]: Enabling power supply.
[15:36:50][D][power_supply:033]: Enabling power supply.
[15:36:51][D][power_supply:033]: Enabling power supply.
[15:36:51][D][voice_assistant:641]: Event Type: 4
[15:36:51][D][voice_assistant:669]: Speech recognised as: " Please count from one to ten."
[15:36:51][D][voice_assistant:641]: Event Type: 5
[15:36:51][D][voice_assistant:674]: Intent started
[15:36:51][D][voice_assistant:641]: Event Type: 6
[15:36:51][D][voice_assistant:641]: Event Type: 7
[15:36:51][D][voice_assistant:697]: Response: "Processing your request, please wait..."
[15:36:51][D][light:036]: 'voice_assistant_leds' Setting:
[15:36:51][D][light:051]:   Brightness: 66%
[15:36:51][D][light:109]:   Effect: 'Replying'
[15:36:51][D][voice_assistant:641]: Event Type: 8
[15:36:51][D][voice_assistant:717]: Response URL: "http://10.10.1.11:8888/play/d7cd77a08886cd9aa810ddaf058ee881.flac"
[15:36:51][D][voice_assistant:515]: State changed from AWAITING_RESPONSE to STREAMING_RESPONSE
[15:36:51][D][voice_assistant:522]: Desired state set to STREAMING_RESPONSE
[15:36:51][D][media_player:073]: 'Home Assistant Voice Streaming' - Setting
[15:36:51][D][media_player:080]:   Media URL: http://10.10.1.11:8888/play/d7cd77a08886cd9aa810ddaf058ee881.flac
[15:36:51][D][media_player:086]:  Announcement: yes
[15:36:51][D][power_supply:033]: Enabling power supply.
[15:36:51][D][speaker_media_player:420]: State changed to ANNOUNCING
[15:36:51][D][voice_assistant:641]: Event Type: 2
[15:36:51][D][voice_assistant:731]: Assist Pipeline ended
[15:36:51][D][ring_buffer:034][ann_read]: Created ring buffer with size 1000000
[15:36:51][D][speaker_media_player.pipeline:114]: Reading FLAC file type
[15:36:56][E][speaker_media_player:334]: The announcement pipeline's file reader encountered an error.    <<<<< ERROR <<<<<<<
[15:36:56][D][speaker_media_player:420]: State changed to IDLE
[15:36:56][D][voice_assistant:515]: State changed from STREAMING_RESPONSE to IDLE
[15:36:56][D][voice_assistant:522]: Desired state set to IDLE
[15:36:56][D][light:036]: 'voice_assistant_leds' Setting:
[15:36:56][D][light:047]:   State: OFF
[15:36:56][D][light:109]:   Effect: 'None'
[15:37:07][D][power_supply:048]: Disabling power supply.

TTMG side:

INFO:     Started server process [883793]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8888 (Press CTRL+C to quit)
INFO 15:36:27: GOT USER MESSAGE:  Please count from 1 to 10.
INFO 15:36:27: PLAY
INFO:     10.10.1.25:56185 - "GET /play/d7cd77a08886cd9aa810ddaf058ee881.flac HTTP/1.1" 200 OK
INFO 15:36:28: CALLING LLM
INFO 15:36:29: HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: Getting LLM response...
INFO 15:36:29: TTS OPENAI: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.
INFO 15:36:31: HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK"
INFO 15:36:51: GOT USER MESSAGE:  Please count from one to ten.
INFO 15:36:51: PLAY
INFO:     10.10.1.25:56186 - "GET /play/d7cd77a08886cd9aa810ddaf058ee881.flac HTTP/1.1" 200 OK
INFO 15:36:51: CALLING LLM
INFO 15:36:54: HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
INFO 15:36:54: Getting LLM response...
INFO 15:36:54: Getting LLM response...
INFO 15:36:54: Getting LLM response...
INFO 15:36:54: Getting LLM response...
INFO 15:36:54: Getting LLM response...
INFO 15:36:54: Getting LLM response...
INFO 15:36:54: Getting LLM response...
INFO 15:36:54: Getting LLM response...
INFO 15:36:54: Getting LLM response...
INFO 15:36:54: Getting LLM response...
INFO 15:36:54: Getting LLM response...
INFO 15:36:54: Getting LLM response...
INFO 15:36:54: Getting LLM response...
INFO 15:36:54: Getting LLM response...
INFO 15:36:55: Getting LLM response...
INFO 15:36:55: Getting LLM response...
INFO 15:36:55: Getting LLM response...
INFO 15:36:55: Getting LLM response...
INFO 15:36:55: Getting LLM response...
INFO 15:36:55: Getting LLM response...
INFO 15:36:55: TTS OPENAI: One, two, three, four, five, six, seven, eight, nine, ten.
INFO 15:36:56: HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions