[Docs] Google Action Media Response


#1

Learn how to use the Google Action Media Response with Jovo.

The Google Action Media Response allows you to play audio content, which is longer than 120 seconds. While using the Media Response you loose control of the stop, cancel and resume commands, since Google handles these themselves, without your app even receiving the request.


This is a companion discussion topic for the original entry at https://www.jovo.tech/docs/google-assistant/media-response

#2

hi
Is possible to use AudioPlayer from Alexa and media response, in same code ?
or better make 2 developement ?


#3

You can use mostly the same code.

We cover it in this course:

https://www.jovo.tech/courses/project-3-podcast-player


#5

How can I set start_offset for the google media response?


#6

I found this because I was also looking for a way to use the start_offset function of Google’s media response. In the podcast player tutorial I read that this was not possible, and peeking at the old GoogleAssistant plugin code it wasn’t mentioned, but reading the code of the MediaResponse module for the new Google Assistant Conversational Actions plugin it looks like this should be possible. I haven’t seen a tutorial on it yet, perhaps because it’s so new, but I’m going to plan on moving in that direction with my development.


#7

Ah, here’s a start. https://github.com/jovotech/jovo-framework/blob/master/examples/javascript/02_googleassistantconv/media/src/app.js


#8

Yes, the media response functionality was pretty limited in Actions with Dialogflow :confused: It works with the new Google (Conversational) Actions.


#9

It seems to me you only get the audio progress, but you cannot set an offset or seek. Is that right?


#10

Is it possible to use suggestion chips for Google (Conversational) Actions? If yes, how?


#11

this.$googleAction.showSuggestions([“Test”]);
This worked for me