falText to speechComing soon
fal-ai/maya/stream
fal-ai/maya/stream is a text to speech tool from fal that runs in the background and returns audio. Coming soon: listed with its price, not yet open to runs.
This tool is listed but not yet available to run.
Price pendingPricing
Price pending.
Limits
- Runs
- In the background
- Returns
- audio
- Longest queue wait
- 3600s
- Run deadline
- 1800s
- Largest inline input
- 1024 KB
- Largest input file
- 500 MB
- Largest output
- 4768 MB
- Outputs per run
- 16
Input
| Field | Kind | Default | Description |
|---|---|---|---|
text required | text | — | 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! <excited> This is amazing!' or 'I can't believe this <sigh> happened again.' |
prompt required | text | — | Description of the voice/character. Includes attributes like age, accent, pitch, timbre, pacing, tone, and intensity. See examples for format. |
temperature | number 0 to 2 | 0.4 | Sampling temperature. Lower values (0.2-0.5) produce more stable/consistent audio. Higher values add variation. |
top_p | number 0 to 1 | 0.9 | Nucleus sampling parameter. Controls diversity of token selection. |
max_tokens | number (whole) 28 to 4000 | 2000 | Maximum number of SNAC tokens to generate (7 tokens per frame). Controls maximum audio length. |
repetition_penalty | number 1 to 2 | 1.1 | Penalty for repeating tokens. Higher values reduce repetition artifacts. |
sample_rate | one of 48 kHz, 24 kHz | 48 kHz | Output audio sample rate. 48 kHz provides higher quality audio, 24 kHz is faster. |
output_format | one of wav, mp3 | wav | Output audio format for the generated speech |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "fal",
"model": "fal-ai/maya/stream",
"input": {
"text": "Hello world! This is a test of the Maya-1-Voice text-to-speech system.",
"prompt": "Realistic male voice in the 30s age with american accent. Normal pitch, warm timbre, conversational pacing, neutral tone delivery at med intensity."
}
}'