class Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessagePlayAudio

Specifies an audio clip to be played by the client as part of the response.

Attributes

allow_playback_interruption[RW]

Output only. Whether the playback of this message can be interrupted by the end user's speech and the client can then starts the next Dialogflow request. Corresponds to the JSON property `allowPlaybackInterruption` @return [Boolean]

allow_playback_interruption?[RW]

Output only. Whether the playback of this message can be interrupted by the end user's speech and the client can then starts the next Dialogflow request. Corresponds to the JSON property `allowPlaybackInterruption` @return [Boolean]

audio_uri[RW]

Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it. Corresponds to the JSON property `audioUri` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v3/classes.rb, line 4416
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dialogflow_v3/classes.rb, line 4421
def update!(**args)
  @allow_playback_interruption = args[:allow_playback_interruption] if args.key?(:allow_playback_interruption)
  @audio_uri = args[:audio_uri] if args.key?(:audio_uri)
end