TTS Sonos output cut off
Sonos does not output the whole TTS text. I estimate that the last 2-3 seconds are missing.
Example (also used to create the spam log below):
- Start radio channel (e.g. “Radio Vorarlberg”)
- Sonus is playing the radio channel.
- Output of TTS text by using the Loxone Audio Player TTS Input (e.g. "Es ist jetzt 16 Uhr und 13 Minuten.")
- Sonus is pausing the radio channel output and is changing the volume to the TTS volume preset correctly.
- Sonus is starting to output the TTS text.
- ERROR: The radio channel output is starting before the TTS speech is finished.
- The volume is changed to the previous radio volume setting as soon as the radio station resumes playing.
Spam Log
[2026-05-15T14:13:08.694Z][SPAM][LoxoneHttp] [command=audio/5/roomfav/play/2/noshuffle name=appHttp remote=192.168.10.82] loxone ws message received [2026-05-15T14:13:08.694Z][DEBUG][LoxoneHttp|Processor] [command=audio/5/roomfav/play/2/noshuffle] command received [2026-05-15T14:13:08.701Z][INFO][Zones|Manager] [hasParentContext=false normalizedTarget=https://orf-live.ors-shoutcast.at/vbg-q2a resolvedTarget=https://orf-live.ors-shoutcast.at/vbg-q2a station="" type=favorite uri=https://orf-live.ors-shoutcast.at/vbg-q2a zoneId=5] playContent [2026-05-15T14:13:08.707Z][DEBUG][Zones|Manager] [expandedCount=0 isAppleMusic=false isMusicAssistant=false queueSourcePath=https://orf-live.ors-shoutcast.at/vbg-q2a resolvedTarget=https://orf-live.ors-shoutcast.at/vbg-q2a zoneId=5] queue build resolved [2026-05-15T14:13:08.708Z][DEBUG][Zones|Manager] [authority=local items=1 startIndex=0 target=tunein:station:b64_aHR0cHM6Ly9vcmYtbGl2ZS5vcnMtc2hvdXRjYXN0LmF0L3ZiZy1xMmE= zoneId=5] queue rebuilt [2026-05-15T14:13:08.710Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=88A29E8243F7 time=0 title="" zoneId=5 zoneName=Büro] audio_event payload [2026-05-15T14:13:08.711Z][SPAM][LoxoneHttp|Notifier] [zoneId=5] audio_event broadcast [2026-05-15T14:13:08.711Z][SPAM][Zones|Manager] [activeOutput=sonos targetCount=1 zoneId=5] dispatch output metadata [2026-05-15T14:13:08.721Z][DEBUG][Audio|UrlProxy] [proxyUrl=http://127.0.0.1:7090/streams/proxy?u=https%3A%2F%2Forf-live.ors-shoutcast.at%2Fvbg-q2a targetUrl=https://orf-live.ors-shoutcast.at/vbg-q2a] proxying audio url for ffmpeg [2026-05-15T14:13:08.722Z][INFO][Audio|Manager] [hasStream=false label=tunein:station:b64_aHR0cHM6Ly9vcmYtbGl2ZS5vcnMtc2hvdXRjYXN0LmF0L3ZiZy1xMmE= sourceKind=url zoneId=5] startWithResolvedSource [2026-05-15T14:13:08.723Z][INFO][Audio|Manager] [handoff=false kind=url profiles=["mp3"] zoneId=5] starting audio engine [2026-05-15T14:13:08.724Z][INFO][Audio|Session] [maxBufferBytes=8192 outputBitDepth=16 outputChannels=2 outputSampleRate=44100 profile=mp3 targetLeadMs=1000 zoneId=5] audio session buffer config [2026-05-15T14:13:08.725Z][DEBUG][Audio|Session] [args=["-hide_banner","-loglevel","error","-fflags","nobuffer","-probesize","32k","-analyzeduration","0","-reconnect","1","-reconnect_streamed","1","-reconnect_delay_max","5","-headers","Icy-MetaData: 1\r\nX-Loxone-Zone: 5\r\n","-re","-i","http://127.0.0.1:7090/streams/proxy?u=https%3A%2F%2Forf-live.ors-shoutcast.at%2Fvbg-q2a","-vn","-acodec","pcm_s16le","-ar","44100","-ac","2","-f","s16le","pipe:1"] profile=mp3 zoneId=5] spawning ffmpeg (decoder) [2026-05-15T14:13:08.743Z][DEBUG][Audio|Session] [args=["-hide_banner","-loglevel","error","-fflags","nobuffer","-probesize","32","-analyzeduration","0","-f","s16le","-ar","44100","-ac","2","-i","pipe:0","-acodec","libmp3lame","-ar","44100","-ac","2","-b:a","256k","-f","mp3","pipe:1"] profile=mp3 zoneId=5] spawning ffmpeg (encoder) [2026-05-15T14:13:08.759Z][INFO][Audio|Engine] [profile=mp3 source=url zoneId=5] audio session started [2026-05-15T14:13:08.760Z][INFO][Audio|Manager] [sincePlayContentMs=59 source=tunein:station:b64_aHR0cHM6Ly9vcmYtbGl2ZS5vcnMtc2hvdXRjYXN0LmF0L3ZiZy1xMmE= stream=5-298aa73a-f37a-4bfb-999c-b2c89fb90c5c title="ORF Radio Vorarlberg" zoneId=5] playback started [2026-05-15T14:13:08.761Z][DEBUG][Zones|Manager] [action=play outputCount=1 outputTypes=["sonos"] zoneId=5] dispatchOutputs [2026-05-15T14:13:08.762Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=play sourceName=88A29E8243F7 time=0 title="ORF Radio Vorarlberg" zoneId=5 zoneName=Büro] audio_event payload [2026-05-15T14:13:08.763Z][SPAM][LoxoneHttp|Notifier] [zoneId=5] audio_event broadcast [2026-05-15T14:13:08.764Z][DEBUG][Zones|Manager] [actions=[] desiredSignal=1 mode=play offDelayMs=300000 onDelayMs=0 zoneId=5 zoneName=Büro] zone power manager state update [2026-05-15T14:13:08.764Z][DEBUG][Zones|Manager] [desiredSignal=1 previousDesired=0 zoneId=5] zone power manager desired signal changed [2026-05-15T14:13:08.764Z][DEBUG][Zones|Manager] [signal=1 zoneId=5] zone power manager applying signal immediately [2026-05-15T14:13:08.765Z][SPAM][Zones|Manager] [activeOutput=sonos targetCount=1 zoneId=5] dispatch output metadata [2026-05-15T14:13:08.766Z][INFO][Zones|Manager] [actions=[] signal=1 zoneId=5] zone power manager applying signal [2026-05-15T14:13:08.766Z][INFO][Zones|Manager] [previousSignal=0 signal=1 zoneId=5] zone power manager signal applied [2026-05-15T14:13:08.767Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=play sourceName=88A29E8243F7 time=0 title="ORF Radio Vorarlberg" zoneId=5 zoneName=Büro] audio_event payload [2026-05-15T14:13:08.767Z][SPAM][LoxoneHttp|Notifier] [zoneId=5] audio_event broadcast [2026-05-15T14:13:08.768Z][SPAM][Zones|Manager] [activeOutput=sonos targetCount=1 zoneId=5] dispatch output metadata [2026-05-15T14:13:08.769Z][DEBUG][Output|Sonos] [action=SetVolume service=RenderingControl zoneId=5] Sonos soap request [2026-05-15T14:13:08.771Z][INFO][Output|Sonos] [uri=x-rincon-mp3radio://192.168.20.17:7090/streams/5/current.mp3?prime=1778854388701 zoneId=5] sending playback command [2026-05-15T14:13:08.772Z][DEBUG][Output|Sonos] [action=SetAVTransportURI service=AVTransport zoneId=5] Sonos soap request [2026-05-15T14:13:08.792Z][INFO][Output|Sonos] [action=SetAVTransportURI durationMs=20 host=192.168.20.34:1400 service=AVTransport status=200 zoneId=5] Sonos action succeeded [2026-05-15T14:13:08.796Z][INFO][Output|Sonos] [action=SetVolume durationMs=28 host=192.168.20.34:1400 service=RenderingControl status=200 zoneId=5] Sonos action succeeded [2026-05-15T14:13:08.796Z][INFO][Output|Sonos] [path=soap volume=25 zoneId=5] Sonos volume set [2026-05-15T14:13:08.916Z][SPAM][LoxoneHttp|Notifier] [artist=Desireless duration=0 mode=play sourceName=88A29E8243F7 time=0 title="Voyage Voyage" zoneId=5 zoneName=Büro] audio_event payload [2026-05-15T14:13:08.917Z][SPAM][LoxoneHttp|Notifier] [zoneId=5] audio_event broadcast [2026-05-15T14:13:08.918Z][SPAM][Zones|Manager] [activeOutput=sonos targetCount=1 zoneId=5] dispatch output metadata [2026-05-15T14:13:08.959Z][INFO][Audio|Session] [bytes=44 profile=mp3 spawnToFirstChunkMs=235 zoneId=5] ffmpeg first chunk [2026-05-15T14:13:08.960Z][INFO][Audio|Player:5] [playContentToStartedMs=59 profile=mp3 ready=true sincePlaybackStartedMs=200 sincePlayContentMs=259 source=tunein:station:b64_aHR0cHM6Ly9vcmYtbGl2ZS5vcnMtc2hvdXRjYXN0LmF0L3ZiZy1xMmE= zoneId=5] playback first audio ready [2026-05-15T14:13:09.043Z][DEBUG][Output|Sonos] [action=Play service=AVTransport zoneId=5] Sonos soap request [2026-05-15T14:13:09.066Z][DEBUG][Audio|Session] [label=http:192.168.20.34:mp3:Linux/UPnP/1.0 primedBytes=7523 primedMs=null primeWithBuffer=true profile=mp3 sessionBufferedBytes=7523 subscriberCount=1 zoneId=5] audio subscriber attached [2026-05-15T14:13:09.079Z][INFO][Output|Sonos] [action=Play durationMs=37 host=192.168.20.34:1400 service=AVTransport status=200 zoneId=5] Sonos action succeeded [2026-05-15T14:13:09.080Z][INFO][Output|Sonos] [uri=x-rincon-mp3radio://192.168.20.17:7090/streams/5/current.mp3?prime=1778854388701 zoneId=5] Sonos playback started [2026-05-15T14:13:09.083Z][DEBUG][Audio|Session] [label=http:192.168.20.34:mp3:Linux/UPnP/1.0 profile=mp3 subscriberCount=0 zoneId=5] audio subscriber detached [2026-05-15T14:13:09.085Z][DEBUG][Audio|Session] [label=http:192.168.20.34:mp3:Linux/UPnP/1.0 primedBytes=4179 primedMs=null primeWithBuffer=true profile=mp3 sessionBufferedBytes=4179 subscriberCount=1 zoneId=5] audio subscriber attached [2026-05-15T14:13:09.598Z][SPAM][LoxoneHttp] [command=audio/cfg/miniservertime/1778854389 name=msHttp remote=192.168.20.10] loxone ws message received [2026-05-15T14:13:09.599Z][DEBUG][LoxoneHttp|Processor] [command=audio/cfg/miniservertime/1778854389] command received [2026-05-15T14:13:09.987Z][SPAM][Audio|Session] [bufferBytes=7523 bytesPerSec=42367 labels=["http:192.168.20.34:mp3:Linux/UPnP/1.0"] profile=mp3 subscribers=1 zoneId=5] pipe throughput [2026-05-15T14:13:11.019Z][SPAM][Audio|Session] [bufferBytes=7523 bytesPerSec=31590 labels=["http:192.168.20.34:mp3:Linux/UPnP/1.0"] profile=mp3 subscribers=1 zoneId=5] pipe throughput [2026-05-15T14:13:12.035Z][SPAM][Audio|Session] [bufferBytes=7523 bytesPerSec=32088 labels=["http:192.168.20.34:mp3:Linux/UPnP/1.0"] profile=mp3 subscribers=1 zoneId=5] pipe throughput [2026-05-15T14:13:13.059Z][SPAM][Audio|Session] [bufferBytes=7523 bytesPerSec=31837 labels=["http:192.168.20.34:mp3:Linux/UPnP/1.0"] profile=mp3 subscribers=1 zoneId=5] pipe throughput [2026-05-15T14:13:14.090Z][SPAM][Audio|Session] [bufferBytes=7524 bytesPerSec=31621 labels=["http:192.168.20.34:mp3:Linux/UPnP/1.0"] profile=mp3 subscribers=1 zoneId=5] pipe throughput [2026-05-15T14:13:15.101Z][SPAM][Audio|Session] [bufferBytes=7523 bytesPerSec=32245 labels=["http:192.168.20.34:mp3:Linux/UPnP/1.0"] profile=mp3 subscribers=1 zoneId=5] pipe throughput [2026-05-15T14:13:19.162Z][SPAM][Audio|Session] [bufferBytes=7523 bytesPerSec=8028 labels=["http:192.168.20.34:mp3:Linux/UPnP/1.0"] profile=mp3 subscribers=1 zoneId=5] pipe throughput [2026-05-15T14:13:19.203Z][SPAM][LoxoneHttp] [command="audio/grouped/tts/5/DEU|Es ist jetzt 16 Uhr und 13 Minuten." name=msHttp remote=192.168.20.10] loxone ws message received [2026-05-15T14:13:19.203Z][DEBUG][LoxoneHttp|Processor] [command="audio/grouped/tts/5/DEU|Es ist jetzt 16 Uhr und 13 Minuten."] command received [2026-05-15T14:13:19.205Z][INFO][Alerts|Manager] [type=tts zones=[5]] ON alert [2026-05-15T14:13:19.214Z][WARN][Zones|StateController:Sonos] [host=192.168.20.34 message="Failed to connect (upgrade 101 Switching Protocols)" zoneId=5] sonos state controller failed to start [2026-05-15T14:13:19.215Z][INFO][Zones|StateController:Sonos] [delayMs=60000 host=192.168.20.34 zoneId=5] sonos reconnect scheduled [2026-05-15T14:13:19.592Z][INFO][Alerts|GoogleTts] [bytes=27648 filename=tts-8cda1cd7ecc450a20ae12bb636664ac69e0a9828.mp3 lang=de] generated TTS clip [2026-05-15T14:13:19.618Z][SPAM][LoxoneHttp|Notifier] [artist=Desireless duration=0 mode=play sourceName=88A29E8243F7 time=0 title="Voyage Voyage" zoneId=5 zoneName=Büro] audio_event payload [2026-05-15T14:13:19.620Z][SPAM][LoxoneHttp|Notifier] [zoneId=5] audio_event broadcast [2026-05-15T14:13:19.620Z][SPAM][Zones|Manager] [activeOutput=sonos targetCount=1 zoneId=5] dispatch output metadata [2026-05-15T14:13:19.623Z][INFO][Audio|Manager] [hasStream=false label=alerts://cache/tts-8cda1cd7ecc450a20ae12bb636664ac69e0a9828.mp3 sourceKind=file zoneId=5] startWithResolvedSource [2026-05-15T14:13:19.624Z][INFO][Audio|Engine] [zoneId=5] audio session stopped [2026-05-15T14:13:19.625Z][INFO][Audio|Manager] [handoff=false kind=file profiles=["mp3"] zoneId=5] starting audio engine [2026-05-15T14:13:19.626Z][INFO][Audio|Session] [maxBufferBytes=1058400 outputBitDepth=16 outputChannels=2 outputSampleRate=44100 profile=mp3 targetLeadMs=1000 zoneId=5] audio session buffer config [2026-05-15T14:13:19.627Z][DEBUG][Audio|Session] [args=["-hide_banner","-loglevel","error","-probesize","256k","-analyzeduration","1M","-re","-i","/app/public/alerts/cache/tts-8cda1cd7ecc450a20ae12bb636664ac69e0a9828.mp3","-vn","-acodec","pcm_s16le","-ar","44100","-ac","2","-f","s16le","pipe:1"] profile=mp3 zoneId=5] spawning ffmpeg (decoder) [2026-05-15T14:13:19.659Z][DEBUG][Audio|Session] [args=["-hide_banner","-loglevel","error","-fflags","nobuffer","-probesize","32","-analyzeduration","0","-f","s16le","-ar","44100","-ac","2","-i","pipe:0","-af","volume=6dB","-acodec","libmp3lame","-ar","44100","-ac","2","-b:a","256k","-f","mp3","pipe:1"] profile=mp3 zoneId=5] spawning ffmpeg (encoder) [2026-05-15T14:13:19.697Z][INFO][Audio|Engine] [profile=mp3 source=file zoneId=5] audio session started [2026-05-15T14:13:19.698Z][INFO][Audio|Manager] [sincePlayContentMs=null source=alerts://cache/tts-8cda1cd7ecc450a20ae12bb636664ac69e0a9828.mp3 stream=5-079daf12-44fd-4a05-8251-5110ad970112 title="Es ist jetzt 16 Uhr und 13 Minuten." zoneId=5] playback started [2026-05-15T14:13:19.699Z][DEBUG][Zones|Manager] [action=play outputCount=1 outputTypes=["sonos"] zoneId=5] dispatchOutputs [2026-05-15T14:13:19.700Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=3 mode=play sourceName=Büro time=0 title="Es ist jetzt 16 Uhr und 13 Minuten." zoneId=5 zoneName=Büro] audio_event payload [2026-05-15T14:13:19.702Z][SPAM][LoxoneHttp|Notifier] [zoneId=5] audio_event broadcast [2026-05-15T14:13:19.703Z][DEBUG][Zones|Manager] [actions=[] desiredSignal=1 mode=play offDelayMs=300000 onDelayMs=0 zoneId=5 zoneName=Büro] zone power manager state update [2026-05-15T14:13:19.705Z][SPAM][Zones|Manager] [signal=1 zoneId=5] zone power manager skipped schedule; signal already applied [2026-05-15T14:13:19.706Z][SPAM][Zones|Manager] [activeOutput=sonos targetCount=1 zoneId=5] dispatch output metadata [2026-05-15T14:13:19.709Z][DEBUG][Output|Sonos] [action=SetVolume service=RenderingControl zoneId=5] Sonos soap request [2026-05-15T14:13:19.714Z][INFO][Output|Sonos] [uri=http://192.168.20.17:7090/streams/5/current.mp3?prime=1778854399709 zoneId=5] sending playback command [2026-05-15T14:13:19.716Z][DEBUG][Output|Sonos] [action=SetAVTransportURI service=AVTransport zoneId=5] Sonos soap request [2026-05-15T14:13:19.720Z][DEBUG][LoxoneHttp|Processor] [command="audio/grouped/tts/5/DEU|Es ist jetzt 16 Uhr und 13 Minuten." tookMs=516] slow command [2026-05-15T14:13:19.739Z][INFO][Output|Sonos] [action=SetVolume durationMs=30 host=192.168.20.34:1400 service=RenderingControl status=200 zoneId=5] Sonos action succeeded [2026-05-15T14:13:19.740Z][INFO][Output|Sonos] [path=soap volume=50 zoneId=5] Sonos volume set [2026-05-15T14:13:19.747Z][INFO][Output|Sonos] [action=SetAVTransportURI durationMs=31 host=192.168.20.34:1400 service=AVTransport status=200 zoneId=5] Sonos action succeeded [2026-05-15T14:13:19.750Z][DEBUG][Audio|Session] [label=http:192.168.20.34:mp3:Linux/UPnP/1.0 profile=mp3 subscriberCount=0 zoneId=5] audio subscriber detached [2026-05-15T14:13:19.753Z][INFO][Audio|Session] [bytes=44 profile=mp3 spawnToFirstChunkMs=126 zoneId=5] ffmpeg first chunk [2026-05-15T14:13:21.633Z][DEBUG][Output|Sonos] [action=Play service=AVTransport zoneId=5] Sonos soap request [2026-05-15T14:13:21.635Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=3 mode=play sourceName=Büro time=1 title="Es ist jetzt 16 Uhr und 13 Minuten." zoneId=5 zoneName=Büro] audio_event payload [2026-05-15T14:13:21.636Z][SPAM][LoxoneHttp|Notifier] [zoneId=5] audio_event broadcast [2026-05-15T14:13:21.637Z][SPAM][Zones|Manager] [activeOutput=sonos targetCount=1 zoneId=5] dispatch output metadata [2026-05-15T14:13:21.657Z][DEBUG][Audio|Session] [code=255 signal=null zoneId=5] decoder exited [2026-05-15T14:13:21.661Z][SPAM][Audio|Session] [bufferBytes=28465 bytesPerSec=14927 labels=[] profile=mp3 subscribers=0 zoneId=5] pipe throughput [2026-05-15T14:13:21.668Z][INFO][Output|Sonos] [action=Play durationMs=35 host=192.168.20.34:1400 service=AVTransport status=200 zoneId=5] Sonos action succeeded [2026-05-15T14:13:21.668Z][INFO][Output|Sonos] [uri=http://192.168.20.17:7090/streams/5/current.mp3?prime=1778854399709 zoneId=5] Sonos playback started [2026-05-15T14:13:21.671Z][DEBUG][Audio|Session] [label=http:192.168.20.34:mp3:Linux/UPnP/1.0 primedBytes=30973 primedMs=null primeWithBuffer=true profile=mp3 sessionBufferedBytes=30973 subscriberCount=1 zoneId=5] audio subscriber attached [2026-05-15T14:13:21.674Z][INFO][Audio|Session] [bufferedBytes=8192 code=255 earlyExit=false profile=mp3 runMs=12950 signal=null stderr=undefined stderrAt=undefined subscribers=0 totalBytes=351965 zoneId=5] ffmpeg exited [2026-05-15T14:13:23.224Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=3 mode=play sourceName=Büro time=2 title="Es ist jetzt 16 Uhr und 13 Minuten." zoneId=5 zoneName=Büro] audio_event payload [2026-05-15T14:13:23.228Z][SPAM][LoxoneHttp|Notifier] [zoneId=5] audio_event broadcast [2026-05-15T14:13:23.228Z][SPAM][Zones|Manager] [activeOutput=sonos targetCount=1 zoneId=5] dispatch output metadata [2026-05-15T14:13:23.252Z][DEBUG][Audio|Session] [code=0 signal=null zoneId=5] decoder exited [2026-05-15T14:13:23.259Z][SPAM][Audio|Session] [bufferBytes=97010 bytesPerSec=42894 labels=["http:192.168.20.34:mp3:Linux/UPnP/1.0"] profile=mp3 subscribers=1 zoneId=5] pipe throughput [2026-05-15T14:13:23.291Z][DEBUG][Audio|Session] [profile=mp3 zoneId=5] ffmpeg stdout closed [2026-05-15T14:13:23.292Z][INFO][Audio|Session] [bufferedBytes=108713 code=0 earlyExit=false profile=mp3 runMs=3665 signal=null stderr=undefined stderrAt=undefined subscribers=1 totalBytes=108713 zoneId=5] ffmpeg exited [2026-05-15T14:13:23.294Z][INFO][Audio|Manager] [duration=3 elapsed=4 source=alerts://cache/tts-8cda1cd7ecc450a20ae12bb636664ac69e0a9828.mp3 zoneId=5] playback ended [2026-05-15T14:13:23.607Z][DEBUG][Zones|Manager] [action=stop outputCount=1 outputTypes=["sonos"] zoneId=5] dispatchOutputs [2026-05-15T14:13:23.608Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=Büro time=0 title="Es ist jetzt 16 Uhr und 13 Minuten." zoneId=5 zoneName=Büro] audio_event payload [2026-05-15T14:13:23.609Z][SPAM][LoxoneHttp|Notifier] [zoneId=5] audio_event broadcast [2026-05-15T14:13:23.609Z][DEBUG][Zones|Manager] [actions=[] desiredSignal=0 mode=stop offDelayMs=300000 onDelayMs=0 zoneId=5 zoneName=Büro] zone power manager state update [2026-05-15T14:13:23.609Z][DEBUG][Zones|Manager] [desiredSignal=0 previousDesired=1 zoneId=5] zone power manager desired signal changed [2026-05-15T14:13:23.609Z][DEBUG][Zones|Manager] [delayMs=300000 signal=0 timerKey=offTimer zoneId=5] zone power manager scheduled signal [2026-05-15T14:13:23.610Z][SPAM][Zones|Manager] [activeOutput=sonos targetCount=1 zoneId=5] dispatch output metadata [2026-05-15T14:13:23.610Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=Büro time=0 title="Es ist jetzt 16 Uhr und 13 Minuten." zoneId=5 zoneName=Büro] audio_event payload [2026-05-15T14:13:23.611Z][SPAM][LoxoneHttp|Notifier] [zoneId=5] audio_event broadcast [2026-05-15T14:13:23.611Z][SPAM][LoxoneHttp|Notifier] [artist=Desireless duration=0 mode=play sourceName=88A29E8243F7 time=0 title="Voyage Voyage" zoneId=5 zoneName=Büro] audio_event payload [2026-05-15T14:13:23.612Z][SPAM][LoxoneHttp|Notifier] [zoneId=5] audio_event broadcast [2026-05-15T14:13:23.612Z][DEBUG][Zones|Manager] [actions=[] desiredSignal=1 mode=play offDelayMs=300000 onDelayMs=0 zoneId=5 zoneName=Büro] zone power manager state update [2026-05-15T14:13:23.612Z][DEBUG][Zones|Manager] [desiredSignal=1 previousDesired=0 zoneId=5] zone power manager desired signal changed [2026-05-15T14:13:23.612Z][SPAM][Zones|Manager] [zoneId=5] zone power manager cancelled pending off timer [2026-05-15T14:13:23.612Z][SPAM][Zones|Manager] [signal=1 zoneId=5] zone power manager skipped schedule; signal already applied [2026-05-15T14:13:23.613Z][SPAM][Zones|Manager] [activeOutput=sonos targetCount=1 zoneId=5] dispatch output metadata [2026-05-15T14:13:23.615Z][DEBUG][Audio|UrlProxy] [proxyUrl=http://127.0.0.1:7090/streams/proxy?u=https%3A%2F%2Forf-live.ors-shoutcast.at%2Fvbg-q2a targetUrl=https://orf-live.ors-shoutcast.at/vbg-q2a] proxying audio url for ffmpeg [2026-05-15T14:13:23.615Z][INFO][Audio|Manager] [hasStream=false label=tunein:station:b64_aHR0cHM6Ly9vcmYtbGl2ZS5vcnMtc2hvdXRjYXN0LmF0L3ZiZy1xMmE= sourceKind=url zoneId=5] startWithResolvedSource [2026-05-15T14:13:23.615Z][INFO][Audio|Manager] [handoff=false kind=url profiles=["mp3"] zoneId=5] starting audio engine [2026-05-15T14:13:23.616Z][INFO][Audio|Session] [maxBufferBytes=8192 outputBitDepth=16 outputChannels=2 outputSampleRate=44100 profile=mp3 targetLeadMs=1000 zoneId=5] audio session buffer config [2026-05-15T14:13:23.616Z][DEBUG][Audio|Session] [args=["-hide_banner","-loglevel","error","-fflags","nobuffer","-probesize","32k","-analyzeduration","0","-reconnect","1","-reconnect_streamed","1","-reconnect_delay_max","5","-headers","Icy-MetaData: 1\r\nX-Loxone-Zone: 5\r\n","-re","-i","http://127.0.0.1:7090/streams/proxy?u=https%3A%2F%2Forf-live.ors-shoutcast.at%2Fvbg-q2a","-vn","-acodec","pcm_s16le","-ar","44100","-ac","2","-f","s16le","pipe:1"] profile=mp3 zoneId=5] spawning ffmpeg (decoder) [2026-05-15T14:13:23.634Z][DEBUG][Audio|Session] [args=["-hide_banner","-loglevel","error","-fflags","nobuffer","-probesize","32","-analyzeduration","0","-f","s16le","-ar","44100","-ac","2","-i","pipe:0","-acodec","libmp3lame","-ar","44100","-ac","2","-b:a","256k","-f","mp3","pipe:1"] profile=mp3 zoneId=5] spawning ffmpeg (encoder) [2026-05-15T14:13:23.651Z][INFO][Audio|Engine] [profile=mp3 source=url zoneId=5] audio session started [2026-05-15T14:13:23.652Z][INFO][Audio|Manager] [sincePlayContentMs=null source=tunein:station:b64_aHR0cHM6Ly9vcmYtbGl2ZS5vcnMtc2hvdXRjYXN0LmF0L3ZiZy1xMmE= stream=5-8a3a61db-d21e-443d-8a0c-78c3922581a8 title="" zoneId=5] playback started [2026-05-15T14:13:23.652Z][DEBUG][Zones|Manager] [action=play outputCount=1 outputTypes=["sonos"] zoneId=5] dispatchOutputs [2026-05-15T14:13:23.653Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=play sourceName=88A29E8243F7 time=0 title="" zoneId=5 zoneName=Büro] audio_event payload [2026-05-15T14:13:23.654Z][SPAM][LoxoneHttp|Notifier] [zoneId=5] audio_event broadcast [2026-05-15T14:13:23.654Z][DEBUG][Zones|Manager] [actions=[] desiredSignal=1 mode=play offDelayMs=300000 onDelayMs=0 zoneId=5 zoneName=Büro] zone power manager state update [2026-05-15T14:13:23.654Z][SPAM][Zones|Manager] [signal=1 zoneId=5] zone power manager skipped schedule; signal already applied [2026-05-15T14:13:23.655Z][SPAM][Zones|Manager] [activeOutput=sonos targetCount=1 zoneId=5] dispatch output metadata [2026-05-15T14:13:23.656Z][DEBUG][Output|Sonos] [action=SetVolume service=RenderingControl zoneId=5] Sonos soap request [2026-05-15T14:13:23.658Z][INFO][Output|Sonos] [uri=x-rincon-mp3radio://192.168.20.17:7090/streams/5/current.mp3?prime=1778854403655 zoneId=5] sending playback command [2026-05-15T14:13:23.659Z][DEBUG][Output|Sonos] [action=SetAVTransportURI service=AVTransport zoneId=5] Sonos soap request [2026-05-15T14:13:23.684Z][INFO][Output|Sonos] [action=SetVolume durationMs=28 host=192.168.20.34:1400 service=RenderingControl status=200 zoneId=5] Sonos action succeeded [2026-05-15T14:13:23.685Z][INFO][Output|Sonos] [path=soap volume=25 zoneId=5] Sonos volume set [2026-05-15T14:13:23.691Z][INFO][Output|Sonos] [action=SetAVTransportURI durationMs=32 host=192.168.20.34:1400 service=AVTransport status=200 zoneId=5] Sonos action succeeded [2026-05-15T14:13:24.791Z][DEBUG][Output|Sonos] [action=Play service=AVTransport zoneId=5] Sonos soap request [2026-05-15T14:13:24.800Z][SPAM][LoxoneHttp|Notifier] [artist=Desireless duration=0 mode=play sourceName=88A29E8243F7 time=0 title="Voyage Voyage" zoneId=5 zoneName=Büro] audio_event payload [2026-05-15T14:13:24.801Z][SPAM][LoxoneHttp|Notifier] [zoneId=5] audio_event broadcast [2026-05-15T14:13:24.801Z][SPAM][Zones|Manager] [activeOutput=sonos targetCount=1 zoneId=5] dispatch output metadata [2026-05-15T14:13:24.827Z][DEBUG][Audio|Session] [label=http:192.168.20.34:mp3:Linux/UPnP/1.0 primedBytes=0 primedMs=null primeWithBuffer=true profile=mp3 sessionBufferedBytes=0 subscriberCount=1 zoneId=5] audio subscriber attached [2026-05-15T14:13:24.838Z][INFO][Audio|Session] [bytes=3387 profile=mp3 spawnToFirstChunkMs=1222 zoneId=5] ffmpeg first chunk [2026-05-15T14:13:24.898Z][DEBUG][Audio|Session] [label=http:192.168.20.34:mp3:Linux/UPnP/1.0 profile=mp3 subscriberCount=0 zoneId=5] audio subscriber detached [2026-05-15T14:13:24.901Z][INFO][Output|Sonos] [action=Play durationMs=110 host=192.168.20.34:1400 service=AVTransport status=200 zoneId=5] Sonos action succeeded [2026-05-15T14:13:24.901Z][INFO][Output|Sonos] [uri=x-rincon-mp3radio://192.168.20.17:7090/streams/5/current.mp3?prime=1778854403655 zoneId=5] Sonos playback started [2026-05-15T14:13:24.904Z][DEBUG][Audio|Session] [label=http:192.168.20.34:mp3:Linux/UPnP/1.0 primedBytes=6688 primedMs=null primeWithBuffer=true profile=mp3 sessionBufferedBytes=6688 subscriberCount=1 zoneId=5] audio subscriber attached [2026-05-15T14:13:26.369Z][SPAM][Audio|Session] [bufferBytes=7524 bytesPerSec=19685 labels=["http:192.168.20.34:mp3:Linux/UPnP/1.0"] profile=mp3 subscribers=1 zoneId=5] pipe throughput [2026-05-15T14:13:27.830Z][SPAM][Audio|Session] [bufferBytes=7523 bytesPerSec=30324 labels=["http:192.168.20.34:mp3:Linux/UPnP/1.0"] profile=mp3 subscribers=1 zoneId=5] pipe throughput [2026-05-15T14:13:29.299Z][SPAM][Audio|Session] [bufferBytes=7523 bytesPerSec=31297 labels=["http:192.168.20.34:mp3:Linux/UPnP/1.0"] profile=mp3 subscribers=1 zoneId=5] pipe throughput [2026-05-15T14:13:30.802Z][SPAM][Audio|Session] [bufferBytes=5851 bytesPerSec=31145 labels=["http:192.168.20.34:mp3:Linux/UPnP/1.0"] profile=mp3 subscribers=1 zoneId=5] pipe throughput [2026-05-15T14:13:32.315Z][SPAM][Audio|Session] [bufferBytes=7523 bytesPerSec=34807 labels=["http:192.168.20.34:mp3:Linux/UPnP/1.0"] profile=mp3 subscribers=1 zoneId=5] pipe throughput
Similar behavior with a connected HomePod.
Fixed on dev in 91a76b4.
Root cause: Sonos buffers ~1.5–2s of audio ahead of the playback head. In your log, ffmpeg finished encoding the TTS clip at 23.292 and we pushed the next SetAVTransportURI (radio resume) at 23.659 — only ~370 ms later. At that point Sonos had only played ~2 s of the 3 s clip; swapping the transport URI truncated the rest of the buffer, which is why the last 1–2 s of "Es ist jetzt 16 Uhr und 13 Minuten." was missing.
Fix: the AlertsCoordinator now waits for a per-output drain interval between the end of the alert stream and the resume of the previous source. Sonos reports 2000 ms, which lets its internal buffer empty audibly before its transport URI is swapped. No silence is appended to the stream; the gap sits between the alert and the resumed radio, where it isn't audible.
Could you grab the latest dev build and confirm? @topbite — same change should also help the HomePod case if AirPlay shows the same buffer behavior; if it's still cut on your side after this, let me know and I'll add a drain value for AirPlay as well.
The Sonos TTS output is now working fine. Thank you very much.