Class: Google::Cloud::Speech::V1p1beta1::StreamingRecognitionConfig
- Inherits:
-
Object
- Object
- Google::Cloud::Speech::V1p1beta1::StreamingRecognitionConfig
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb
Overview
Provides information to the recognizer that specifies how to process the request.
Defined Under Namespace
Classes: VoiceActivityTimeout
Instance Attribute Summary collapse
-
#config ⇒ ::Google::Cloud::Speech::V1p1beta1::RecognitionConfig
Required.
-
#enable_voice_activity_events ⇒ ::Boolean
If
true, responses with voice activity speech events will be returned as they are detected. -
#interim_results ⇒ ::Boolean
If
true, interim results (tentative hypotheses) may be returned as they become available (these interim results are indicated with theis_final=falseflag). -
#single_utterance ⇒ ::Boolean
If
falseor omitted, the recognizer will perform continuous recognition (continuing to wait for and process audio even if the user pauses speaking) until the client closes the input stream (gRPC API) or until the maximum time limit has been reached. -
#voice_activity_timeout ⇒ ::Google::Cloud::Speech::V1p1beta1::StreamingRecognitionConfig::VoiceActivityTimeout
If set, the server will automatically close the stream after the specified duration has elapsed after the last VOICE_ACTIVITY speech event has been sent.
Instance Attribute Details
#config ⇒ ::Google::Cloud::Speech::V1p1beta1::RecognitionConfig
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 139 class StreamingRecognitionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Events that a timeout can be set on for voice activity. # @!attribute [rw] speech_start_timeout # @return [::Google::Protobuf::Duration] # Duration to timeout the stream if no speech begins. # @!attribute [rw] speech_end_timeout # @return [::Google::Protobuf::Duration] # Duration to timeout the stream after speech ends. class VoiceActivityTimeout include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#enable_voice_activity_events ⇒ ::Boolean
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 139 class StreamingRecognitionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Events that a timeout can be set on for voice activity. # @!attribute [rw] speech_start_timeout # @return [::Google::Protobuf::Duration] # Duration to timeout the stream if no speech begins. # @!attribute [rw] speech_end_timeout # @return [::Google::Protobuf::Duration] # Duration to timeout the stream after speech ends. class VoiceActivityTimeout include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#interim_results ⇒ ::Boolean
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 139 class StreamingRecognitionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Events that a timeout can be set on for voice activity. # @!attribute [rw] speech_start_timeout # @return [::Google::Protobuf::Duration] # Duration to timeout the stream if no speech begins. # @!attribute [rw] speech_end_timeout # @return [::Google::Protobuf::Duration] # Duration to timeout the stream after speech ends. class VoiceActivityTimeout include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#single_utterance ⇒ ::Boolean
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 139 class StreamingRecognitionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Events that a timeout can be set on for voice activity. # @!attribute [rw] speech_start_timeout # @return [::Google::Protobuf::Duration] # Duration to timeout the stream if no speech begins. # @!attribute [rw] speech_end_timeout # @return [::Google::Protobuf::Duration] # Duration to timeout the stream after speech ends. class VoiceActivityTimeout include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#voice_activity_timeout ⇒ ::Google::Cloud::Speech::V1p1beta1::StreamingRecognitionConfig::VoiceActivityTimeout
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
# File 'proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 139 class StreamingRecognitionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Events that a timeout can be set on for voice activity. # @!attribute [rw] speech_start_timeout # @return [::Google::Protobuf::Duration] # Duration to timeout the stream if no speech begins. # @!attribute [rw] speech_end_timeout # @return [::Google::Protobuf::Duration] # Duration to timeout the stream after speech ends. class VoiceActivityTimeout include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |