Class: Google::Apis::SpeechV1::SpeechAdaptationInfo
- Inherits:
-
Object
- Object
- Google::Apis::SpeechV1::SpeechAdaptationInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/speech_v1/classes.rb,
lib/google/apis/speech_v1/representations.rb,
lib/google/apis/speech_v1/representations.rb
Overview
Information on speech adaptation use in results
Instance Attribute Summary collapse
-
#adaptation_timeout ⇒ Boolean
(also: #adaptation_timeout?)
Whether there was a timeout when applying speech adaptation.
-
#timeout_message ⇒ String
If set, returns a message specifying which part of the speech adaptation request timed out.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SpeechAdaptationInfo
constructor
A new instance of SpeechAdaptationInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SpeechAdaptationInfo
Returns a new instance of SpeechAdaptationInfo.
1231 1232 1233 |
# File 'lib/google/apis/speech_v1/classes.rb', line 1231 def initialize(**args) update!(**args) end |
Instance Attribute Details
#adaptation_timeout ⇒ Boolean 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
1222 1223 1224 |
# File 'lib/google/apis/speech_v1/classes.rb', line 1222 def adaptation_timeout @adaptation_timeout end |
#timeout_message ⇒ String
If set, returns a message specifying which part of the speech adaptation
request timed out.
Corresponds to the JSON property timeoutMessage
1229 1230 1231 |
# File 'lib/google/apis/speech_v1/classes.rb', line 1229 def @timeout_message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1236 1237 1238 1239 |
# File 'lib/google/apis/speech_v1/classes.rb', line 1236 def update!(**args) @adaptation_timeout = args[:adaptation_timeout] if args.key?(:adaptation_timeout) @timeout_message = args[:timeout_message] if args.key?(:timeout_message) end |