Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1VoiceSelectionParams
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1VoiceSelectionParams
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/dialogflow_v2beta1/classes.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb 
Overview
Description of which voice to use for speech synthesis.
Instance Attribute Summary collapse
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 - 
  
    
      #ssml_gender  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GoogleCloudDialogflowV2beta1VoiceSelectionParams 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of GoogleCloudDialogflowV2beta1VoiceSelectionParams.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1VoiceSelectionParams
Returns a new instance of GoogleCloudDialogflowV2beta1VoiceSelectionParams
      4380 4381 4382  | 
    
      # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4380 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#name ⇒ 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 gender.
Corresponds to the JSON property name
      4369 4370 4371  | 
    
      # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4369 def name @name end  | 
  
#ssml_gender ⇒ String
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.
Corresponds to the JSON property ssmlGender
      4378 4379 4380  | 
    
      # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4378 def ssml_gender @ssml_gender end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      4385 4386 4387 4388  | 
    
      # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4385 def update!(**args) @name = args[:name] if args.key?(:name) @ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender) end  |