Subtitles to speech (video voiceover / dubbing)
srt_to_speechCreate ONE MP3 that follows a subtitle timeline: every cue starts at its timestamp and speech speed auto-fits the cue duration. Use for video voiceover, dubbing translated subtitles, YouTube localization, tutorials and any edit where audio must line up with existing video. Pass either raw srt (SRT or WebVTT text) or segments with start_ms/end_ms. For several speakers set speaker_voices and prefix cue text with '[Name]' or 'Name:'. The resulting MP3 starts at 00:00 of the video, so it can be muxed directly with ffmpeg (commands are returned). Consumes credits.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| srt | No | Full SRT or WebVTT content. | |
| voice | No | Default voice token for cues without a speaker/voice. | |
| segments | No | Alternative to srt: timed segments. | |
| wait_seconds | No | Seconds the server waits for the audio before returning. If the job is still PENDING, call get_job_status later with the returned job_id. | |
| speaker_voices | No | Map speaker name -> voice token, e.g. {"Host": "v1:...", "Guest": "v1:..."}. | |
| max_speech_rate | No | Highest auto-fit speed when a cue is too short for its text. | |
| min_speech_rate | No | Lowest auto-fit speed. Set min = max for a fixed speed. |