Using media response finished to play another mp3
See original GitHub issueHello, I have a skill on Amazon Alexa that I’m now attempting to port over to actions on google. At the core of my skill, I’m using the audio player to continuously play mp3 files back-to-back. When one mp3 is about to finish, I enqueue the next one. Playback continues until the user pauses or stops the audio player or logs out from my skill.
I’m wondering if this is possible with actions on google. It looks like from #103 I currently need to interrupt the smooth flow from mp3-to-mp3 with some sort of simple response. That is not ideal, but it is not a deal breaker.
Two questions I have that I couldn’t find here or in the documentation:
- Is there a minimum length of audio I can play in a media response?
- Can I respond to
actions.intent.MEDIA_STATUS
where the status isFINISHED
with another media response? This will keep my playback going as I described above.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How to detect when a mp3 file has finished playing
You can use PlayStateChange(int NewState) function bulitinto media player to detect for stopped state.
Read more >Media Player can't play mp3 download, says file too long
I just downloaded an mp3 and it played when the download was finished. I chose Windows Media Player to open it, and now...
Read more >AudioPlayer 1.5 | Alexa Voice Service - Amazon Developer
The AudioPlayer interface of the Alexa Voice Service (AVS) and exposes directives and events for capturing and interacting with audio stream.
Read more >Insert Media - Qualtrics
For audio files, we recommend MP3 format. ... different types of files to respondents, depending on if their browser and device support Flash...
Read more >How to prevent automatic jumping to the next track?
In WMP, create a new playlist containing the MP3 files that you want to play this way. Then, instead of double-clicking each file...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Do note tough that you need to keep the conversation open by using conv.ask(). Otherwise you will not receive the MEDIA_STATUS event when the audio has finished playing. By keeping the conversation open the user will not be able to use system commands like raising or lowering the volume, or set a timer, etc. I have reported this issue several times to Google via partner support but thus far this issue hasn’t been fixed.
@CoreyCole Yes.