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.



1097
1098
1099
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1097

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)


1088
1089
1090
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1088

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)


1095
1096
1097
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1095

def timeout_message
  @timeout_message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1102
1103
1104
1105
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1102

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