public sealed class StreamingRecognitionFeatures : IMessage<StreamingRecognitionFeatures>, IEquatable<StreamingRecognitionFeatures>, IDeepCloneable<StreamingRecognitionFeatures>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Speech-to-Text v2 API class StreamingRecognitionFeatures.
Available recognition features specific to streaming recognition requests.
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.
public StreamingRecognitionFeatures.Types.VoiceActivityTimeout VoiceActivityTimeout { get; set; }
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eStreamingRecognitionFeatures\u003c/code\u003e class in the Google Cloud Speech-to-Text v2 API manages the available recognition features for streaming requests.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides functionality to enable streaming of voice activity events as they are detected, using the \u003ccode\u003eEnableVoiceActivityEvents\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInterimResults\u003c/code\u003e property controls whether interim results are streamed to the client during the recognition process, or if only the final response is sent.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVoiceActivityTimeout\u003c/code\u003e property allows setting a timeout duration after the last voice activity event, which will close the stream automatically.\u003c/p\u003e\n"],["\u003cp\u003eThis class has implementations for \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e and can be found in the \u003ccode\u003eGoogle.Cloud.Speech.V2\u003c/code\u003e namespace within the \u003ccode\u003eGoogle.Cloud.Speech.V2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]