Watch: Let users talk to my app with speech-to-text | Vovy
Watch Vovy do it on a Mac: "Add a mic button so users can speak instead of typing". Add a record button that captures audio, sends it to a transcription model through your server, and drops the text into your input.
"Add a mic button so users can speak instead of typing"
Add a record button that captures audio, sends it to a transcription model through your server, and drops the text into your input.
What happens in the video
- Add a record button: Vovy asks Claude Code to add a mic button that asks for microphone permission and records audio in the browser.
- Send audio to your server: Claude Code uploads the recording to a server function, keeping your API key off the browser.
- Transcribe it: The server function calls OpenAI's transcription endpoint with the audio file and returns plain text, usually within a couple of seconds.
- Handle the rough edges: Claude Code adds a max recording length, a clear error if permission is denied, and a note that Safari needs HTTPS for the mic.
- Test and price it: Vovy records a test phrase, shows the transcript, and puts the cost per minute of audio on a card.
Read the step-by-step guideLoading...