# Voice Sessions
URL: /docs/api-reference/voice/session

Create and control realtime assistant-ui voice sessions, state, controls, and helpers.

{/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts */}

{/* Do not edit manually. */}

{/* api-reference:start */}

{/* AUTO-GENERATED by scripts/generate-api-reference.mts */}

{/* Do not edit this block manually. */}

## API Reference \[#api-reference]

### createVoiceSession \[#createvoicesession]

<ParametersTable />

### RealtimeVoiceAdapter \[#realtimevoiceadapter]

<ParametersTable />

### useVoiceControls \[#usevoicecontrols]

```ts
const useVoiceControls: () => { connect: () => void; disconnect: () => void; mute: () => void; unmute: () => void; };
```

### useVoiceState \[#usevoicestate]

```ts
const useVoiceState: () => VoiceSessionState;
```

### useVoiceVolume \[#usevoicevolume]

```ts
const useVoiceVolume: () => number;
```

### VoiceSessionControls \[#voicesessioncontrols]

<ParametersTable />

### VoiceSessionHelpers \[#voicesessionhelpers]

<ParametersTable />

### VoiceSessionState \[#voicesessionstate]

<ParametersTable />

{/* api-reference:end */}
