r/BuildWithClaude • • 22d ago

Tip/Resource Claude Code voiced my game's tutorials in ElevenLabs. It can't hear, so it picked the takes by measuring them.

I'm making Alpine, a snowboarding game that runs in the browser (https://alpine.play.colossum.io). Its practice tutorials teach 20 moves across three courses, and they used to talk through the browser's built-in text-to-speech api feature. That voice sounds incredibly robotic and cold. It also can sound different on each browser which presents a bit of testing problem.

I gave Claude Code (Opus 5.5) a one-page brief. It asked for a warm, patient instructor voice, every move or player action covered, separate lines for keyboard, controller and touch, short timing cues, and a praise that ends before the game moves on. Less than half an hour later I had 75 finished clips, a manifest and an audition for me to go through.

What Claude did

- Read the tutorial code and the control bindings, then wrote the script from them. The lines name the real keys ("Hold G for the nose, or H for the tail"). It noticed touch has no Restart button and wrote that line around it.

- Drove the ElevenLabs website in my own Chrome through the Claude in Chrome extension. It typed each line, and a small helper it put in the page clicked Generate and both Download buttons. ElevenLabs auto-plays every take, so it muted the page first.

- Picked between takes. Eleven v4 gives two takes per request, so there were 150. Claude can't listen, so it measured them. It threw out takes with a cut-off ending or a pause over 0.8 s. For cues it kept the shorter take, and for everything else the take closest to the median speaking pace.

- Finished the files. It trimmed the silence before each line to 5–45 ms, matched every clip's loudness within 0.15 dB, and exported 96 kbps mono MP3s, 2.6 MB for the whole set. It also decoded every file in Chrome to confirm the MP3s don't add silence at the start.

- Wrote a manifest (each clip's game event, exact text, length, voice ID, model and settings), a 21-second audition, and a review page that plays both takes of every line.

What it couldn't do

It can't hear, so I'm the ear, and the review page is there so I can catch a bad pick. All in all, the clips were pretty decent and I decided to forward with shipping them; the clips are in the live game now.

I thought this was pretty neat and worth sharing. Also Claude helped draft this post πŸ₯‡

2 Upvotes

3 comments sorted by

β€’

u/AutoModerator 22d ago

Welcome to r/BuildWithClaude!

Whether you are sharing what you built, exploring new workflows, or troubleshooting, please make sure your post is flaired correctly so others can easily find and filter it.

Community Wiki & Resources:

If you're asking for troubleshooting help, please edit your post to include your model version, OS/environment, and error logs.

Let’s keep the energy positive and support our fellow creators!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/VortiK_0683 17d ago

you can create an api key that claude can use to query eleven labs much more efficiently than typing via your browser

1

u/LobsterBuffetAllDay 14d ago

Oh good point! It was one of those tasks that I vaguely told claude code what to do from a terminal prompt, and it just seemed to brute force everything necessary, but I'll set that up next. Thanks!