question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using media response finished to play another mp3

See original GitHub issue

Hello, 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 is FINISHED with another media response? This will keep my playback going as I described above.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
BoneGoatcommented, Nov 17, 2018

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.

1reaction
BoneGoatcommented, Dec 10, 2018
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found