aeneas is a forced-alignment toolkit that estimates when known written text is spoken in a matching audio narration. Given an audio recording and a prepared transcript divided into fragments, it can produce a time-alignment map for subtitles, text highlighting or an EPUB 3 media overlay. It is not speech recognition: the words must already be supplied. For translation projects, that distinction is essential because an accurate timing map cannot correct a mistranslated sentence or infer words omitted from the transcript.
This aeneas CLI tutorial explains the execute_task command, text-fragment preparation, language parameters, audio matching, JSON sync maps, SRT and WebVTT outputs, SMIL media overlays, multilingual narration and quality assurance. It helps audiobook producers, accessibility specialists, educators and translators decide when automated alignment is appropriate and when an edit, accent, text mismatch or compatibility problem calls for manual review. It also addresses the project’s older dependency ecosystem, which must be tested carefully in modern production environments.
- Supply the exact audio rendition and an approved text transcript in the language actually narrated.
- Segment the text at a deliberate granularity: sentences, phrases or paragraphs.
- Check tool and dependency compatibility before processing an important project.
- Produce a separately named alignment map; do not overwrite the source transcript.
- Review timing near pauses, pronunciation differences, cuts, music and chapter endings.
- Validate the intended SRT, VTT or EPUB media-overlay output in its actual player.
A practical first forced-alignment task
The project’s documented entry point is the Python module aeneas.tools.execute_task. It accepts the audio path, text path, a pipe-delimited configuration string and an output path. The basic example below aligns a plain-text transcript with English narration and generates JSON; another produces SRT using subtitle-fragment input. These are examples to adapt after checking the installed documentation. aeneas has historically depended on FFmpeg, eSpeak and Python/C libraries, and its older published releases may need an isolated supported environment rather than a current system-wide Python installation.
python -m aeneas.diagnostics python -m aeneas.tools.execute_task --examples python -m aeneas.tools.execute_task narration.mp3 transcript.txt "task_language=eng|is_text_type=plain|os_task_file_format=json" alignment.json python -m aeneas.tools.execute_task narration.mp3 subtitle-fragments.txt "task_language=eng|is_text_type=subtitles|os_task_file_format=srt" aligned.srt
The configuration names indicate the spoken text language, input fragment representation and output sync-map format. They are not translation flags. For an Arabic recording, for example, the input text should reflect the actual Arabic narration rather than an English version of the same story. A bilingual editor may keep an English translation in a parallel file, but the audio aligner works best when sound and input words correspond. Retain the audio, transcript, command and output for reproducibility.
What aeneas solves—and what it does not
Forced alignment starts from a known textual sequence and estimates its time intervals within a recording. This is different from automatic speech recognition, which tries to discover words from audio, and from subtitle-to-video synchronization, which can compare patterns of speech activity without parsing the transcript. In aeneas, fragment boundaries and language configuration affect the result. A clean sync map is useful for ebook highlighting, accessible narration, course captions and research annotation, but it is not a proof that the transcript contains all spoken words.
The original aeneas documentation describes multiple sync-map formats, including JSON, SRT, VTT, SMIL, EAF and TextGrid. These outputs serve different purposes. SRT displays timed captions, SMIL links text fragments to spoken audio in media overlays, and EAF or TextGrid supports certain annotation and research workflows. Choose the format according to the receiving application and test it before investing in bulk processing.
Start with matching audio and text
Forced alignment assumes that the narration and transcript correspond closely. If a reader omits a paragraph, improvises examples or repeats a sentence, the tool may assign implausible intervals because it is trying to align a sequence that was not actually spoken. Confirm source edition and narration revision before applying any algorithm.
Worked situation: An audiobook recording uses the second edition, but the text file is from the first edition with a missing chapter opening.
Recommended action: Compare the beginnings and endings of each chapter, reconcile substantive differences and align only the verified matching text. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Distinguish alignment from transcription
aeneas estimates where supplied phrases are spoken; it does not infer an accurate transcript from sound. Treating its timestamps as evidence that all the words exist in audio is a category error. The correct editorial order is to check or correct the text first and align it second.
Worked situation: An interview transcript confidently includes a quotation the speaker never uttered, and the alignment file still contains a timestamp for that fragment.
Recommended action: Flag the transcription discrepancy and obtain source-language approval before using the timing map as a publishable caption track. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Segment according to the reading experience
An alignment task needs useful text fragments. A paragraph-sized fragment is often sufficient for synchronized ebook narration, whereas subtitles may need shorter readable units. Very small fragments can increase error sensitivity and produce awkward visual changes, even when the algorithm returns technically valid times.
Worked situation: A children’s story is divided into every individual word, causing the highlight to flicker unnaturally during narration.
Recommended action: Choose meaningful phrase or sentence units based on the delivery product and test readability with the intended audience. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Use one language of narration per alignment
The task_language setting refers to the language being aligned, which affects text-to-speech assumptions and phonetic matching. A parallel English translation is not a reliable proxy for a Spanish narration, because word order, phonetics and sentence lengths differ. Match the actual spoken language.
Worked situation: A publisher tries to align a German audiobook using the English print edition and an English language setting.
Recommended action: Prepare the approved German transcript and choose its supported language code after checking the installed aeneas configuration. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Check support for the required language
The historical project documentation lists several confirmed languages, but that is not a guarantee that every dialect, voice, script or modern environment works equally well. Pronunciation modelling and TTS resources matter, especially for mixed-language recordings. Test representative proper names and difficult phonemes early.
Worked situation: A Portuguese narrator frequently uses regional place names and English product names that the voice model pronounces differently.
Recommended action: Use a short pilot, examine the alignment around code-switching and decide whether manual intervention or another aligner is required. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Protect original transcript text
Timing software should not become an informal place to rewrite approved language content. Translation, proofreading and domain terminology need their own accountable review. A corrected transcript can be versioned for a rerun, but the original evidence must remain available.
Worked situation: A course editor shortens a safety instruction in the text file to make its alignment look cleaner.
Recommended action: Restore the authorised wording, investigate the audio/text mismatch and document any approved editorial change separately. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Prepare UTF-8 and inspect encoding
Text encodings are a frequent source of failure in multilingual command-line workflows. A script may display a replacement character while appearing otherwise valid, and a language-specific TTS engine may process the wrong glyph sequence. Encoding problems should be diagnosed before interpreting timing.
Worked situation: A Turkish narrator says a proper name correctly, but the transcript contains corrupted characters after a legacy conversion.
Recommended action: Identify the correct encoding, produce a Unicode working copy and compare key strings against the original source text. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Handle punctuation as meaning, not a timing anchor
Aeneas uses supplied text and phonetic matching processes; punctuation helps humans understand phrasing but is not reliably an audible unit. A stray comma or full stop should not be interpreted as a precise pause constraint. Conversely, excessive punctuation editing may change sentence boundaries and produce different fragments.
Worked situation: An educational transcript contains abbreviations and decimal points that a naive splitter treats as sentence endings.
Recommended action: Define fragment boundaries deliberately and review punctuation with language experts before generating timing maps. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Understand FFmpeg’s input role
aeneas works with audio formats decoded through FFmpeg/ffprobe. A technically openable file may still contain the wrong channel, alternate mix, excessive silence or an unintended commentary track. Decoding success does not establish correspondence with the transcript.
Worked situation: An MP4 course file contains a dubbed language track and the aligner processes the default original-language track.
Recommended action: Extract or select the authorised narration audio explicitly and check the recording against the transcript by ear. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Check sample rate and audio quality
Noisy, heavily compressed or very quiet recordings may affect the acoustic features used during alignment. Converting to a convenient audio format can help reproducibility, but unnecessary processing can also alter timing or damage detail. Keep the original audio and document any derivative used.
Worked situation: An archival spoken-word recording includes tape hiss and intermittent dropouts during a long sentence.
Recommended action: Create a controlled working audio copy if required, note the transformation and compare manual timing before assuming the algorithm will repair damaged speech. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Understand TTS-assisted alignment
The project describes an alignment approach that uses text-to-speech and signal features to estimate correspondence between text fragments and audio. A synthetic voice is a modelling tool, not a substitute for the reader’s actual speech. Accent, stress and unusual names may therefore increase uncertainty.
Worked situation: A narrator uses a regional accent for a personal name whose synthetic pronunciation differs substantially.
Recommended action: Review the fragment at the speech signal and accept a manual correction when acoustic evidence is ambiguous. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Account for text normalization limits
Abbreviations, numerals, acronyms and formulas can be read in many ways. An input containing ‘2027’ might be spoken as a full year or as separate digits. A phonetic alignment model may not match the intended spoken rendering. Editing the text solely for acoustic compatibility can create a mismatch with the published display text.
Worked situation: A chemistry audiobook reads ‘NaCl’ aloud as ‘sodium chloride’, while the printed text displays the formula.
Recommended action: Use a documented spoken-form alignment layer if necessary and keep the human-readable publication text unchanged unless approved. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Beware of code-switching
A narration may include English terms inside Arabic or Japanese sentences. A single TTS configuration may not model every inserted language accurately. The overall sequence can still be matched, but suspicious local timings should be treated as exceptions.
Worked situation: An engineering course narrator alternates between Mandarin explanation and English product acronyms.
Recommended action: Mark mixed-language regions for focused review; consider splitting tasks only if that preserves the correct chronological mapping. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Manage silence at the beginning
Introductory music, production logos and silent lead-ins can make the first narration fragment difficult to place. Some audio/text pairs also include untranscribed spoken introductions. Treat start and end offset estimates as hypotheses and confirm them with reliable speech events.
Worked situation: An audiobook opens with twenty seconds of music, followed by an unprinted publisher announcement.
Recommended action: Define the intended alignment scope, identify the first matching text and exclude or annotate unrelated audio according to the project brief. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Manage trailing audio and credits
When audio continues after the printed text, an aligner may stretch the final fragment or place it near unrelated speech. Credits, music and acknowledgements should be handled as explicit content rather than invisible assumptions. A sync map is only as meaningful as the scope given to it.
Worked situation: A chapter ends with one printed sentence but the narrator then reads a production credit not in the ebook.
Recommended action: Confirm the required end point and adjust the task boundaries, preserving any accessible credit information elsewhere. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Detect omissions in narrated material
An omission is a textual discrepancy, not a timing problem. When an expected phrase never occurs, forced alignment may squeeze its duration between neighbouring segments or assign it to a similar-sounding passage. Such output can look orderly until a reader follows the synchronized highlight.
Worked situation: A narrator skips the second half of a paragraph during recording, while the transcript includes it.
Recommended action: Correct or re-record the narration, or approve a specific publication exception; do not ship a fabricated timing for nonexistent speech. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Detect repetitions and corrections
A human narrator may restart a sentence or correct a mispronunciation. Which occurrence should align with the printed text depends on whether the audio will be edited. Automatically selecting the first match can produce a poor reading experience when the final approved narration uses the second take.
Worked situation: An audiobook includes ‘He stepped into—he walked into the room’ while the printed text contains only the revised phrase.
Recommended action: Confirm the final audio edit, remove discarded takes where authorised and rerun alignment on the approved master. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Work chapter by chapter
Very long recordings can increase memory demands and complicate troubleshooting when there is a local discrepancy. Dividing an audiobook into meaningful chapters makes failures easier to isolate and results easier to review. Fragment identifiers must remain stable across chapter boundaries.
Worked situation: A fifty-chapter audiobook is processed as a single monolithic task and an early mismatch shifts later fragments.
Recommended action: Prepare an inventory and run consistent per-chapter tasks, then validate the assembled publication timeline. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Understand tasks and jobs
The aeneas interface distinguishes individual tasks from jobs that contain multiple tasks. A single task pairs one audio, one text source, parameters and a sync-map output. Jobs can support chapter-level batching, but they do not remove the need to validate each chapter or preserve mapping information.
Worked situation: A publisher wants thirty language editions of an illustrated book, each narrated separately.
Recommended action: Create explicit task manifests for each language and audio edition, ensure reliable naming and test selected tasks before scaling. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Choose JSON for internal review
JSON sync maps can expose fragment identifiers and start/end intervals in a form suitable for inspection or downstream transformation. However a JSON file is not a user-facing subtitle by itself. A plausible timestamp sequence should be checked against the actual narration and intended fragment display.
Worked situation: A developer can parse aeneas JSON successfully, but the ebook reader highlights the wrong paragraph after a chapter break.
Recommended action: Validate the mapping between IDs, text and media references, not just JSON syntax. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Choose SRT for subtitle delivery
An SRT output is useful when you need timed text cues in a familiar interchange format. It does not guarantee appropriate line breaks, maximum reading speed, speaker identification or compatibility with all accessibility requirements. These must be edited after alignment, with the source transcript still authoritative.
Worked situation: An audio lecture yields one excessively long timed paragraph as a caption cue.
Recommended action: Review segmentation and cue duration, adapt the display text with approval and test in the actual video or audio player. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Choose WebVTT for browser contexts
WebVTT is a common web timed-text format, with a defined header, cue syntax and optional positioning features. Creating VTT through aeneas produces alignment information in the format; it does not automatically design an accessible web player or author all required caption descriptions.
Worked situation: A learning portal accepts .vtt tracks but displays nothing because the page’s language track URL points to another file.
Recommended action: Validate VTT syntax, language declaration and actual player association after generating the timed text. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Understand EPUB 3 SMIL overlays
EPUB 3 media overlays can connect sections of ebook text to timed narration. aeneas supports SMIL output in documented workflows, including settings that identify audio and XHTML page references. These references must match the packaged book; an alignment file alone is not a valid finished EPUB.
Worked situation: An accessible children’s ebook should highlight paragraphs as a voice reads them, but the SMIL references an old file name.
Recommended action: Check IDs and paths against the XHTML and audio resources, then test the completed EPUB in a compatible reader. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Preserve fragment identifiers
Fragment IDs are the link between text and audio for rich formats such as SMIL. Renumbering or merging paragraphs late in production can break media overlays even when timestamps appear correct. Decide on stable identifiers before translation, layout and alignment are finalised.
Worked situation: A publisher inserts a new chapter heading in XHTML and all subsequent numeric fragment IDs shift.
Recommended action: Use stable IDs, regenerate affected mappings deliberately and validate navigation and text highlights. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Differentiate an ebook highlight from a caption
A highlighted ebook paragraph may remain on screen while the narrator reads it, whereas a subtitle cue must often be shorter and visually concise. The same alignment information might seed both outputs, but editorial constraints differ. Do not promote one set of fragment boundaries to every medium without review.
Worked situation: A five-line paragraph highlights well in an ebook but overwhelms a small video caption area.
Recommended action: Maintain separate publication profiles for EPUB overlays and caption delivery, each with its own approval checklist. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Treat accessibility as more than synchronisation
A synchronized text highlight can improve access, but it is not equivalent to a full accessible book or video. Semantic document structure, navigation, alternate text, language metadata and sound descriptions may still be missing. Accessibility needs both a valid content model and a usable player experience.
Worked situation: An ebook has accurate read-along timing but images of scientific apparatus lack descriptions.
Recommended action: Complete a separate accessibility review of navigation, meaning, visual presentation and media controls. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Apply language review before and after alignment
A translation may be accurate in writing yet differ from the words the narrator actually chose. The final text and audio need a single agreed script. A bilingual editor can catch omissions, pronunciation problems and additions that a timing tool cannot judge.
Worked situation: An Arabic narrator changes a technical term to a regional synonym, while the printed translation retains the original term.
Recommended action: Decide whether to re-record audio or revise approved text, then rerun the alignment against matching assets. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Check complex-script text and font support
The acoustic alignment stage is independent of the font used to display a highlight or subtitle. A correct sync map can still render illegible Arabic, Indic conjuncts or East Asian punctuation on a limited reader. Do not treat timing validation as typography certification.
Worked situation: An aligned Hindi ebook displays broken letter shaping when opened on an older device.
Recommended action: Test the text with a script-capable reader and font, including mixed numerals and proper names, before publication. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Inspect short and long fragments
One-word headings and unusually long paragraphs can challenge alignment and presentation differently. A short fragment offers little acoustic information; a long one may hide local drift within an apparently acceptable interval. Balance fragment sizes according to content and target experience.
Worked situation: An illustrated textbook alternates one-word labels with dense explanatory paragraphs.
Recommended action: Use appropriate segmentation, sample both extremes and correct individual timings when automatic boundaries are unstable. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Verify start and end monotonicity
A sequence of time intervals should make sense relative to the narration. Negative or reversed intervals are obvious errors, but implausible ultra-short durations and unexplained overlaps can also make a deliverable unusable. Validation must consider intended design, not only numeric sorting.
Worked situation: A chapter’s final two phrases receive almost identical time intervals despite being spoken sequentially.
Recommended action: Inspect boundaries in audio, enforce the destination format’s timing rules and keep deliberate overlaps documented. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Check pauses and breath groups
Human narrators pause for rhythm and emphasis, while printed punctuation is only a partial guide to those pauses. Forced alignment may place fragment boundaries at acoustically convenient points that feel wrong when text highlighting jumps early or late. Use the recording as the final temporal authority.
Worked situation: A narrator pauses dramatically before the answer to a question, but the next paragraph highlights immediately.
Recommended action: Adjust the mapping with an editor so the visual experience respects intended rhythm and comprehension. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Understand the legacy support situation
The widely distributed aeneas package and documentation date from an older Python ecosystem. Historical claims about supported platforms or dependencies do not establish that installation works unchanged on a current workstation. A modern publisher should first test a disposable environment and assess maintenance and security requirements.
Worked situation: An organisation’s standard Python upgrade causes dependency compilation failures in an old aeneas deployment.
Recommended action: Pin an approved compatible environment, run diagnostics and consider alternative tools when maintaining the legacy stack would create unreasonable risk. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Avoid running untrusted job packages
Batch tasks may be bundled with manifests, media files and configuration, but a package from an unknown source should not be executed automatically on a privileged machine. File paths, scripts and media decoders introduce an attack surface. Production alignment should follow normal software and media-handling security controls.
Worked situation: A contractor supplies a ZIP job with unknown contents and asks a team to process it on a shared archive server.
Recommended action: Inspect inputs, isolate processing, limit permissions and accept only authorised media and configurations. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Protect private narration recordings
Audiobooks, interviews and educational recordings can contain personal data, confidential drafts or unreleased intellectual property. Local forced alignment can keep sensitive media within approved systems, but logs, temporary files and converted audio need the same care as source files.
Worked situation: A healthcare training interview uses named participants whose consent covers internal transcription but not public uploads.
Recommended action: Follow the data-processing brief, use approved storage and retention practices, and create anonymised test cases for troubleshooting. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Know when manual alignment is better
A three-minute clip with one disputed sentence may be faster and more reliable to correct manually than to debug a language model or legacy build. Aeneas becomes more valuable when many verified fragments need consistent timing and the audio/text relationship is strong.
Worked situation: A public-service announcement has only six lines but includes an urgent warning with a brief silence.
Recommended action: Use a human caption editor to place exact boundaries and require bilingual review of the warning. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Report uncertainty in a useful way
A deliverable should disclose the audio edition, transcript edition, fragment granularity, language setting, output format and known exceptions. Saying ‘aeneas aligned it’ hides the evidence a reviewer needs. Small discrepancies matter when captions guide safety, research or educational assessment.
Worked situation: A quality reviewer asks why a phrase highlight begins before a narrator finishes the previous sentence.
Recommended action: Attach a specific time-coded observation, describe whether it is acoustic or editorial, and record the corrective action. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Validate across the entire runtime
Checking the opening minute is insufficient for a long narration. Later chapters can contain missing paragraphs, editing splices or language switches. The sampling plan should cover the first, middle and last sections plus all known exceptions and high-risk text.
Worked situation: An audiobook’s first chapter aligns perfectly but the final chapter uses audio from a revised manuscript.
Recommended action: Run chapter-level checks, examine duration and text coverage and block release until the inconsistent chapter is repaired. Record the difference between a timing estimate and editorial approval, and keep enough evidence to reproduce the decision against the exact narration version. This is especially important when the resulting map will be reused in several languages or delivery formats.
Three end-to-end worked applications
Narrated school textbook with EPUB media overlays
A publisher produces an accessible digital textbook with thirty narrated chapters. It first finalises the XHTML structure and stable fragment identifiers, then records narration for each approved chapter. A pilot checks that reading order, print punctuation, diagrams and audio match. Each audio-text pair becomes a controlled aeneas task with an explicit language configuration, output location and source version. The resulting SMIL maps are checked against the XHTML IDs and actual audio files before EPUB packaging. A reader test confirms that highlighted text moves naturally through the chapter and that navigation, alternative text and language metadata remain usable. When a narrator omits a sentence, the team repairs or rerecords the audio rather than hiding the omission inside an artificial timing segment. The final EPUB is tested independently from the aeneas command.
Multilingual audiobook with separate narration per language
A nonprofit publishes the same public-health guidance in English, French and Arabic. Each language has its own approved script and recorded narration, because the linguistic structures and speech durations differ. The team prepares separate aeneas jobs rather than applying English timestamps across all three versions. The French recording includes unfamiliar names and the Arabic edition contains English medical abbreviations; these cases receive targeted manual inspection after alignment. The output is used for synchronized read-along text, while translations and technical terms are approved by qualified language and subject reviewers. Across editions, the files share a consistent naming and version policy but do not pretend to share identical word boundaries. All three audience experiences receive a real reader test before publication.
An interview transcript whose audio differs from the printed text
A research team receives an approved transcript and raw interview audio. The first alignment attempt shows strange zero-length and stretched fragments around minute twelve. Instead of rewriting timestamps blindly, the investigator listens and discovers that a paragraph was summarised in the transcript rather than spoken verbatim. The team decides whether its objective is a readable edited transcript or a verbatim annotation. If verbatim time alignment is required, the transcript is corrected under research protocols; if the published text is deliberately edited, it may need a different synchronization strategy or explicit nonverbatim labels. This distinction protects evidence integrity. The final mapping is accepted only for segments that actually correspond to audio, with uncertainty recorded instead of concealed.
Final release checklist
- Audio and text represent the same edition, language and order.
- Transcript completeness and terminology have been reviewed by a qualified person.
- Fragment granularity and identifiers suit the receiving product.
- Execution environment, dependencies and task parameters are recorded.
- Output map intervals are plausible and checked at beginning, middle, end and exceptions.
- Omissions, repetitions, pauses, names, formulae and code-switching are handled.
- SRT, VTT, JSON or SMIL structure passes the target format’s validation.
- EPUB media overlays reference actual XHTML IDs and audio resources when applicable.
- Playback and accessibility are approved independently from alignment generation.
Frequently asked questions
Is aeneas the same as Whisper or speech recognition?
No. aeneas aligns known text to audio; speech recognition attempts to determine text from audio. If you do not already have a reliable transcript, make or review one first. Forced alignment of a false transcript can generate plausible-looking but misleading timestamps.
Can I align an English translation to a Spanish recording?
Not reliably in the intended word-based sense. Use the text spoken in the Spanish recording and set the task language appropriately. The English translation can remain in a separate editorial layer, but a direct phonetic match requires audio and corresponding-language text.
What does task_language=eng mean?
It tells aeneas to process a task with English language assumptions. It is not a request to translate output into English. For a different spoken language, use an appropriate code supported by the installed tool and test pronunciation and text-fragment handling.
Can aeneas produce subtitles?
Its documented output formats include SRT and WebVTT among others. These are timed-text products that still need caption segmentation, readability, accessibility and player-level testing. Alignment alone does not decide which sound cues or speaker labels viewers require.
Why are EPUB 3 media overlays different from SRT?
An EPUB media overlay associates text fragments in a structured ebook with intervals in narration audio, usually through SMIL references. SRT supplies timed captions for media playback. Their alignment basis may be related, but their navigation, fragment and display requirements are different.
Why will it not install on my current Python environment?
The main aeneas distribution and its published dependency guidance originate from an older software ecosystem. Build or package incompatibilities are possible. Check diagnostics, use an isolated approved environment and evaluate current maintenance risks before planning a large production pipeline.
Will aeneas fix missing or repeated narration?
No. It can reveal suspicious alignments, but it cannot invent missing spoken words or automatically choose which repeated take is authoritative. A narrator, editor or transcript reviewer must reconcile the underlying recording and written script.
How do I know the alignment is good?
Inspect the audio/text match at multiple points, including tricky pronunciation, silence, boundaries and exceptions. Validate output structure and test the result in its intended EPUB, web or media player. Document which checks passed and which still require human judgement.
