# `Codex.Voice.Events.VoiceStreamEventLifecycle`
[🔗](https://github.com/nshkrdotcom/codex_sdk/blob/v0.16.1/lib/codex/voice/events.ex#L43)

Lifecycle event from the voice pipeline.

Events include:
- `:turn_started` - A new turn (user speech segment) has started
- `:turn_ended` - The current turn has ended
- `:session_ended` - The entire session has ended

# `lifecycle_event`

```elixir
@type lifecycle_event() :: :turn_started | :turn_ended | :session_ended
```

# `t`

```elixir
@type t() :: %Codex.Voice.Events.VoiceStreamEventLifecycle{
  event: lifecycle_event(),
  type: :voice_stream_event_lifecycle
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
