Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb

Overview

Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway. Telephony Gateway takes the synthesizer settings from DetectIntentResponse.output_audio_config which can either be set at request- level or can come from the agent-level synthesizer config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech

Returns a new instance of GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech.



18178
18179
18180
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 18178

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#ssmlString

The SSML to be synthesized. For more information, see SSML. Corresponds to the JSON property ssml

Returns:

  • (String)


18171
18172
18173
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 18171

def ssml
  @ssml
end

#textString

The raw text to be synthesized. Corresponds to the JSON property text

Returns:

  • (String)


18176
18177
18178
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 18176

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18183
18184
18185
18186
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 18183

def update!(**args)
  @ssml = args[:ssml] if args.key?(:ssml)
  @text = args[:text] if args.key?(:text)
end