← All models
Maya
maya-stream
Text to Speechby maya
Maya1 is a state-of-the-art speech model by Maya Research for expressive voice generation, built to capture real human emotion and precise voice design.
Pricing
- Price
- 0.250 cr / second
Prices in credits (1 credit = $0.01).
Data schema
Input
| Field | Type | Description |
|---|---|---|
| textrequired | string | The text to synthesize into speech. You can embed emotion tags anywhere in the text using the format <emotion_name>. Available emotions: laugh, laugh_harder, sigh, chuckle, gasp, angry, excited, whisper, cry, scream, sing, snort, exhale, gulp, giggle, sarcastic, curious. Example: 'Hello world! <exci… |
| top_p | number | Nucleus sampling parameter. Controls diversity of token selection. |
| promptrequired | string | Description of the voice/character. Includes attributes like age, accent, pitch, timbre, pacing, tone, and intensity. See examples for format. |
| max_tokens | integer | Maximum number of SNAC tokens to generate (7 tokens per frame). Controls maximum audio length. |
| sample_rate | stringenum: 48 kHz, 24 kHz | Output audio sample rate. 48 kHz uses upsampling for higher quality audio, 24 kHz is native SNAC output (faster, lower latency). |
| temperature | number | Sampling temperature. Lower values (0.2-0.5) produce more stable/consistent audio. Higher values add variation. |
| output_format | stringenum: mp3, wav, pcm | Output audio format. 'mp3' for browser-playable audio, 'wav' for uncompressed audio, 'pcm' for raw PCM (lowest latency, requires client-side decoding). |
| repetition_penalty | number | Penalty for repeating tokens. Higher values reduce repetition artifacts. |
