public sealed class StreamingRecognitionFeatures.Types.VoiceActivityTimeout : IMessage<StreamingRecognitionFeatures.Types.VoiceActivityTimeout>, IEquatable<StreamingRecognitionFeatures.Types.VoiceActivityTimeout>, IDeepCloneable<StreamingRecognitionFeatures.Types.VoiceActivityTimeout>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Speech-to-Text v2 API class StreamingRecognitionFeatures.Types.VoiceActivityTimeout.
Events that a timeout can be set on for voice activity.
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.
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.
[[["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 documentation covers the \u003ccode\u003eStreamingRecognitionFeatures.Types.VoiceActivityTimeout\u003c/code\u003e class, a part of the Cloud Speech-to-Text v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVoiceActivityTimeout\u003c/code\u003e class is used to manage events related to timeouts for voice activity within a stream.\u003c/p\u003e\n"],["\u003cp\u003eThe 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, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties include \u003ccode\u003eSpeechEndTimeout\u003c/code\u003e and \u003ccode\u003eSpeechStartTimeout\u003c/code\u003e, which allow setting durations for stream timeouts after speech ends or if no speech begins, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation is available for several versions of the library, with version 1.4.0 as the latest, and also includes versions 1.3.0, 1.2.0, 1.1.0, and 1.0.0.\u003c/p\u003e\n"]]],[],null,["# Cloud Speech-to-Text v2 API - Class StreamingRecognitionFeatures.Types.VoiceActivityTimeout (1.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.StreamingRecognitionFeatures.Types.VoiceActivityTimeout)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.4.0/Google.Cloud.Speech.V2.StreamingRecognitionFeatures.Types.VoiceActivityTimeout)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.3.0/Google.Cloud.Speech.V2.StreamingRecognitionFeatures.Types.VoiceActivityTimeout)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.2.0/Google.Cloud.Speech.V2.StreamingRecognitionFeatures.Types.VoiceActivityTimeout)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.1.0/Google.Cloud.Speech.V2.StreamingRecognitionFeatures.Types.VoiceActivityTimeout)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.0.0/Google.Cloud.Speech.V2.StreamingRecognitionFeatures.Types.VoiceActivityTimeout) \n\n public sealed class StreamingRecognitionFeatures.Types.VoiceActivityTimeout : IMessage\u003cStreamingRecognitionFeatures.Types.VoiceActivityTimeout\u003e, IEquatable\u003cStreamingRecognitionFeatures.Types.VoiceActivityTimeout\u003e, IDeepCloneable\u003cStreamingRecognitionFeatures.Types.VoiceActivityTimeout\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Speech-to-Text v2 API class StreamingRecognitionFeatures.Types.VoiceActivityTimeout.\n\nEvents that a timeout can be set on for voice activity. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e StreamingRecognitionFeatures.Types.VoiceActivityTimeout \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[StreamingRecognitionFeatures](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.StreamingRecognitionFeatures)[Types](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.StreamingRecognitionFeatures.Types)[VoiceActivityTimeout](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.StreamingRecognitionFeatures.Types.VoiceActivityTimeout), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[StreamingRecognitionFeatures](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.StreamingRecognitionFeatures)[Types](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.StreamingRecognitionFeatures.Types)[VoiceActivityTimeout](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.StreamingRecognitionFeatures.Types.VoiceActivityTimeout), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[StreamingRecognitionFeatures](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.StreamingRecognitionFeatures)[Types](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.StreamingRecognitionFeatures.Types)[VoiceActivityTimeout](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.StreamingRecognitionFeatures.Types.VoiceActivityTimeout), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Speech.V2](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Speech.V2.dll\n\nConstructors\n------------\n\n### VoiceActivityTimeout()\n\n public VoiceActivityTimeout()\n\n### VoiceActivityTimeout(VoiceActivityTimeout)\n\n public VoiceActivityTimeout(StreamingRecognitionFeatures.Types.VoiceActivityTimeout other)\n\nProperties\n----------\n\n### SpeechEndTimeout\n\n public Duration SpeechEndTimeout { get; set; }\n\nDuration to timeout the stream after speech ends. If this is set and no\nspeech is detected in this duration after speech was detected, the server\nwill close the stream.\n\n### SpeechStartTimeout\n\n public Duration SpeechStartTimeout { get; set; }\n\nDuration to timeout the stream if no speech begins. If this is set and\nno speech is detected in this duration at the start of the stream, the\nserver will close the stream."]]