Skip to content

Documentation / RSML

Rich Speech Markup Language

A structured representation for time-aligned rich speech transcription.

Why RSML?

RSML is a markup schema designed to capture how people actually speak — disfluencies, paralinguistic signals, prosody, accents, and code-switching — without losing standard written readability.

Standard ASR transcripts sanitize speech. They strip hesitations and laughter, standardize dialectal variations, and erase false starts. While that yields clean sentences for simple NLP, it discards critical acoustic, diagnostic, and conversational information.

Audio files preserve everything, but you cannot easily index, parse, search, or train standard text-token models directly on audio without structured alignment. RSML bridges this gap. It is a rich transcription schema that is:

  • Near-lossless: Preserves nuanced speech characteristics without throwing away the raw utterance details.
  • Language and script agnostic: Works across multilingual settings, code-mixed speech, and non-Latin scripts (Devanagari, Telugu, Arabic, etc.).
  • Minimal and explicit: Phenomena are marked directly rather than inferred from ad-hoc formatting, keeping cognitive load low for human annotators.
  • Dual-read recoverable: Both the pure verbatim transcript and the canonical normalized text can be deterministically extracted from a single RSML file.

Core concept: verbatim vs. normalized

Every RSML document embeds two parallel views of the speech stream:

Verbatim reading

Captures speech exactly as produced: disfluencies, phonetic slips, repetitions, dialect variants, and local pronunciations, with zero editorial cleanup.

Normalized reading

The cleaned, canonical reading of the same utterance: corrected spelling, proper native-script forms of code-mixed vocabulary, canonical entity casing, and dropped filler words.

For example, when a speaker mispronounces a word or switches languages mid-sentence:

RSML representation
क्या आप !en[लोकेशन](location) पर पहुँच गए? उसने [सक्रीन](स्क्रीन) तोड़ दी।
Verbatim extractor yields
क्या आप लोकेशन पर पहुँच गए? उसने सक्रीन तोड़ दी।
Normalized extractor yields
क्या आप location पर पहुँच गए? उसने स्क्रीन तोड़ दी।

Tag Syntax & Structure

RSML tags fall into two structural models.

Isolated tags

Self-contained single tokens inserted at a specific point in the transcript. They take no closing tag and do not wrap words. They are used for momentary events like hesitations, articulatory stutter blocks, pauses, and standalone sounds.

Isolated tag syntax
@tag-name

Example:
मुझे @umm लगता है कि @short-pause यह सही है।

Span-based tags

Span tags cover one or more words. They take one of two forms depending on whether they mark acoustic/behavioral boundaries or lexical mappings.

Start / end pairs

Used for disfluencies (fillers, repetitions, speech repairs), prosodic contours, and paralinguistic stretches.

@phenomenon-start ... @phenomenon-end

Bracket constructs

Used when the span requires both a verbatim surface form and a normalized target form.

PREFIX[verbatim](normalized)

Contiguous spans rule: If the same phenomenon covers multiple consecutive words, tag the entire multi-word stretch as a single span once. Never tag consecutive words individually.

Quick Reference

Complete catalog of RSML tags.

RSML tag catalog
CategoryTag / PatternDescription
Hesitations@umm @uhh @hmm @ugh @huh @tsk @uh-huh @ehh @ooh @uhh-oh @ohh @hoNon-lexical vocalizations placed in-situ.
Stutter Block@stutter-blockSilent articulatory block before a word/syllable.
Pauses@short-pause@long-pauseNon-articulatory silence or thinking pause.
Unintelligible@unintelligibleInaudible or indecipherable audio segment.
Discourse Fillers@filler-start ... @filler-endLexical fillers without propositional meaning.
Repetitions@repetition-start ... @repetition-endRepeated utterance words (wraps discarded repeat only).
Broken Words@broken-word-start ... @broken-word-endIncomplete word cut off mid-articulation.
Speech Repairs@repair-start reparandum - repair @repair-endSelf-correction with optional hyphen separator.
False Starts@false-start-start ... @false-start-endFully abandoned thought restarted from scratch.
Prolongations@prolongation-start ... @prolongation-endElongated syllables or phonemes transcribed directly.
Mispronunciations[verbatim](normalized)Word spoken non-standardly (bare brackets, no prefix).
Code-mixing!lang[verbatim](normalized)![verbatim](normalized)Cross-language lexical insertions (e.g. !en).
Named Entities#TYPE[verbatim](normalized)#[verbatim](normalized)Entity mentions classified into 18 standard types.
Accent$accent-name[verbatim](normalized)$[verbatim](normalized)Phonological accent variation.
Dialect$$dialect-name[verbatim](normalized)$$[verbatim](normalized)Regional lexical or grammatical variations.
Domain Terms!!domain-name[verbatim](normalized)!![verbatim](normalized)Specialized jargon or technical terms.
Isolated Paralinguistics@laughter @cry @hum @breathe @sniff @nose-blowing @cough @sneeze @throat-clearing @yawn @eating-sounds @snore @groan @sighNon-verbal vocal sounds without speech words.
Span Paralinguistics@crying-start/-end @yelling-start/-end @laughing-start/-end @singing-start/-end @humming-start/-end @whistling-start/-end @whispering-start/-endSpeech articulated while performing a vocal behavior.
Prosody@emphasis-start/-end@falling-pitch-start/-end@raising-pitch-start/-end@fast-speech-start/-end@slow-speech-start/-end@high-pitch-start/-end@low-pitch-start/-endPitch contours, rate variations, and stress.
Speakers&s1-start/-end ... &sn-start/-endSpeaker turns in overlapping multi-speaker speech.

Annotation Guide

How to apply isolated elements, disfluency and acoustic spans, and lexical bracket annotations.

1. Isolated elements

Standalone acoustic events occurring at discrete points.

Hesitations

Non-lexical vocalizations with no propositional content. Insert the tag in place of the sound. Do not also transcribe the sound as text.

  • @umm
  • @uhh
  • @hmm
  • @ugh
  • @huh
  • @tsk
  • @uh-huh
  • @ehh
  • @ooh
  • @uhh-oh
  • @ohh
  • @ho
Hindi:  मुझे @umm लगता है कि यह सही है।
Telugu: నాకు @uhh అనిపిస్తుంది ఇది సరైనది అని।

Stutter blocks & pauses

  • @stutter-block: A silent articulatory block before a word or syllable with no audible sound. Place directly before the blocked word.
  • @short-pause / @long-pause: Silence or thinking pauses that are not articulatory blocks.
Hindi (Stutter): मैं @stutter-block जाना चाहता हूँ।
Hindi (Pause):   मुझे नहीं पता @short-pause शायद कल आऊंगा।
Telugu (Pause):  నాకు తెలియదు @long-pause బహుశా రేపు వస్తాను।

Unintelligible speech & isolated paralinguistics

Use @unintelligible once per unrecoverable stretch, regardless of duration. For vocal non-speech sounds that occur without accompanying words, use isolated paralinguistic tags:

  • @laughter
  • @cry
  • @hum
  • @breathe
  • @sniff
  • @nose-blowing
  • @cough
  • @sneeze
  • @throat-clearing
  • @yawn
  • @eating-sounds
  • @snore
  • @groan
  • @sigh
Hindi (Unintelligible): मुझे लगता है @unintelligible कल आऊंगा।
Hindi (Paralinguistic): वह @cough करने लगा।
Telugu:                 అతను @cough చేయడం మొదలుపెట్టాడు।

2. Disfluencies & acoustic spans

Spans wrapped using -start and -end boundary tokens.

Discourse fillers

Discourse words/phrases with no propositional content. The text stays inside the span and drops out in the normalized view.

Hindi:
मैं @filler-start मतलब @filler-end कल आऊंगा।

Telugu:
నేను @filler-start ఏమో @filler-end రేపు వస్తాను।

Repetitions

Tag only the discarded repeat(s), not the final kept instance.

Hindi:
@repetition-start मैं @repetition-end मैं जा रहा हूँ।

Telugu:
@repetition-start నేను @repetition-end నేను వెళ్తున్నాను।

Broken words

Cut off mid-articulation. Transcribe the audible phonetic fragment, not the intended full word.

Hindi:
मैं @broken-word-start ज @broken-word-end जाना चाहता हूँ।

Telugu:
నేను @broken-word-start వె @broken-word-end వెళ్ళాలి అనుకుంటున్నాను।

Prolongations

A sound elongated within a word. Transcribe the elongation orthographically in the span.

Hindi:
मुझे @prolongation-start बहुत @prolongation-end पसंद है।

Telugu:
నాకు @prolongation-start చాలా @prolongation-end ఇష్టం।

Speech repairs & false starts

For self-repairs, wrap both the abandoned utterance (reparandum) and the correction (repair), separated by a hyphen -. If the reparandum cannot be cleanly distinguished, omit the hyphen and wrap the repair. False starts wrap completely abandoned sentences.

Speech repairs and false starts
# Self-repair syntax: @repair-start <reparandum> - <repair> @repair-end
Hindi:  मैं @repair-start दिल्ली मतलब - मुंबई @repair-end गया।
Telugu: నేను @repair-start ఢిల్లీ కాదు - ముంబై @repair-end వెళ్ళాను।

# False start: abandoned syntactic path
Hindi:  @false-start-start हमें वहाँ जाना @false-start-end चलो घर पर ही रहते हैं।
Telugu: @false-start-start మనం అక్కడికి వెళ్దాం @false-start-end ఇలా ఇంట్లోనే ఉందాం।

Span paralinguistics

Used when words are articulated through the vocal action (e.g., laughing while speaking).

  • @crying
  • @yelling
  • @laughing
  • @singing
  • @humming
  • @whistling
  • @whispering
Hindi:
वह @laughing-start बहुत मज़ेदार है @laughing-end बोला।

Prosody & pitch

Wraps words carrying stress/emphasis, pitch contours, or changes in speech rate.

  • @emphasis
  • @raising-pitch
  • @falling-pitch
  • @fast-speech
  • @slow-speech
  • @high-pitch
  • @low-pitch
Hindi:
यह @emphasis-start सच में @emphasis-end अच्छा है।

Speaker turns in overlapping speech

Use &s1-start ... &s1-end only when transcribing multi-speaker overlap in a continuous stream. Clean non-overlapping dialogues do not need span tags; use conventional line breaks with speaker labels instead.

Hindi:  &s1-start आप कैसे हैं? &s1-end &s2-start मैं ठीक हूँ। &s2-end
Telugu: &s1-start మీరు ఎలా ఉన్నారు? &s1-end &s2-start నేను బాగున్నాను। &s2-end

3. Lexical annotations (bracket syntax)

Dual-surface tags providing verbatim pronunciation alongside normalized forms.

Mispronunciations

[verbatim](normalized)

Carries no prefix symbol. Used whenever a speaker misarticulates a word that is otherwise standard vocabulary.

Hindi:  उसने [सक्रीन](स्क्रीन) तोड़ दी।
Telugu: అతను [స్క్రీను](స్క్రీన్) పగలగొట్టాడు।

Code-mixing

!lang[verbatim](normalized)

Marks genuine code-mixing where words from another language retain their source phonology/morphology. If a foreign word has been phonetically or morphologically assimilated into the native lexicon, it is considered a loan word and left untagged.

  • Verbatim: As spoken, transcribed in the surrounding conversation's script.
  • Normalized: The canonical spelling rendered in the foreign word's standard native script.
  • Agglutinative suffixes: If a native grammatical suffix attaches to a code-mixed stem (common in Dravidian languages like Telugu), include the suffix inside the verbatim tag.
  • Generic fallback: If the foreign language code cannot be identified, use bare ![verbatim](normalized).
Hindi:  क्या आप !en[लोकेशन](location) पर पहुँच गए?
Telugu: అతను !en[కార్](car)లో !en[టైమ్](time)కి వచ్చాడు।

Named entities

#TYPE[verbatim](normalized)

Wraps named entity mentions. Verbatim stores how the name was articulated (including mispronunciations or accents), while normalized contains the canonical written entity name. Grammatical suffixes following an entity remain outside the tag.

18 standard entity types:

  • PER
  • GPE
  • FAC
  • LOC
  • ITEM
  • WOA
  • EVENT
  • SPORTS
  • ORG
  • BRAND
  • HON
  • DATETIME
  • MONEY
  • QUANT
  • NUM
  • LANG
  • LAW
  • ID
Hindi:  वे #GPE[हैदराबाद](हैदराबाद) में रहते हैं।
Telugu: అతను #ORG[ట్రిపుల్ ఐటీ](IIIT)లో #DATETIME[పంతొమ్మిదొందల తొంభై](1990)లో చేరాడు।

Accent

$accent[...]

Captures systemic regional pronunciation patterns rather than isolated slips.

Hindi:  उसने $[नईं](नहीं) कहा।
Telugu: అతను $[గాదు](కాదు) అన్నాడు।

Dialect

$$dialect[...]

Used when variation introduces distinct lexical terms or grammar rather than phonology alone.

Hindi:  वह $$bambaiya[अपुन](मैं) जा रहा है।
Telugu: అతను $$telangana[గినవడటం లేదు](వినబడటం లేదు) అన్నాడు।

Domain terms

!!domain[...]

Specialized technical or medical vocabulary.

Hindi:  उसने !!medical[इंसुलिन](insulin) ली।
Telugu: అతను !!medical[ఇన్సులిన్](insulin) తీసుకున్నాడు।

Composition Rules

Disambiguation rules when phenomena intersect.

To maintain strict parsing simplicity and prevent unmaintainable bracket spaghetti, RSML enforces precise nesting and conflict-resolution rules.

Nesting constraints

  • No nested -start/-end tags: A @repetition-start cannot contain another @repair-start. Tags of the start/end family must be flat and sequential.
  • Bracket tags inside start/end spans are valid: You can place bracket constructs (e.g., mispronunciation, code-mixing, named entities) inside a start/end span.
  • Bracket tags never nest other tags: A bracket construct can only enclose flat text. You cannot put a code-mix tag inside a named entity bracket tag.

Precedence order (multi-tag resolution)

If a single word or phrase meets the criteria for multiple bracket phenomena simultaneously, annotators and parsers must apply only the single highest-ranking tag based on this strict hierarchy, from highest to lowest:

  1. # Named Entities
  2. !! Domain Terms
  3. ! Code-mixing
  4. $$ Dialect
  5. $ Accent
  6. [Mispronunciation]

For example: if a person mispronounces an English technical term in an Indian language conversation, you do not nest mispronunciation inside code-mixing. Precedence dictates domain/code-mixing priority, with the misarticulation preserved in the verbatim slot of that single tag.

Comprehensive Examples

Real-world conversational utterances annotated in RSML.

Disfluency, code-mixing & named entities

Hindi utterance

RSML source
@repetition-start मैं @repetition-end मैं @umm कल #ORG[गूगल](Google) के !en[ऑफिस](office) में @broken-word-start मी @broken-word-end मीटिंग के लिए गया था।
Verbatim readout
मैं मैं कल गूगल के ऑफिस में मी मीटिंग के लिए गया था।
Normalized readout
मैं कल Google के office में मीटिंग के लिए गया था।

Speech repair & dialect with paralinguistics

Multilingual conversational turn

RSML source
&s1-start @false-start-start मुझे लगा था @false-start-end @repair-start शनिवार - रविवार @repair-end को $$bambaiya[अपुन](मैं) @laughing-start पक्का आएगा @laughing-end &s1-end &s2-start @laughter सही है! &s2-end

Notice how the false start and self-repair remain cleanly separated from the speaker overlap spans, while paralinguistic laughter appears both wrapped around spoken words (@laughing-start ... @laughing-end) and as a standalone vocal reaction (@laughter).