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\u003eThis page provides reference documentation for the \u003ccode\u003eStreamingRecognitionFeatures\u003c/code\u003e class within the Google Cloud Speech-to-Text v2 API, specifically version 1.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStreamingRecognitionFeatures\u003c/code\u003e class, which inherits from \u003ccode\u003eobject\u003c/code\u003e, is used to specify available recognition features for streaming recognition requests.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eStreamingRecognitionFeatures\u003c/code\u003e include \u003ccode\u003eEnableVoiceActivityEvents\u003c/code\u003e, which triggers responses with voice activity speech events, \u003ccode\u003eInterimResults\u003c/code\u003e, which controls whether interim results are streamed, and \u003ccode\u003eVoiceActivityTimeout\u003c/code\u003e, which sets the duration after which the server closes the stream if no voice activity is detected.\u003c/p\u003e\n"],["\u003cp\u003eThe class has 2 constructors: \u003ccode\u003eStreamingRecognitionFeatures()\u003c/code\u003e and \u003ccode\u003eStreamingRecognitionFeatures(StreamingRecognitionFeatures other)\u003c/code\u003e where the latter takes a parameter of type \u003ccode\u003eStreamingRecognitionFeatures\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]