Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Overview

Define behaviors of speech to text detection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings

Returns a new instance of GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings.



4145
4146
4147
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 4145

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#endpointer_sensitivityFixnum

Sensitivity of the speech model that detects the end of speech. Scale from 0 to 100. Corresponds to the JSON property endpointerSensitivity

Returns:

  • (Fixnum)


4123
4124
4125
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 4123

def endpointer_sensitivity
  @endpointer_sensitivity
end

#modelsHash<String,String>

Mapping from language to Speech-to-Text model. The mapped Speech-to-Text model will be selected for requests from its corresponding language. For more information, see Speech models. Corresponds to the JSON property models

Returns:

  • (Hash<String,String>)


4131
4132
4133
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 4131

def models
  @models
end

#no_speech_timeoutString

Timeout before detecting no speech. Corresponds to the JSON property noSpeechTimeout

Returns:

  • (String)


4136
4137
4138
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 4136

def no_speech_timeout
  @no_speech_timeout
end

#use_timeout_based_endpointingBoolean Also known as: use_timeout_based_endpointing?

Use timeout based endpointing, interpreting endpointer sensitivity as seconds of timeout value. Corresponds to the JSON property useTimeoutBasedEndpointing

Returns:

  • (Boolean)


4142
4143
4144
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 4142

def use_timeout_based_endpointing
  @use_timeout_based_endpointing
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4150
4151
4152
4153
4154
4155
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 4150

def update!(**args)
  @endpointer_sensitivity = args[:endpointer_sensitivity] if args.key?(:endpointer_sensitivity)
  @models = args[:models] if args.key?(:models)
  @no_speech_timeout = args[:no_speech_timeout] if args.key?(:no_speech_timeout)
  @use_timeout_based_endpointing = args[:use_timeout_based_endpointing] if args.key?(:use_timeout_based_endpointing)
end