Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dialogflow_v2/classes.rb,
generated/google/apis/dialogflow_v2/representations.rb,
generated/google/apis/dialogflow_v2/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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech

Returns a new instance of GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech



3509
3510
3511
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3509

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)


3502
3503
3504
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3502

def ssml
  @ssml
end

#textString

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

Returns:

  • (String)


3507
3508
3509
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3507

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3514
3515
3516
3517
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3514

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