Class: Google::Cloud::Dialogflow::V2::TextToSpeechSettings
- Inherits:
-
Object
- Object
- Google::Cloud::Dialogflow::V2::TextToSpeechSettings
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/dialogflow/v2/environment.rb
Overview
Instructs the speech synthesizer on how to generate the output audio content.
Defined Under Namespace
Classes: SynthesizeSpeechConfigsEntry
Instance Attribute Summary collapse
-
#enable_text_to_speech ⇒ ::Boolean
Optional.
-
#output_audio_encoding ⇒ ::Google::Cloud::Dialogflow::V2::OutputAudioEncoding
Required.
-
#sample_rate_hertz ⇒ ::Integer
Optional.
-
#synthesize_speech_configs ⇒ ::Google::Protobuf::Map{::String => ::Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig}
Optional.
Instance Attribute Details
#enable_text_to_speech ⇒ ::Boolean
Returns Optional. Indicates whether text to speech is enabled. Even when this field is false, other settings in this proto are still retained.
122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'proto_docs/google/cloud/dialogflow/v2/environment.rb', line 122 class TextToSpeechSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig] class SynthesizeSpeechConfigsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#output_audio_encoding ⇒ ::Google::Cloud::Dialogflow::V2::OutputAudioEncoding
Returns Required. Audio encoding of the synthesized audio content.
122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'proto_docs/google/cloud/dialogflow/v2/environment.rb', line 122 class TextToSpeechSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig] class SynthesizeSpeechConfigsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#sample_rate_hertz ⇒ ::Integer
Returns 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).
122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'proto_docs/google/cloud/dialogflow/v2/environment.rb', line 122 class TextToSpeechSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig] class SynthesizeSpeechConfigsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#synthesize_speech_configs ⇒ ::Google::Protobuf::Map{::String => ::Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig}
Returns Optional. Configuration of how speech should be synthesized, mapping from language (https://cloud.google.com/dialogflow/docs/reference/language) to SynthesizeSpeechConfig.
122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'proto_docs/google/cloud/dialogflow/v2/environment.rb', line 122 class TextToSpeechSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig] class SynthesizeSpeechConfigsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |