Class: Google::Cloud::Speech::V2::StreamingRecognitionFeatures
- Inherits:
-
Object
- Object
- Google::Cloud::Speech::V2::StreamingRecognitionFeatures
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/speech/v2/cloud_speech.rb
Overview
Available recognition features specific to streaming recognition requests.
Defined Under Namespace
Classes: VoiceActivityTimeout
Instance Attribute Summary collapse
-
#enable_voice_activity_events ⇒ ::Boolean
If
true
, responses with voice activity speech events will be returned as they are detected. -
#interim_results ⇒ ::Boolean
Whether or not to stream interim results to the client.
-
#voice_activity_timeout ⇒ ::Google::Cloud::Speech::V2::StreamingRecognitionFeatures::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
#enable_voice_activity_events ⇒ ::Boolean
Returns If true
, responses with voice activity speech events will be returned as
they are detected.
836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 |
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 836 class StreamingRecognitionFeatures 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. If this is set and # no speech is detected in this duration at the start of the stream, the # server will close the stream. # @!attribute [rw] speech_end_timeout # @return [::Google::Protobuf::Duration] # Duration to timeout the stream after speech ends. If this is set and no # speech is detected in this duration after speech was detected, the server # will close the stream. class VoiceActivityTimeout include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#interim_results ⇒ ::Boolean
Returns Whether or not to stream interim results to the client. If set to true, interim results will be streamed to the client. Otherwise, only the final response will be streamed back.
836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 |
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 836 class StreamingRecognitionFeatures 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. If this is set and # no speech is detected in this duration at the start of the stream, the # server will close the stream. # @!attribute [rw] speech_end_timeout # @return [::Google::Protobuf::Duration] # Duration to timeout the stream after speech ends. If this is set and no # speech is detected in this duration after speech was detected, the server # will close the stream. class VoiceActivityTimeout include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#voice_activity_timeout ⇒ ::Google::Cloud::Speech::V2::StreamingRecognitionFeatures::VoiceActivityTimeout
Returns 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. The field voice_activity_events
must also be set to true.
836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 |
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 836 class StreamingRecognitionFeatures 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. If this is set and # no speech is detected in this duration at the start of the stream, the # server will close the stream. # @!attribute [rw] speech_end_timeout # @return [::Google::Protobuf::Duration] # Duration to timeout the stream after speech ends. If this is set and no # speech is detected in this duration after speech was detected, the server # will close the stream. class VoiceActivityTimeout include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |