> ## 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

> Python 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.

Slot: tts. Route: plugins -- direct to the vendor, with NEUPHONIC\_API\_KEY
or an explicit api\_key.

```python theme={null}
from zeroruntime.plugins import NeuphonicTTS  # direct to the vendor, with your key
```

### Fields

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

<ParamField path="voice_id" type="Optional[str]" default="None" />

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

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

<ParamField path="encoding" type="Literal['pcm_linear', 'pcm_mulaw']" default="pcm_linear" />

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

<ParamField path="max_connection_age_sec" type="float" default="300.0" />
