Google Action should play radio stream

爷,独闯天下 提交于 2019-12-31 03:47:05

问题


I need to develop a Google Action which streams an audio/radio stream.

i thought about media response. But the documentation says: "Audio for playback must be in a correctly formatted .mp3 file. Live streaming is not supported."

Documentation

Can someone give me an hint, what i have to do to stream an audio-stream? i found a german google action "baden fm" which streams their radio. But not sure how they do it.

Kind Regards Stefan


回答1:


The only ways to do this currently:

  • Stream it in chunks of MP3 files, using the callback at the end of streaming to stream the next chunk
  • Getting listed on TuneIn, Radio.com or iHeartRadio. From observation, Baden FM seems to be using TuneIn
  • Through an App Action
  • Use a Web site link that starts streaming via BrowseCarousel or Button

Last 2 options are not helpful if you're going after non-browser-enabled devices.

Also saw this thread which has some insight on MP3 size/duration: How can I tell Actions on Google to stream audio?




回答2:


Google Actions do not currently support live audio streaming. I'm in contact with them but it seems they have no ETA to support this.



来源:https://stackoverflow.com/questions/56805496/google-action-should-play-radio-stream

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