Sound Captions

Captions for the game, not just the chat.

Codex x TwitchCon HackathonSolo build

Guided demo

Gameplay is one of my own Twitch clips with the overlay in OBS. Those captions are replayed from my hand labels, not the live model. The labeler step is real taps on a copy of the project, captured on November 8, 2026, and nothing was saved.

  1. A round from Alex’s Twitch clip with Sound Captions on: purple captions read [footsteps] and [reload → right], above a speech caption, Yeah, Hookah.
    Captions for the game. A round from one of my Twitch clips. Muted, you see the fight but not what you’d hear. With Sound Captions on, [footsteps] and [reload → right] appear above the speech caption.
  2. With the spike planted, captions read [reload ← left] and [footsteps ← left].
    Which side it came from. The arrow gives the side, from the left and right levels of the game audio. In this replay, a sound from the center shows with no arrow.
  3. Mid-fight, captions read [reload] and [gunshot → right], with the speech caption One Hookah. One Hookah. below.
    Two at a time, then gone. At most two sound captions show at once, and each fades after up to three seconds, so the screen never fills up.
  4. OBS with three sources in the Squeaky scene: Speech captions, Sound captions and the Squeaky clip. The preview shows [gunshot] and [reload] over the gameplay.
    Just a browser source. In OBS, Sound Captions is one browser source above the gameplay, next to one for speech captions. No extension, and viewers install nothing.
  5. Alex’s Twitch channel, washedlatino, live in Valorant with [gunshot] and [reload] captions on the stream.
    On my Twitch channel. My channel, washedlatino. The captions here are replayed from my own labels in time with the clip, which is how the demo was made.
  6. The Sound Captions labeler on the Squeaky Clean clip at 8 seconds. Start is 6.000, End is 8.000, Gunshot and Right are picked, and Annotations now shows 30 with the message Annotation added to the list.
    Label a sound. The labeler Codex built for me. Skip to 6 seconds, Set start, 2 more seconds, Set end, then Gunshot, Right, Add. That’s how I marked the sounds the model learned from.

What’s inside

  • Sound captionsShort lowercase labels in brackets, like [gunshot → right], in Twitch purple. At most two at once, each for up to three seconds.
  • OBS overlayA browser source above the gameplay. No Twitch extension, and viewers don’t install anything.
  • Local helperA Python helper listens to a recording, an OBS media source or a game-audio device, and sends captions to the overlay over a local WebSocket.
  • Sound modelYAMNet audio embeddings with a small classifier trained on my labels. The side comes separately, from the stereo left and right levels.
  • LabelerMark each sound’s type, start, end and side, and confirm, fix or delete the model’s guesses.
  • Replay modePlays hand labels in time with an OBS media source, and follows pause, seek and restart.

Background

I used to stream Valorant on Twitch, and I still watch it. None of the streamers I follow had captions, let alone captions for game sounds. Speech captions tell you what the streamer said, but not the gunshot off to the right or the footsteps coming from the left.

I built Sound Captions for the Codex x TwitchCon Hackathon at the end of October 2026. I labeled the sounds in my own clips and corrected the model’s guesses; Codex built the labeler, the training and test tools, the helper and the overlay.

Results

Share of off-center game sounds caught on four unseen Valorant clips, before and after training
On 4 unseen clipsPlain YAMNetTrained
Off-center sounds caught20% (4/20)65% (13/20)
Gunshots caught21% (4/19)68% (13/19)
While I’m talking15% (2/13)62% (8/13)
While I’m quiet29% (2/7)71% (5/7)
False captions per minute2.610.9

The clips were never used in training, and my voice is still in the audio. These are shares of sounds caught, not overall accuracy.

Limits

  • The demo captions are replayed from my hand labels. The model’s numbers come from a separate test.
  • The test is small: four clips and 20 off-center sounds.
  • The trained model catches more, but shows about 10.9 false captions a minute, up from 2.6.
  • Footsteps are still weak: it missed the one footstep in the test. Reload captions are off in model mode because they were too noisy.
  • Game audio has to be routed to the helper by hand. Tested on macOS only.
  • Next is feedback from deaf and hard-of-hearing viewers, and more games.

Tech

  • Python
  • YAMNet
  • LiteRT
  • scikit-learn
  • WebSockets
  • OBS
  • JavaScript
  • Codex