Class: Google::Cloud::Speech::V2::RecognitionConfig
- Inherits:
-
Object
- Object
- Google::Cloud::Speech::V2::RecognitionConfig
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/speech/v2/cloud_speech.rb
Overview
Provides information to the Recognizer that specifies how to process the recognition request.
Instance Attribute Summary collapse
-
#adaptation ⇒ ::Google::Cloud::Speech::V2::SpeechAdaptation
Speech adaptation context that weights recognizer predictions for specific words and phrases.
-
#auto_decoding_config ⇒ ::Google::Cloud::Speech::V2::AutoDetectDecodingConfig
Automatically detect decoding parameters.
-
#explicit_decoding_config ⇒ ::Google::Cloud::Speech::V2::ExplicitDecodingConfig
Explicitly specified decoding parameters.
-
#features ⇒ ::Google::Cloud::Speech::V2::RecognitionFeatures
Speech recognition features to enable.
-
#language_codes ⇒ ::Array<::String>
Optional.
-
#model ⇒ ::String
Optional.
Instance Attribute Details
#adaptation ⇒ ::Google::Cloud::Speech::V2::SpeechAdaptation
Returns Speech adaptation context that weights recognizer predictions for specific words and phrases.
595 596 597 598 |
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 595 class RecognitionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#auto_decoding_config ⇒ ::Google::Cloud::Speech::V2::AutoDetectDecodingConfig
Returns Automatically detect decoding parameters. Preferred for supported formats.
595 596 597 598 |
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 595 class RecognitionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#explicit_decoding_config ⇒ ::Google::Cloud::Speech::V2::ExplicitDecodingConfig
Returns Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
595 596 597 598 |
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 595 class RecognitionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#features ⇒ ::Google::Cloud::Speech::V2::RecognitionFeatures
Returns Speech recognition features to enable.
595 596 597 598 |
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 595 class RecognitionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#language_codes ⇒ ::Array<::String>
Returns Optional. The language of the supplied audio as a BCP-47 language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US".
Supported languages for each model are listed in the Table of Supported Models.
If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.
595 596 597 598 |
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 595 class RecognitionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#model ⇒ ::String
Returns Optional. Which model to use for recognition requests. Select the model best suited to your domain to get best results.
Guidance for choosing which model to use can be found in the Transcription Models Documentation and the models supported in each region can be found in the Table Of Supported Models.
595 596 597 598 |
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 595 class RecognitionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |