# Google Cloud Speech v1p1beta1 API - Class StreamingRecognitionConfig.Types.VoiceActivityTimeout (3.0.0-beta10)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.0.0-beta10 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.StreamingRecognitionConfig.Types.VoiceActivityTimeout)
- [3.0.0-beta09](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/3.0.0-beta09/Google.Cloud.Speech.V1P1Beta1.StreamingRecognitionConfig.Types.VoiceActivityTimeout)
- [2.0.0-beta09](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/2.0.0-beta09/Google.Cloud.Speech.V1P1Beta1.StreamingRecognitionConfig.Types.VoiceActivityTimeout)

    public sealed class StreamingRecognitionConfig.Types.VoiceActivityTimeout : IMessage<StreamingRecognitionConfig.Types.VoiceActivityTimeout>, IEquatable<StreamingRecognitionConfig.Types.VoiceActivityTimeout>, IDeepCloneable<StreamingRecognitionConfig.Types.VoiceActivityTimeout>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Speech v1p1beta1 API class StreamingRecognitionConfig.Types.VoiceActivityTimeout.

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

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> StreamingRecognitionConfig.Types.VoiceActivityTimeout

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[StreamingRecognitionConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.StreamingRecognitionConfig)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.StreamingRecognitionConfig.Types)[VoiceActivityTimeout](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.StreamingRecognitionConfig.Types.VoiceActivityTimeout), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[StreamingRecognitionConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.StreamingRecognitionConfig)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.StreamingRecognitionConfig.Types)[VoiceActivityTimeout](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.StreamingRecognitionConfig.Types.VoiceActivityTimeout), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[StreamingRecognitionConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.StreamingRecognitionConfig)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.StreamingRecognitionConfig.Types)[VoiceActivityTimeout](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.StreamingRecognitionConfig.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)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Speech.V1P1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1)

## Assembly

Google.Cloud.Speech.V1P1Beta1.dll

## Constructors

### VoiceActivityTimeout()

    public VoiceActivityTimeout()

### VoiceActivityTimeout(VoiceActivityTimeout)

    public VoiceActivityTimeout(StreamingRecognitionConfig.Types.VoiceActivityTimeout other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.StreamingRecognitionConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.StreamingRecognitionConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.StreamingRecognitionConfig.Types.VoiceActivityTimeout` |

## Properties

### SpeechEndTimeout

    public Duration SpeechEndTimeout { get; set; }

Duration to timeout the stream after speech ends.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Duration.html` |   |

### SpeechStartTimeout

    public Duration SpeechStartTimeout { get; set; }

Duration to timeout the stream if no speech begins.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Duration.html` |   |