Alexa_YouTube icon indicating copy to clipboard operation
Alexa_YouTube copied to clipboard

no audio on sonos speaker

Open roccafrancesco opened this issue 5 years ago • 10 comments

Dear all i modified the interaction model and index.js and response.js to manage also italian language. The server answer but after "i'm playing" doesn't happen anything;No audio is present. The issue occurs only on sonos beam and sonos one speaker. Everything work on my android phone. What can i do? Thank very much in advance.

roccafrancesco avatar Dec 18 '18 18:12 roccafrancesco

Hi @roccafrancesco, thank you for reporting this. This issue is already known (here) and I try to figure out how to solve this.

reger-men avatar Dec 18 '18 18:12 reger-men

hello i think problem is related file format. https://support.sonos.com/s/article/79?language=En

roccafrancesco avatar Dec 28 '18 08:12 roccafrancesco

Thank you for the solution suggestion. I actually experimented with the detail format, unfortunately, it did not help.

reger-men avatar Jan 07 '19 09:01 reger-men

Please try again now. Thanks.

reger-men avatar Jan 07 '19 12:01 reger-men

thank you. I let you know the result of next test as soon as possible.

roccafrancesco avatar Jan 07 '19 12:01 roccafrancesco

I' m sure that with mp4 it doens't work becasue that format is not supported by sonos in streaming. What format are you using now? mp3? For mp3 you need to do a conversion from youtube source(using specifing library for exaple pafy);I don't see this conversion in your code. Can you specify the difference with old versions?

roccafrancesco avatar Jan 07 '19 12:01 roccafrancesco

In your case it need to use post processing option: --extract-audio --audio-format FORMAT

roccafrancesco avatar Jan 07 '19 12:01 roccafrancesco

Sorry for the late reply. It took me some time to get sonos speaker. I tested it and it work fine. So the output format what I use now is mp3. I convert the video from youtube to mp3 using ytdl, this conversation is happens on the server side.

reger-men avatar Feb 12 '19 22:02 reger-men

thanks a lot. I will test and let you now the result.

roccafrancesco avatar Feb 14 '19 09:02 roccafrancesco

i tested again with the new code but the result is the same. On my mobile phone works but on sonos spekear after the right answer of alexa nothing is played.

roccafrancesco avatar Feb 21 '19 18:02 roccafrancesco