Play longer than 2 minutes audio with “Actions on Google”

隐身守侯 提交于 2019-12-12 04:43:39

问题


According to documentation, if you are using SSML for playing audio, you're limited to "120 seconds maximum duration".

Is there other way to start playing longer media (audio) with "Actions on Google" SDK on Google Home?

Example usage: Meditation sounds that can last longer than 2 minutes.


回答1:


As responded by Leon Nicholls (Google Assistant Developer Programs Engineer), currently there is no way to play audio longer than 120 sec. However they are considering that in the future.




回答2:


Please check Media responses. You can play MP3 file longer than 2 minutes.




回答3:


I ran into the same issue. I created a Voice Metronome app which need to play for a long time. On the Google home, I was able to get it to play for 10 minutes. On the phone the limit was 2. I don't know if the new speaker devices have longer play times and I don't know how long they will allow this. Just an FYI.



来源:https://stackoverflow.com/questions/46594333/play-longer-than-2-minutes-audio-with-actions-on-google

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!