Reference documentation and code samples for the Cloud Speech-to-Text V1p1beta1 API class Google::Cloud::Speech::V1p1beta1::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::V1p1beta1::RecognitionAudio
Returns
- (::Google::Cloud::Speech::V1p1beta1::RecognitionAudio) — Required. The audio data to be recognized.
#audio=
def audio=(value) -> ::Google::Cloud::Speech::V1p1beta1::RecognitionAudio
Parameter
- value (::Google::Cloud::Speech::V1p1beta1::RecognitionAudio) — Required. The audio data to be recognized.
Returns
- (::Google::Cloud::Speech::V1p1beta1::RecognitionAudio) — Required. The audio data to be recognized.
#config
def config() -> ::Google::Cloud::Speech::V1p1beta1::RecognitionConfig
Returns
- (::Google::Cloud::Speech::V1p1beta1::RecognitionConfig) — Required. Provides information to the recognizer that specifies how to process the request.
#config=
def config=(value) -> ::Google::Cloud::Speech::V1p1beta1::RecognitionConfig
Parameter
- value (::Google::Cloud::Speech::V1p1beta1::RecognitionConfig) — Required. Provides information to the recognizer that specifies how to process the request.
Returns
- (::Google::Cloud::Speech::V1p1beta1::RecognitionConfig) — Required. Provides information to the recognizer that specifies how to process the request.