> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeroruntime.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Neuphonic

> TypeScript API reference for the neuphonic text-to-speech provider.

<Card title="Usage guide" icon="book" href="/plugins/tts/neuphonic" horizontal>
  Setup, environment variables, and Python/JavaScript/Go usage examples.
</Card>

## NeuphonicTTS

Initialize the Neuphonic TTS plugin.

```ts theme={null}
import { NeuphonicTTS } from '@zeroruntime/js-sdk/plugins';  // direct to the vendor, with your key
```

### Options

<ParamField path="lang_code" type="string" default="en" />

<ParamField path="voice_id" type="string | null" default="null" />

<ParamField path="speed" type="number" default="0.8" />

<ParamField path="sampling_rate" type="number" default="22050" />

<ParamField path="encoding" type="'pcm_linear' | 'pcm_mulaw'" default="pcm_linear" />

<ParamField path="base_url" type="string" default="wss://eu-west-1.api.neuphonic.com" />

<ParamField path="max_connection_age_sec" type="number" default="300" />
