Fayza Nawaz
Fayza Nawaz

Reputation: 2316

Creating action on google | Audio playback

i'm new to action on Googles and right now doing R&D. I've created an audio skill on Alexa, and now want same for Google assistant as well. But i've few questions:

1- Can we return audio in response? my audios are about 1hour long, so can we play them in our action? In Alexa, we have audio player. Anything like that in assistant?

2- I didn't find any SDK, but devs are talking about it, so there must be some. Kindly share the link.

Thanks in anticipation.

Update: I believe, SDK is actions-on-google. I've not explored it yet, but it's the SDK that i found for creating actions with node js Link: actions-on-google

Upvotes: 4

Views: 1280

Answers (1)

Leon Nicholls
Leon Nicholls

Reputation: 4656

Actions support SSML which provides the playback of audio files: https://developers.google.com/actions/reference/ssml#support_for_ssml_elements

At the moment there is a 120 seconds maximum duration for all the audio formats supported, but you can break up the audio and play them in sequence if they are longer.

If you have your own NLU, you can use the Actions SDK. If you don't have your own NLU, then you can use API.AI to create an action.

A node.js client library is available for either of these options: https://github.com/actions-on-google/actions-on-google-nodejs

For any other developer questions, you should look at the actions documentation: https://developers.google.com/actions/develop/conversation

Upvotes: 3

Related Questions