Class: Google::Cloud::Dialogflow::V2::VoiceSelectionParams

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/audio_config.rb

Overview

Description of which voice to use for speech synthesis.

Instance Attribute Summary collapse

Instance Attribute Details

#nameString

Returns Optional. The name of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and ssml_gender.

Returns:

  • (String)

    Optional. The name of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and ssml_gender.



76
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/audio_config.rb', line 76

class VoiceSelectionParams; end

#ssml_genderGoogle::Cloud::Dialogflow::V2::SsmlVoiceGender

Returns Optional. The preferred gender of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and name. Note that this is only a preference, not requirement. If a voice of the appropriate gender is not available, the synthesizer should substitute a voice with a different gender rather than failing the request.

Returns:

  • (Google::Cloud::Dialogflow::V2::SsmlVoiceGender)

    Optional. The preferred gender of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and name. Note that this is only a preference, not requirement. If a voice of the appropriate gender is not available, the synthesizer should substitute a voice with a different gender rather than failing the request.



76
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/audio_config.rb', line 76

class VoiceSelectionParams; end