Skip to main content
Use API key authentication for all operations on this page. These mutations return Content!; use tasks and results to follow their output.

Text to speech

TextToSpeech
Variables
prompt: String! supplies the speech and voiceModelId: String! selects a ready voice model. Optional emotion: Text2SpeechEmotion and speed: Text2SpeechSpeed use enums; this speed is different from the numeric voiceSpeed used below.

Talking Avatar with existing audio

Animate a source image with an accessible audio media reference:
TalkingAvatar
Variables

Lip Sync with existing audio

Provide a video source and the audio to synchronize:
LipSync
Variables

Use a script instead of existing audio

Talking Avatar and Lip Sync support script synthesis with a selected voice. Request a duration quote for the exact script and speed before submission:
QuoteAvatarScript
Variables
Submit the avatar or lip-sync mutation with the same script and speed, a ready voice model, and the returned id as voiceScriptQuoteId. Omit existing-audio inputs when choosing script synthesis. For example, the variables for TalkingAvatar become:
TalkingAvatar variables
The quote estimates speech duration; it is not generation completion or a payment receipt. If the script or speed changes or the quote expires, obtain a matching quote. When voiceScriptQuoteId is omitted, the generation flow calculates a quote during submission.

Shared avatar and lip-sync metadata

Both operations use SimpleAudio2VideoContentMetadata: Ordinary image to video and Extend place dialogue in prompt text. Their input contracts differ from the script synthesis contract on this page.