Reference documentation and code samples for the Cloud Speech-to-Text V1 API class Google::Cloud::Speech::V1::RecognizeRequest.
The top-level message sent by the client for the Recognize
method.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#audio
def audio() -> ::Google::Cloud::Speech::V1::RecognitionAudio
Returns
- (::Google::Cloud::Speech::V1::RecognitionAudio) — Required. The audio data to be recognized.
#audio=
def audio=(value) -> ::Google::Cloud::Speech::V1::RecognitionAudio
Parameter
- value (::Google::Cloud::Speech::V1::RecognitionAudio) — Required. The audio data to be recognized.
Returns
- (::Google::Cloud::Speech::V1::RecognitionAudio) — Required. The audio data to be recognized.
#config
def config() -> ::Google::Cloud::Speech::V1::RecognitionConfig
Returns
- (::Google::Cloud::Speech::V1::RecognitionConfig) — Required. Provides information to the recognizer that specifies how to process the request.
#config=
def config=(value) -> ::Google::Cloud::Speech::V1::RecognitionConfig
Parameter
- value (::Google::Cloud::Speech::V1::RecognitionConfig) — Required. Provides information to the recognizer that specifies how to process the request.
Returns
- (::Google::Cloud::Speech::V1::RecognitionConfig) — Required. Provides information to the recognizer that specifies how to process the request.