Generate voice

Text-to-speech. Put only the words to speak in text (all of it is read aloud) and how to say them in style_instruction. Model settings (voice, speaker, language) go in parameters; parameters.prompt/text are refused. Uses default production if production_id omitted.

post/api/agents/generate/voice

Request

  • Base URL: https://splice.film.fun
  • URL: https://splice.film.fun/api/agents/generate/voice
  • Auth: API key in header x-api-key

Request body

production_idstring
textstring required

The words to speak, exactly as they should be heard. Never put directions here.

style_instructionstring

How to say the words, never spoken: tone, emotion, accent, pace (e.g. "warm, calm, slow, Australian accent"). googleGeminiFlashTts and qwen3tts; other models ignore it with a warning.

modelIdstring
parametersobject

Model settings, e.g. {voice, language} for Gemini or {speaker, mode} for Qwen 3 TTS.

Response

Generated

production_item_idstring required

Changes

No recorded changes to this operation across all 1 revision of this API.