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 document provides reference documentation for the \u003ccode\u003eStreamingRecognitionFeatures\u003c/code\u003e class within the Cloud Speech-to-Text v2 API, specifically for version 1.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStreamingRecognitionFeatures\u003c/code\u003e class allows configuration of features specific to streaming recognition requests, inheriting from \u003ccode\u003eobject\u003c/code\u003e and implementing several interfaces.\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, and \u003ccode\u003eInterimResults\u003c/code\u003e, which determines whether interim results are streamed.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVoiceActivityTimeout\u003c/code\u003e property, when configured, automatically closes the stream after a specified duration following the last \u003ccode\u003eVOICE_ACTIVITY\u003c/code\u003e event, requiring \u003ccode\u003evoice_activity_events\u003c/code\u003e to be true.\u003c/p\u003e\n"],["\u003cp\u003eThe current version has two constructors, \u003ccode\u003eStreamingRecognitionFeatures()\u003c/code\u003e for creating a new instance and \u003ccode\u003eStreamingRecognitionFeatures(StreamingRecognitionFeatures other)\u003c/code\u003e to clone an existing instance.\u003c/p\u003e\n"]]],[],null,[]]