Reference documentation and code samples for the Cloud Speech-to-Text V2 API class Google::Cloud::Speech::V2::RecognitionConfig.
Provides information to the Recognizer that specifies how to process the recognition request.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#adaptation
def adaptation() -> ::Google::Cloud::Speech::V2::SpeechAdaptation
    Returns
    
  - (::Google::Cloud::Speech::V2::SpeechAdaptation) — Speech adaptation context that weights recognizer predictions for specific words and phrases.
#adaptation=
def adaptation=(value) -> ::Google::Cloud::Speech::V2::SpeechAdaptation
    Parameter
    
  - value (::Google::Cloud::Speech::V2::SpeechAdaptation) — Speech adaptation context that weights recognizer predictions for specific words and phrases.
    Returns
    
  - (::Google::Cloud::Speech::V2::SpeechAdaptation) — Speech adaptation context that weights recognizer predictions for specific words and phrases.
#auto_decoding_config
def auto_decoding_config() -> ::Google::Cloud::Speech::V2::AutoDetectDecodingConfig
    Returns
    
  - (::Google::Cloud::Speech::V2::AutoDetectDecodingConfig) — Automatically detect decoding parameters. Preferred for supported formats.
#auto_decoding_config=
def auto_decoding_config=(value) -> ::Google::Cloud::Speech::V2::AutoDetectDecodingConfig
    Parameter
    
  - value (::Google::Cloud::Speech::V2::AutoDetectDecodingConfig) — Automatically detect decoding parameters. Preferred for supported formats.
    Returns
    
  - (::Google::Cloud::Speech::V2::AutoDetectDecodingConfig) — Automatically detect decoding parameters. Preferred for supported formats.
#explicit_decoding_config
def explicit_decoding_config() -> ::Google::Cloud::Speech::V2::ExplicitDecodingConfig
    Returns
    
  - (::Google::Cloud::Speech::V2::ExplicitDecodingConfig) — Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
#explicit_decoding_config=
def explicit_decoding_config=(value) -> ::Google::Cloud::Speech::V2::ExplicitDecodingConfig
    Parameter
    
  - value (::Google::Cloud::Speech::V2::ExplicitDecodingConfig) — Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
    Returns
    
  - (::Google::Cloud::Speech::V2::ExplicitDecodingConfig) — Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
#features
def features() -> ::Google::Cloud::Speech::V2::RecognitionFeatures
    Returns
    
  - (::Google::Cloud::Speech::V2::RecognitionFeatures) — Speech recognition features to enable.
#features=
def features=(value) -> ::Google::Cloud::Speech::V2::RecognitionFeatures
    Parameter
    
  - value (::Google::Cloud::Speech::V2::RecognitionFeatures) — Speech recognition features to enable.
    Returns
    
- (::Google::Cloud::Speech::V2::RecognitionFeatures) — Speech recognition features to enable.