Arshad
Arshad

Reputation: 965

Play audio file from server

I followed the steps to create a sample app and it is doing perfect conversation with my custom agent created.

Can we play our own music or MP3 hosted in my server by a voice message to Google Home? Or I need to play an audio from my Android app that is installed in Android device which is paired with Google Home by sending voice message to it?

Upvotes: 9

Views: 5156

Answers (1)

Nazeem
Nazeem

Reputation: 468

You can play audio files using the <speak>This is the audio <audio>link/or/url/to/audiofile.mp3</audio></speak> in your string response. You can find more details in the SSML section

Upvotes: 1

Related Questions