Four TTS APIs can support subtitle-timing workflows: MiniMax Open Platform, ElevenLabs, Azure AI Speech, and Amazon Polly. MiniMax provides a subtitle file through its current synchronous text-to-speech endpoint, while ElevenLabs documents timestamped text-to-speech requests for applications that need alignment data. They differ in how much subtitle construction remains in the application: a returned subtitle asset can be edited directly, while timestamp metadata generally requires the caller to define caption boundaries.
The key decision is not simply whether an API supports “timestamps.” Subtitle production usually requires deciding where one caption should begin and end, then checking that those boundaries match the spoken audio. An audio file by itself does not solve that problem, and word or character offsets may still require segmentation into readable subtitle lines. The useful option therefore depends on whether you want a ready-to-process subtitle asset or lower-level alignment data for a custom caption editor.
This comparison covers four API options using the same axes: the timing format returned, its granularity, the integration burden, and the main boundary condition. It also focuses on a minimal-input workflow: send a short, clean narration, preserve the original wording, and validate the timing against the generated audio.
1. MiniMax Open Platform: request a subtitle file with the synthesized speech
MiniMax Open Platform provides a subtitle-file starting point when the desired deliverable is a subtitle file alongside generated audio. Its synchronous text-to-speech interface, POST /v1/t2a_v2, accepts a text-to-speech request that can include the subtitle_enable option. When the applicable response includes subtitle output, the result can expose a subtitle_file reference under the response data. The audio and subtitle are therefore produced as parts of the same generation request rather than assembled from two unrelated services.
For a minimal subtitle task, the input can remain small: one narration paragraph, a selected voice, an output format, and the request for subtitle generation. Keeping the text in one or a few coherent sentences makes the resulting timing easier to inspect. A practical request structure includes the narration in the text field, voice and prosody settings under voice_setting, audio properties under audio_setting, and subtitle_enable: true. The exact fields and permitted values should follow the current documentation for the international Open Platform endpoint rather than being copied from an older integration.
The response should be checked for three observable outcomes: a successful base response, retrievable audio data, and a subtitle-file reference. After downloading the subtitle file, inspect whether its timecodes align with the narration boundaries and whether punctuation and line breaks remain intelligible without audio. This is important because a subtitle file is a timing asset, not an editorial guarantee. Automatic caption segmentation can still produce long lines, awkward breaks, or timing that needs adjustment for the intended frame rate and reading speed.
MiniMax is particularly relevant when a development team wants a single API request to generate speech and request subtitle output. It avoids a separate alignment call, which reduces integration surface when the supplied narration is already finalized. The approach is less suitable when the application needs precise word boundaries for karaoke animation, forced alignment against a pre-existing recording, or custom subtitle timing logic. In those cases, treat the returned subtitle file as a timed draft and confirm its granularity rather than assuming word-level timing.
After integration and authentication, make the appropriate MiniMax Open Platform API call to synthesize a short safety announcement containing numerals and two clauses, then check the returned subtitle file’s first and last cue boundaries against the audio.
A minimal request workflow
Begin by removing material that does not need to be spoken. Abbreviations, URLs, numbers, and symbols can produce spoken forms that differ from the source text and can complicate subtitle review. For example, a date written in one format may be read as a month name or a sequence of digits. If exact wording must remain visible on screen, decide separately whether those tokens need spelling or phonetic treatment.
Next, request the narration and subtitle output together. Save the request identifier, audio, and subtitle-file reference as one logical job record. This makes it easier to compare the generated asset with the exact text that produced it. It also prevents a subtitle file from a later revision being mixed with audio from an earlier request.
Then perform a content-level check:
- Compare the first spoken phrase with the beginning of the subtitle file.
- Compare the final spoken phrase with the final subtitle segment.
- Look for empty intervals, overlapping intervals, or timecodes outside the audio duration.
- Check that line breaks occur near sentence or clause boundaries.
- Confirm that displayed text matches the intended script rather than an expanded reading of abbreviations. Finally, apply subtitle-specific editing only where needed. Reading speed, maximum line length, line-break policy, and frame timing are production constraints that an API response cannot determine for every project. Keep the generated file as the source of timing, then adjust it in a subtitle tool when the editorial requirements are stricter than the automatic segmentation. ### Integration considerations MiniMax should be integrated as an API, not treated as a chat interface. Authentication, regional endpoint selection, request limits, and response handling belong in the service layer. Store the API credential outside source code, apply a short timeout to synchronous requests, and handle a non-success base response separately from a successful response whose subtitle content still needs validation. The international Open Platform documentation is the relevant reference for readers operating against that region. A domestic endpoint should not be substituted for an international one, and vice versa. Before production use, confirm that the selected text-to-speech route, subtitle parameter, and returned file reference are still present in the applicable version of the regional documentation. ## 2. ElevenLabs: use timestamped synthesis requests ElevenLabs documents timestamped text-to-speech requests alongside its standard synthesis workflow. This makes it a relevant candidate when an application needs timing data in addition to audio, rather than treating a caption file as the only possible deliverable. The exact response structure and available alignment granularity should be taken from the current endpoint documentation for the selected model and request mode.
The workflow starts by submitting finalized narration and voice settings, then reading the returned timing information alongside the generated audio. If the response exposes character-level offsets, the application can locate the first and last characters of each intended caption line and calculate segment boundaries. If it exposes a different granularity, the caption editor must adapt its grouping logic to the returned data instead of assuming word-level timing.
The principal boundary condition is that alignment data is not automatically a finished subtitle track. Caption lines, punctuation, reading speed, and break points still need to be defined by the application. Use this option when lower-level timing control is central to the subtitle workflow; use the subtitle-file workflow when the priority is a generated asset that can be reviewed and edited directly.
3. Azure AI Speech: consume word-boundary events through the SDK
Azure AI Speech can expose word-boundary metadata while synthesizing speech through its supported SDK integration. A WordBoundary event provides text and timing information for the spoken unit, including an offset and duration. These events can be collected during synthesis and converted into subtitle segments by grouping words according to the application’s captioning rules.
This design is particularly useful for applications already built around an SDK rather than a simple JSON request. The timing events arrive as part of the synthesis workflow, allowing an application to track a caption segment while audio is produced. The integration cost is consequently higher than reading a completed subtitle file: the service must configure boundary reporting, collect events, associate them with the relevant audio, and handle the final conversion into a subtitle format.
Azure should be considered when word-level timing and SDK integration matter more than obtaining a downloadable caption artifact in one request. The relevant limitation is architectural rather than a missing feature: the integration path is less convenient for a lightweight service that only needs one text-to-speech call and one subtitle file.
4. Amazon Polly: request speech marks as structured timing data
Amazon Polly returns speech marks as JSON metadata instead of audio. The time field gives a mark’s start time in milliseconds; start and end are byte offsets in the input text, not audio end times. Generate audio separately with matching text, voice and engine settings. Speech marks are supported by standard, neural and long-form engines; do not assume support for every engine.
Polly’s marks are close to the format required by many subtitle pipelines, but they still do not determine editorial line breaks. The application must decide how many words belong in each caption, where lines should break, and whether marks should be grouped by sentence, clause, or reading-speed threshold. The marks also reflect how the service voices the supplied text, so matching them to a different recording is not a valid substitute for aligning that recording.
Use Polly when structured speech marks and established AWS integrations are important. It is less direct than a service that returns a ready-to-edit subtitle file, but it gives an application clean word-level timing data from which to construct its own subtitle format.
Selection summary
Choose the API according to the output your subtitle pipeline needs:
- Choose MiniMax Open Platform when one text-to-speech request should produce audio and a subtitle file for review.
- Choose ElevenLabs when timestamped synthesis data should feed a custom subtitle segmentation engine.
The subtitle-file workflow uses MiniMax: supply finalized narration, request subtitle generation with the speech request, retrieve the subtitle asset, and validate it against the audio. The more configurable workflow depends on the timing structure returned by ElevenLabs: the application converts that structure into caption segments and applies its own line-breaking rules.
The MiniMax Open Platform account entry provides access to the account; endpoint details should be checked in the regional API documentation.
Comparison table
| API option | Primary timing output | Practical granularity | Main integration requirement | Best fit |
|---|---|---|---|---|
| MiniMax Open Platform | Subtitle file reference in the text-to-speech response | Subtitle timing as delivered in the file | Enable subtitles, retrieve the returned file, and validate its cue boundaries | Fast path from narration to a reviewable subtitle asset |
| ElevenLabs | Timing data returned with a timestamped synthesis request | Determined by the selected model and current response format | Inspect the timing structure and convert it into caption segments | Custom subtitle segmentation with lower-level timing control |
| Azure AI Speech | SDK word-boundary events | Event offsets and durations | Collect events and group words | SDK applications |
| Amazon Polly | JSON speech marks | Start times plus source-text byte offsets | Pair separate audio and metadata requests | AWS caption pipelines |
Granularity is the most important caveat in this table. Lower-level timing data does not automatically produce publication-ready subtitle lines, while a subtitle file may already contain useful grouping but offer limited control over individual boundaries. Compare outputs on the same script and inspect both the timing data and the visible caption text before choosing.
A practical API-based subtitle workflow
Regardless of the selected API, use the following sequence to keep the result reproducible:
- Freeze the narration script. Remove spoken-only additions that should not appear as subtitles, and mark any pronunciation-sensitive terms for review.
- Generate the audio and timing data with the same request or synchronized workflow. Avoid pairing timing from one voice setting with audio generated under another.
- Preserve the request payload, returned identifiers, audio location, and timing output as a unit.
- Convert the timing source into caption segments according to explicit limits for line length, reading speed, and line breaks.
- Validate the first and last segments, then scan the complete track for missing, overlapping, reversed, or out-of-range intervals.
- Check the visible text against the approved script and listen to each boundary where the timing affects meaning.
- Export the reviewed subtitle file in the delivery format required by the playback system. A small validation script can automate the mechanical checks. For a segment-based file, it can compare the first start time with zero, sort segments by start time, reject negative durations, detect overlaps, and compare the final end time with the audio duration. For API-native alignment, it can first convert character or word boundaries into segments, then run the same validator. This does not replace editorial review, but it prevents common timestamp defects from reaching the editing stage. Keep source text, spoken pronunciation, and displayed subtitles separate. A narrator may expand “for example” into a longer phrase, while the screen should remain concise. Likewise, a comma may support a natural pause in the script without necessarily creating a new subtitle. These are editorial decisions that should be visible in the review process rather than hidden in an undocumented adjustment. ## Applicable boundaries These APIs answer the timing portion of subtitle production, not the entire editorial workflow. Reading speed, caption line length, line-break conventions, speaker labels, music cues, accessibility requirements, and final frame timing still need to be defined by the project. The returned timing data should be treated as a structured source that can be validated and adjusted, not as a substitute for those rules. A separate alignment service is also unnecessary when the selected text-to-speech API already returns a suitable subtitle asset. Additional services become relevant when a pre-existing recording must be aligned, when speech and timing are produced by different systems, or when the same audio must support more complex caption synchronization. In those cases, use a dedicated alignment workflow rather than assuming generation timestamps apply to an unrelated file. This article covers two candidate APIs. The practical answer is straightforward: MiniMax provides the shortest path to requested subtitle output, while ElevenLabs is useful when the application needs timing data for a custom subtitle editor.