> Documentation index: https://firebase.google.com/docs/reference/unity/llms.txt

# Firebase.AI.LiveSessionVoiceActivity

A server message indicating that voice activity was detected in the audio stream.

## Summary

Warning: This API is in Public Preview, which means that the feature is not subject to any SLA or deprecation policy and could change in backwards-incompatible ways.

### Inheritance

Inherits from: [Firebase.AI.ILiveSessionMessage](https://firebase.google.com/docs/reference/unity/interface/firebase/a-i/i-live-session-message.md.txt)

| ### Public types ||
|---|---|
| `VoiceActivityType{ Unspecified = 0, ActivityStart = 1, ActivityEnd = 2 }` | enumThe type of server-detected voice activity signal. |

| ### Properties ||
|---|---|
| `AudioOffset` | `readonly TimeSpan` The time the activity was detected relative to the start of the audio stream. |
| `Type` | `readonly VoiceActivityType` Whether user speech started or stopped. |

## Public types

### VoiceActivityType

```c#
 Firebase::AI::LiveSessionVoiceActivity::VoiceActivityType
```
The type of server-detected voice activity signal.

| Properties ||
|---|---|
| `ActivityEnd` | End of user speech signal. |
| `ActivityStart` | Start of user speech signal. |
| `Unspecified` | Unspecified or unknown voice activity signal. |

## Properties

### AudioOffset

```c#
readonly TimeSpan Firebase::AI::LiveSessionVoiceActivity::AudioOffset
```
The time the activity was detected relative to the start of the audio stream.

### Type

```c#
readonly VoiceActivityType Firebase::AI::LiveSessionVoiceActivity::Type
```
Whether user speech started or stopped.