Skip to content

Captions and speaker checks ​

Captions are animated word by word (render.caption_style, per channel under render.channels.<login>), with the channel name on a badge:

StyleLook
gamer (default)Montserrat Black capitals with thick outlines on a purple box; the current word turns green and pops
highlightMontserrat ExtraBold on a dark rounded box; the current word sits on a yellow box and pops
bounceMontserrat Black capitals on a dark box; the current word turns yellow and jumps up while spoken
classicThe original plain white captions

Stream audio mixes the streamer's microphone with game audio, so the transcript also contains game dialogue. Captions keep only the streamer's speech ([speaker], see streamclips/speaker.py):

  1. Game subtitles: speech whose words appear in the same order in the game's own on-screen subtitle (OCR of the subtitle strip, speaker.game_subtitle_box, from half a second before to half a second after the speech) is game dialogue. Spelling variants, fillers and misheard longer words are tolerated; common words alone ("are you") do not count. A 3+ word stretch of subtitle inside otherwise kept speech is cut out.
  2. Lip motion: when the clip shows a webcam (measured, see Webcam layout), speech heard while the streamer's lips do not move is not the streamer. Lip motion is measured relative to the same clip's quiet moments (mouth opening and the whole lip outline), so framing and tracker jitter cancel out and subtle talking still counts. The threshold is learned per channel from the lip motion seen during subtitle-confirmed game lines, because some streamers keep reacting while game characters talk.
  3. Speech with no evidence either way is kept.

Each clip gets speaker.json with every decision and its evidence. speaker.mode = "shadow" decides and logs but keeps every word. Speaker voiceprints were tested and dropped: on compressed stream audio over a game soundtrack they did not separate the streamer from game characters reliably.

Caption text is cleaned before display (streamclips/caption_text.py); transcript.json keeps the raw recognition:

  • Profanity is masked to its first letter plus asterisks ("s***"). Mild words such as "damn" and "hell" are left alone; render.censor_words adds more, render.censor = false turns masking off.
  • Gamer lingo that speech recognition hears as names is fixed ("Gigi's" becomes "GGs"); render.caption_fixes adds more. Prompting Whisper with the lingo was tested and rejected: it fixed the word but silently dropped other speech.

The font in assets/fonts is Montserrat (SIL Open Font License 1.1, licence file next to it).