GET
/v1/schemas/fal/audio/fal-ai/index-tts-2/text-to-speech
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source tracec2adf7b86209b0ee3554edd4be9aa3d3e51644c50a77b6ee659733e0d498f054{
"fetchedAt": 1791522002,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
8 properties · 2 required · 1 $defs| property | type | description | constraints |
|---|---|---|---|
| audio_url* | string | The audio file to generate the speech from. | |
| prompt* | string | The speech prompt to generate | |
| emotional_audio_url | string | The emotional reference audio file to extract the style from. | nullable |
| enable_safety_checker | boolean | Authorized callers may set false to request relaxed screening. | default: true |
| should_use_prompt_for_emotion | boolean | Whether to use the `prompt` to calculate emotional strengths, if enabled it will overwrite the `emotional_strengths` values. If `emotion_prompt` is provided, it will be used to instead of `prompt` to extract the emotional style. | nullable |
| emotion_prompt | string | The emotional prompt to influence the emotional style. Must be used together with should_use_prompt_for_emotion. | nullable |
| emotional_strengths | EmotionalStrengths | The strengths of individual emotions for fine-grained control. | nullable |
| strength | number | The strength of the emotional style transfer. Higher values result in stronger emotional influence. | 0 ≤ n ≤ 1 · default: 1 |
Types
1 $defsEmotionalStrengthsobject
| happy | number | Strength of happiness emotion | 0 ≤ n ≤ 1 · default: 0 |
| sad | number | Strength of sadness emotion | 0 ≤ n ≤ 1 · default: 0 |
| disgusted | number | Strength of disgust emotion | 0 ≤ n ≤ 1 · default: 0 |
| afraid | number | Strength of fear emotion | 0 ≤ n ≤ 1 · default: 0 |
| surprised | number | Strength of surprise emotion | 0 ≤ n ≤ 1 · default: 0 |
| melancholic | number | Strength of melancholic emotion | 0 ≤ n ≤ 1 · default: 0 |
| angry | number | Strength of anger emotion | 0 ≤ n ≤ 1 · default: 0 |
| calm | number | Strength of calm emotion | 0 ≤ n ≤ 1 · default: 0 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"fal-ai/index-tts-2/text-to-speech","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}