Class: Google::Apis::SpeechV1p1beta1::SpeechAdaptationInfo

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

Overview

Information on speech adaptation use in results

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SpeechAdaptationInfo

Returns a new instance of SpeechAdaptationInfo.



1135
1136
1137
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1135

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

Instance Attribute Details

#adaptation_timeoutBoolean Also known as: adaptation_timeout?

Whether there was a timeout when applying speech adaptation. If true, adaptation had no effect in the response transcript. Corresponds to the JSON property adaptationTimeout

Returns:

  • (Boolean)


1126
1127
1128
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1126

def adaptation_timeout
  @adaptation_timeout
end

#timeout_messageString

If set, returns a message specifying which part of the speech adaptation request timed out. Corresponds to the JSON property timeoutMessage

Returns:

  • (String)


1133
1134
1135
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1133

def timeout_message
  @timeout_message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1140
1141
1142
1143
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1140

def update!(**args)
  @adaptation_timeout = args[:adaptation_timeout] if args.key?(:adaptation_timeout)
  @timeout_message = args[:timeout_message] if args.key?(:timeout_message)
end