How UrduSpeech turns spoken Urdu into publishable captions
A transparent technical look at our media validation, Urdu speech recognition, conservative AI correction guardrails, non-overlapping subtitle timing, and Noto Nastaliq video rendering pipeline.
1. Container inspection and speech-track selection
Before any transcription minutes are committed, Studio runs an automated media inspection on your uploaded MP3, FLAC, PCM WAV, AAC M4A, MP4, or MOV file. Validation verifies the real container format, audio stream presence, duration against your plan ceiling, and the 2 GiB minus one byte scanning limit.
If an uploaded video contains multiple audio streams (common on dual-mic interviews or screen recordings), Studio pauses at the Media check step and asks you to choose the exact spoken-Urdu track. Minutes are committed only once canonical transcription finishes; failures prior to commit release the reserved allowance automatically.
2. Canonical Urdu speech recognition and script generation
Speech recognition operates on the extracted spoken audio stream (not visual frames or existing soft subtitles) to create a canonical Urdu transcript anchored to phrase timestamps. From that canonical text, Studio generates whichever output you requested:
- Urdu script: Right-to-left Urdu Unicode text ready for Nastaliq rendering.
- Roman Urdu: Left-to-right Latin transliteration preserving original Urdu words and cadence.
- English: Meaning-focused English translation anchored to the canonical Urdu phrases.
- Urdu + English: Stacked two-line bilingual output ordered Urdu-first or English-first.
3. Conservative AI text correction and protected tokens
Generic LLM rewrites frequently corrupt transcripts by hallucinating words, changing spoken numbers, or rewriting dialect into stiff formal prose. UrduSpeech’s optional AI text correction stage follows strict conservation rules:
- Safe automatic normalization: Standardizes equivalent Arabic vs Urdu Unicode code points (such as Urdu ک and ی) and applies safe punctuation.
- Protected token guardrails: Numeric values, currencies, dates, URLs, email addresses, hashtags, and
@handlesare protected against silent alteration. - Explicit review cards: Uncertain wording proposals are surfaced in Studio with
beforeandaftertext plus a brief reason so you can accept or reject each change individually, or disable AI text correction altogether at upload time.
4. Non-overlapping timing alignment and track versioning
Timed caption cues are aligned to the recording timeline and validated server-side so start and end times remain strictly ordered, non-overlapping, and within the media duration. Inside Studio, you attach your original local recording for zero-upload playback review, edit text or timestamps in seconds, and save a versioned track snapshot before exporting UTF-8 TXT, SRT, WebVTT, or video.
5. Noto Nastaliq safe-area rendering and HDR tone-mapping
Burned-in captioned MP4 videos are rendered in cloud media workers using Noto Nastaliq Urdu for Urdu script and Inter for Latin characters and digits, optically sized so mixed Urdu-English cues remain balanced. Every cue is measured against verified safe-area margins so tall Nastaliq ascenders and lower dots never clip at frame edges across 16:9, 9:16, and 1:1 aspect ratios.
Properly tagged BT.2020 HLG and PQ HDR phone videos are tone-mapped to standard 8-bit SDR BT.709 H.264 MP4 with AAC audio so playback looks consistent across mobile social feeds. Rendered videos respect plan height tiers (720p watermarked on Free; 1080p unwatermarked on paid plans) and the 256 MiB operational safety limit.
6. Honest boundaries and creator review checklist
No automated speech pipeline is error-free. We do not publish marketing accuracy percentages because real-world accuracy depends heavily on microphone quality, room echo, overlapping voices, and background music. UrduSpeech currently does not perform speaker diarization, OCR of visual slides, live microphone dictation, or synthetic voice dubbing. Before publishing, always review proper names, numbers, dates, and mixed-language idioms against your original recording.