Sound Captions
Captions for the game, not just the chat.
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.
-
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. -
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. -
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. -
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. -
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. -
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
| On 4 unseen clips | Plain YAMNet | Trained |
|---|---|---|
| Off-center sounds caught | 20% (4/20) | 65% (13/20) |
| Gunshots caught | 21% (4/19) | 68% (13/19) |
| While I’m talking | 15% (2/13) | 62% (8/13) |
| While I’m quiet | 29% (2/7) | 71% (5/7) |
| False captions per minute | 2.6 | 10.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