[0.64.0] Streaming problem

There is a problem with sound streaming. Often getting errors on my satellites when TTS tries to play sound:

paź 02 23:48:15 kitchen snips-satellite[408]: ERROR:snips_audio_server_hermes : Could not process chunk 25 of steam “92f811e5-e17a-4560-bc88-a139fc854658”: Chunks received in the wrong order: received chunk 25 expected chunk 0
paź 02 23:48:15 kitchen snips-satellite[408]: ERROR:snips_audio_server_hermes : Could not process chunk 26 of steam “92f811e5-e17a-4560-bc88-a139fc854658”: Chunks received in the wrong order: received chunk 26 expected chunk 0
paź 02 23:48:15 kitchen snips-satellite[408]: ERROR:snips_audio_server_hermes : Could not process chunk 27 of steam “92f811e5-e17a-4560-bc88-a139fc854658”: Chunks received in the wrong order: received chunk 27 expected chunk 0
paź 02 23:48:15 kitchen snips-satellite[408]: ERROR:snips_audio_server_hermes : Could not process chunk 28 of steam “92f811e5-e17a-4560-bc88-a139fc854658”: Chunks received in the wrong order: received chunk 28 expected

This happens randomly. After that satellite is not responding anymore and only restarting of Snips helps.
I’m using custom TTS script https://github.com/ChrisB85/snips_custom_tts with config:

[snips-tts]
provider = “customtts”
customtts = { command = [ “/scripts/custom_tts/snipsGoogle.sh”, “%%OUTPUT_FILE%%”, “pl”, “%%TEXT%%”, “httpie”,] }

Is there a way to use old method of transmitting audio to sattelites (playBytes except playBytesStreaming)?

Thanks a lot for opening a dedicated thread for that.

We are looking into it.

just wondering about this line (a hunch let say)

mpg123 --quiet --wav "$cachefile" "$downloadFile"

is the output format is 16 bits, 16000 samples per seconds?

The streamer could be sensitive to the format.

mpg123 --quiet --wav “$cachefile” “$downloadFile”

gives output:

Input File : ‘./f778b587d4c752ab36dfb82fefdd4b01.wav’
Channels : 1
Sample Rate : 24000
Precision : 16-bit
Duration : 00:00:02.74 = 65664 samples ~ 205.2 CDDA sectors
File Size : 131k
Bit Rate : 384k
Sample Encoding: 16-bit Signed Integer PCM

So I changed it to:

mpg123 -r 16000 -q --wav “$cachefile” “$downloadFile”

so the output files are:

Input File : ‘./b6bc72f799c66cbbab4e8a0292df181a.wav’
Channels : 1
Sample Rate : 16000
Precision : 16-bit
Duration : 00:00:03.58 = 57215 samples ~ 268.195 CDDA sectors
File Size : 114k
Bit Rate : 256k
Sample Encoding: 16-bit Signed Integer PCM

But during short tests I also got lost chunks error.

ok, I’ll check that after the other sound issues.

If you keep it at 16000 samples per seconds its on par with the output of picotts.

I get this too from time to time, between my other errors.