Sonos TTS via Azure has stopped working

Hi Patrick,
Seems that Azure TTS has stopped working on my SONOS devices.
Currently running Sonos Plugin version 2.0-hotfix20282.1145; JSUI 2.0-hotfix20282.1145. Have updated my Azure Keys and updated them in the SONOS plugin. Running on a Vera plus.
Logs entries when I test are below from an attempt using curl.
Also, I am on SONOS S1 app as I have legacy devices.

8 10/10/20 12:25:30 PM JobHandler_LuaUPnP::HandleActionRequest device: 529 service: urn:micasaverde-com:serviceId:Sonos1 action: Say <0x6d7d3520>
8 10/10/20 12:25:30 PM JobHandler_LuaUPnP::HandleActionRequest argument Text=There is someone at the front door <0x6d7d3520>
8 10/10/20 12:25:30 PM JobHandler_LuaUPnP::HandleActionRequest argument Engine=AZURE <0x6d7d3520>
8 10/10/20 12:25:30 PM JobHandler_LuaUPnP::HandleActionRequest argument Volume=60 <0x6d7d3520>
8 10/10/20 12:25:30 PM JobHandler_LuaUPnP::HandleActionRequest argument Chime=0 <0x6d7d3520>
8 10/10/20 12:25:30 PM JobHandler_LuaUPnP::HandleActionRequest argument id=action <0x6d7d3520>
8 10/10/20 12:25:30 PM JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=529 <0x6d7d3520>
8 10/10/20 12:25:30 PM JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:micasaverde-com:serviceId:Sonos1 <0x6d7d3520>
8 10/10/20 12:25:30 PM JobHandler_LuaUPnP::HandleActionRequest argument action=Say <0x6d7d3520>
50 10/10/20 12:25:30 PM luup_log:761: Sonos: Say action on device 529 text “There is someone at the front door” <0x77f7e320>
50 10/10/20 12:25:30 PM luup_log:761: Sonos: (tts debug) generate() engine Azure Speech Service text There is someone at the front door file /www/sonos/Say.529.mp3 <0x77f7e320>
50 10/10/20 12:25:30 PM luup_log:761: Sonos: (tts debug) AzureTTSEngine:say() current token assumed valid <0x77f7e320>
50 10/10/20 12:25:30 PM luup_log:761: Sonos: (tts debug) AzureTTSEngine:say() host “westus2.tts.speech.microsoft.com” payload “<speak version=“1.0” xml:lang=“en-US”><voice name=“en-US-JessaNeural”>” <0x77f7e320>
50 10/10/20 12:25:30 PM luup_log:761: Sonos: (tts debug) AzureTTSEngine:say() system LuaSec version is “0.8” <0x77f7e320>
2 10/10/20 12:25:31 PM luup_log:761: Sonos: (tts) engine Azure Speech Service error: received zero-length file <0x77f7e320>
2 10/10/20 12:25:31 PM luup_log:761: Sonos: (tts) Engine “Azure Speech Service” produced no audio <0x77f7e320>
4 10/10/20 12:25:31 PM <0x77f7e320>
Let me know what additional info you need.

Thanks,
Roger

I’ve updated the hotfix ZIP file in the hotfix topic’s head post to include a TTS engine with a bit more debug. I’m starting to see more rumbles of this, and one user you may have seen posted a notice from Microsoft about them changing certificate authorities on their servers, and this may have something to do with it, but the nature of the beast is such that multiple issues can all cause similar symptoms, so each case needs to be examined individually.

For everyone still having Azure issues, I’d like you to install the hotfix package in the head post here and then please post the log from the invocation of a (failed) Say action to the final message. This version in particular will log messages of note in yellow in the log file, but all surrounding log entries are necessary for context, so please don’t over-redact.

Remember to hash out your API key if the log snippet you are posting contains it!

Do not PDF the log content. Just post the text here, ideally with code-block formatting (``` on a line by itself, followed by log entries, followed by ``` on a line by itself again).

Make sure you are on the released version of Sonos 2.0 before applying the hotfix package. The hotfix package will not work on versions prior to the released 2.0 (including beta/previews of 2.0–upgrade to release first). The released version is tagged 20136. If you have applied other hotfixes since, that’s OK. Just apply the new package over the old.

Get the hotfix: Hotfixes for Sonos 2.0

Hi Patrick,
Updated to latest hotfix, log below.

“”

50 10/12/20 9:15:44.350 luup_log:761: Sonos: (tts debug) AzureTTSEngine:say() response “eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJyZWdpb24iOiJ3ZXN0dXMyIiwic3Vic2NyaXB0aW9uLWlkIjoiMDM3N2YyY2E0NTdkNGE2YzgwMDA5YjA2YTM2NzhiZjEiLCJwcm9kdWN0LWlkIjoiQ29nbml0aXZlU2VydmljZXMuUzAiLCJjb2duaXRpdmUtc2VydmljZXMtZW5kcG9pbnQiOiJodHRwczovL2FwaS5jb2duaXRpdmUubWljcm9zb2Z0LmNvbS9pbnRlcm5hbC92MS4wLyIsImF6dXJlLXJlc291cmNlLWlkIjoiL3N1YnNjcmlwdGlvbnMvNjkyNmVkMTUtNDBmOS00N2UwLWIxYWQtNTlkOWRlMTZhZGQ5L3Jlc291cmNlR3JvdXBzL1ZlcmFfVFRTL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMvVmVyYS1Tb25vcy1UVFMiLCJzY29wZSI6WyJzcGVlY2h0b2ludGVudHMiLCJodHRwczovL2FwaS5taWNyb3NvZnR0cmFuc2xhdG9yLmNvbS8iLCJzcGVlY2hzZXJ2aWNlcyJdLCJhdWQiOlsidXJuOm1zLnNwZWVjaCIsInVybjptcy5sdWlzLndlc3R1czIiLCJ1cm46bXMubWljcm9zb2Z0dHJhbnNsYXRvciIsInVybjptcy5zcGVlY2hzZXJ2aWNlcy53ZXN0dXMyIl0sImV4cCI6MTYwMjUxOTk0NCwiaXNzIjoidXJuOm1zLmNvZ25pdGl2ZXNlcnZpY2VzIn0.hrtFvX-P-4mJCt8YvFc0D68VPq9plfc8NivlP1kw__E” <0x77fa6320>
50 10/12/20 9:15:44.351 luup_log:761: Sonos: (tts debug) AzureTTSEngine:say() acquired new token “eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJyZWdpb24iOiJ3ZXN0dXMyIiwic3Vic2NyaXB0aW9uLWlkIjoiMDM3N2YyY2E0NTdkNGE2YzgwMDA5YjA2YTM2NzhiZjEiLCJwcm9kdWN0LWlkIjoiQ29nbml0aXZlU2VydmljZXMuUzAiLCJjb2duaXRpdmUtc2VydmljZXMtZW5kcG9pbnQiOiJodHRwczovL2FwaS5jb2duaXRpdmUubWljcm9zb2Z0LmNvbS9pbnRlcm5hbC92MS4wLyIsImF6dXJlLXJlc291cmNlLWlkIjoiL3N1YnNjcmlwdGlvbnMvNjkyNmVkMTUtNDBmOS00N2UwLWIxYWQtNTlkOWRlMTZhZGQ5L3Jlc291cmNlR3JvdXBzL1ZlcmFfVFRTL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMvVmVyYS1Tb25vcy1UVFMiLCJzY29wZSI6WyJzcGVlY2h0b2ludGVudHMiLCJodHRwczovL2FwaS5taWNyb3NvZnR0cmFuc2xhdG9yLmNvbS8iLCJzcGVlY2hzZXJ2aWNlcyJdLCJhdWQiOlsidXJuOm1zLnNwZWVjaCIsInVybjptcy5sdWlzLndlc3R1czIiLCJ1cm46bXMubWljcm9zb2Z0dHJhbnNsYXRvciIsInVybjptcy5zcGVlY2hzZXJ2aWNlcy53ZXN0dXMyIl0sImV4cCI6MTYwMjUxOTk0NCwiaXNzIjoidXJuOm1zLmNvZ25pdGl2ZXNlcnZpY2VzIn0.hrtFvX-P-4mJCt8YvFc0D68VPq9plfc8NivlP1kw__E” <0x77fa6320>
50 10/12/20 9:15:44.351 luup_log:761: Sonos: (tts debug) AzureTTSEngine:say() host “westus2.tts.speech.microsoft.com” payload “<speak version=“1.0” xml:lang=“en-US”><voice name=“en-US-JessaNeural”>” <0x77fa6320>
50 10/12/20 9:15:44.351 luup_log:761: Sonos: (tts debug) AzureTTSEngine:say() system LuaSec version is “0.8” <0x77fa6320>
50 10/12/20 9:15:45.665 luup_log:761: Sonos: (tts debug) AzureTTSEngine:say() response 1, 500, { connection=“close”, content-type=“text/xml”, date=“Mon, 12 Oct 2020 16:15:45 GMT”, transfer-encoding=“chunked”, strict-transport-security=“max-age=15724800; includeSubDomains”, server=“openresty/1.15.8.2” }, “HTTP/1.1 500 Synthesis failed. StatusCode: Unknown, Details: ‘cdata’ is an unexpected token. The expected token is ‘CDATA[’. Line 1, position 155…” <0x77fa6320>
02 10/12/20 9:15:45.666 luup_log:761: Sonos: AzureTTSEngine:say() conversion request failed, 500 <0x77fa6320>
02 10/12/20 9:15:45.666 luup_log:761: Sonos: AzureTTSEngine:say() r=1 <0x77fa6320>
02 10/12/20 9:15:45.667 luup_log:761: Sonos: AzureTTSEngine:say() h=table: 0x3dbc320 <0x77fa6320>
02 10/12/20 9:15:45.667 luup_log:761: Sonos: AzureTTSEngine:say() h={ connection=“close”, content-type=“text/xml”, date=“Mon, 12 Oct 2020 16:15:45 GMT”, transfer-encoding=“chunked”, strict-transport-security=“max-age=15724800; includeSubDomains”, server=“openresty/1.15.8.2” } <0x77fa6320>
02 10/12/20 9:15:45.668 luup_log:761: Sonos: AzureTTSEngine:say() e=HTTP/1.1 500 Synthesis failed. StatusCode: Unknown, Details: ‘cdata’ is an unexpected token. The expected token is ‘CDATA[’. Line 1, position 155… <0x77fa6320>
02 10/12/20 9:15:45.668 luup_log:761: Sonos: AzureTTSEngine:say() payload="<speak version=“1.0” xml:lang=“en-US”><voice name=“en-US-JessaNeural”>" <0x77fa6320>
02 10/12/20 9:15:45.669 luup_log:761: Sonos: (tts) engine Azure Speech Service error: request failed 500 <0x77fa6320>
02 10/12/20 9:15:45.670 luup_log:761: Sonos: (tts) Engine “Azure Speech Service” produced no audio <0x77fa6320>
04 10/12/20 9:15:45.671 <0x77fa6320>

“”

Best Home Automation shopping experience. Shop at getvera!

© 2020 Vera Control Ltd., All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules