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.
857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 |
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 857 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.
857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 |
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 857 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.
857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 |
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 857 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 |