Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextToSpeechSettings
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextToSpeechSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Overview
Instructs the speech synthesizer on how to generate the output audio content.
Instance Attribute Summary collapse
-
#enable_text_to_speech ⇒ Boolean
(also: #enable_text_to_speech?)
Optional.
-
#output_audio_encoding ⇒ String
Required.
-
#sample_rate_hertz ⇒ Fixnum
Optional.
-
#synthesize_speech_configs ⇒ Hash<String,Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1TextToSpeechSettings
constructor
A new instance of GoogleCloudDialogflowV2beta1TextToSpeechSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1TextToSpeechSettings
Returns a new instance of GoogleCloudDialogflowV2beta1TextToSpeechSettings.
16938 16939 16940 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16938 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_text_to_speech ⇒ Boolean Also known as: enable_text_to_speech?
Optional. Indicates whether text to speech is enabled. Even when this field is
false, other settings in this proto are still retained.
Corresponds to the JSON property enableTextToSpeech
16914 16915 16916 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16914 def enable_text_to_speech @enable_text_to_speech end |
#output_audio_encoding ⇒ String
Required. Audio encoding of the synthesized audio content.
Corresponds to the JSON property outputAudioEncoding
16920 16921 16922 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16920 def output_audio_encoding @output_audio_encoding end |
#sample_rate_hertz ⇒ Fixnum
Optional. The synthesis sample rate (in hertz) for this audio. If not provided,
then the synthesizer will use the default sample rate based on the audio
encoding. If this is different from the voice's natural sample rate, then the
synthesizer will honor this request by converting to the desired sample rate (
which might result in worse audio quality).
Corresponds to the JSON property sampleRateHertz
16929 16930 16931 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16929 def sample_rate_hertz @sample_rate_hertz end |
#synthesize_speech_configs ⇒ Hash<String,Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig>
Optional. Configuration of how speech should be synthesized, mapping from
language (https://cloud.google.com/dialogflow/docs/reference/language) to
SynthesizeSpeechConfig.
Corresponds to the JSON property synthesizeSpeechConfigs
16936 16937 16938 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16936 def synthesize_speech_configs @synthesize_speech_configs end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16943 16944 16945 16946 16947 16948 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16943 def update!(**args) @enable_text_to_speech = args[:enable_text_to_speech] if args.key?(:enable_text_to_speech) @output_audio_encoding = args[:output_audio_encoding] if args.key?(:output_audio_encoding) @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz) @synthesize_speech_configs = args[:synthesize_speech_configs] if args.key?(:synthesize_speech_configs) end |