Closed davidalbertonogueira closed 4 years ago
hi @davidalbertonogueira. yes it is possible to add support for media responses. I am actually currently working on adding them as a response type. Hoping to have them implemented soon.
I implemented two new response classes, one for SSML and other for Media Response. I can share them in a pull request.
Any updates here? @davidalbertonogueira would you care to push your code to your github repo or make a PR?
@lrusak you can find the class in my repo:
Hi @treethought ,
I would like to play audio, but the SSML approach :
is not working.
Moreover, there's another way to play longer audios (SSML is restricted to files up to 240 seconds), which is using Media responses ( https://developers.google.com/assistant/conversational/responses#df_json_media_response ).
Looking at their json example, it would require adding a "richResponse" in the "payload"-"google" element. Is it feasible to incorporate this in your library?