Class: Google::Cloud::Speech::V2::StreamingRecognizeRequest
- Inherits:
-
Object
- Object
- Google::Cloud::Speech::V2::StreamingRecognizeRequest
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/speech/v2/cloud_speech.rb
Overview
Request message for the StreamingRecognize method. Multiple StreamingRecognizeRequest messages are sent in one call.
If the Recognizer referenced by recognizer contains a fully specified request configuration then the stream may only contain messages with only audio set.
Otherwise the first message must contain a recognizer and a streaming_config message that together fully specify the request configuration and must not contain audio. All subsequent messages must only have audio set.
Instance Attribute Summary collapse
-
#audio ⇒ ::String
Inline audio bytes to be Recognized.
-
#recognizer ⇒ ::String
Required.
-
#streaming_config ⇒ ::Google::Cloud::Speech::V2::StreamingRecognitionConfig
StreamingRecognitionConfig to be used in this recognition attempt.
Instance Attribute Details
#audio ⇒ ::String
Returns Inline audio bytes to be Recognized. Maximum size for this field is 15 KB per request.
946 947 948 949 |
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 946 class StreamingRecognizeRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#recognizer ⇒ ::String
Returns Required. The name of the Recognizer to use during recognition. The
expected format is
projects/{project}/locations/{location}/recognizers/{recognizer}
. The
{recognizer} segment may be set to _
to use an empty implicit Recognizer.
946 947 948 949 |
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 946 class StreamingRecognizeRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#streaming_config ⇒ ::Google::Cloud::Speech::V2::StreamingRecognitionConfig
Returns StreamingRecognitionConfig to be used in this recognition attempt. If provided, it will override the default RecognitionConfig stored in the Recognizer.
946 947 948 949 |
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 946 class StreamingRecognizeRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |