falText to speechComing soon
fal-ai/maya/batch
fal-ai/maya/batch 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 |
|---|---|---|---|
texts required | list | — | List of texts to synthesize into speech. You can embed emotion tags in each text using the format <emotion_name>. |
prompts required | list | — | List of voice descriptions for each text. Must match the length of texts list. Each describes the voice/character attributes. |
temperature | number 0 to 2 | 0.4 | Sampling temperature for all generations. |
top_p | number 0 to 1 | 0.9 | Nucleus sampling parameter for all generations. |
max_tokens | number (whole) 28 to 4000 | 2000 | Maximum SNAC tokens per generation. |
repetition_penalty | number 1 to 2 | 1.1 | Repetition penalty for all generations. |
sample_rate | one of 48 kHz, 24 kHz | 48 kHz | Output audio sample rate for all generations. 48 kHz provides higher quality, 24 kHz is faster. |
output_format | one of wav, mp3 | wav | Output audio format for all generated speech files |
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/batch",
"input": {
"texts": [
"<texts>"
],
"prompts": [
"<prompts>"
]
}
}'