Every test passed. I'd never used my real voice
Tests that feed in typed text can't find a microphone sending silence.
In this seriesShow all 4 partsHide the list
- 01Every test passed. I'd never used my real voice
- 02It ran at 200 frames on my PC and 15 on a tester's
- 03Removing the app deleted its key
- 04Test and real data shared one ID
I built a teleprompter that listens while you talk. It checks off each point in your outline and scrolls your script as you go. My AI coding assistant had the first version working overnight, with 22 tests and a full run through the browser. Everything passed. Then I tried it with my own voice, and nothing moved.
What the tests really tested
Every voice test up to then had fed typed text into the part that follows along. A stand-in played the speech recognizer. That proved the matching worked on clean text. It proved nothing about a microphone, a room, or a person. The build notes even said a real mic was untested.
Three tries to find it
The first real test failed with no clue why. The free speech engine was quietly ignoring its own "I heard nothing" errors, so the app looked fine while hearing nothing. We added a log that records each step of the listening.
The second test left no log at all. An old window was still open and running the old code, from before the log existed. The new start-up failed because the old one held its place, and it closed without a word. The launcher now closes any older copy first.
The third test's log had the answer. The browser started listening and reported "no speech" every eight seconds. The microphone it had picked wasn't my headset. It was a virtual microphone another program had installed, sending perfect digital silence. Even asking for the "default" microphone returned it.
What changed
The app now opens the Windows default microphone by its exact ID. If a microphone sends three seconds of pure silence, a warning names it.
The next real test worked: 8 of 9 points checked off, in my own voice. The miss was fair. I'd said "the rest of the user base" where the outline said "everyone else." The other reading mode still needs the same real test before I'll call it done.
What I ask about a passing test now
What did the test stand in for? If it typed where a person talks, or used a clean file where a person uploads a messy one, it tested my assumption. Now one real person does the real thing before I call it done, and failures have to be loud.