Class StreamingRecognitionFeatures (2.26.1)

StreamingRecognitionFeatures(
    mapping=None, *, ignore_unknown_fields=False, **kwargs
)

Available recognition features specific to streaming recognition requests.

Attributes

Name Description
enable_voice_activity_events bool
If true, responses with voice activity speech events will be returned as they are detected.
interim_results bool
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.
voice_activity_timeout google.cloud.speech_v2.types.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. The field voice_activity_events must also be set to true.

Classes

VoiceActivityTimeout

VoiceActivityTimeout(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Events that a timeout can be set on for voice activity.