Google action response with audio without text

google-assistant

#1

I have to add a response in the form of audio without text. In Alexa, it was possible but in google action, I am not getting a response.

    let speech = this.speechBuilder()
                    .addAudio('audio url here')
    this.ask(speech)

This code works for me in Alexa but in google action no response and no error.


#2

Hey @sariga,

Google Assistant requires a display text: https://www.jovo.tech/marketplace/jovo-platform-googleassistant/visual-output#display-text

In your example, it could be:

let speech = this.speechBuilder()
                    .addAudio('audio url here');
this.$googleAction.displayText('Some text');
this.ask(speech);

Btw, I prefer using the Jovo $speech object, then you don’t have to initialize a SpeechBuilder object all the time:

this.$speech.addAudio('audio url here');
this.$googleAction.displayText('Some text');
this.ask(this.$speech);

#3

Thank you @jan it worked.


#4

Great! Closing this then


closed #5