Voice
Talking to AI Out Loud: How Voice Works in the Browser
What happens between the moment you speak and the moment a character answers, and how hands-free mode and interruptions make it feel like a real call.
November 27, 20267 min read
Typing to a character is great. Talking to one is different. A voice conversation is faster, more personal and, when it works well, surprisingly natural. Here is what happens behind the scenes when you press the microphone in Kioku's talk mode.
Step one: your voice becomes text
Modern browsers ship with built-in speech recognition. In Chrome, Edge and Safari, a web page can ask for permission to use the microphone and receive a live transcript as you speak. You see this as the gray caption that fills in while you talk.
The recognizer listens for a pause. When you stop speaking for a moment, it marks the transcript as final, and Kioku sends that text to the character exactly as if you had typed it.
Step two: the character thinks
From here the conversation follows the same path as a text chat. The character's persona, its memory of you and the recent messages are combined with what you just said, and a language model writes the reply. In talk mode, characters are asked to answer in one to three short spoken sentences, with no lists or stage directions, because long paragraphs are tiring to listen to.
Step three: text becomes voice
The reply is spoken with the speech voices built into your device. Kioku picks a voice that matches the character, a feminine or masculine English voice, preferring the natural or neural voices many systems now include, and applies the creator's pitch and speed.
Crucially, the character does not wait for the whole reply before speaking. Replies arrive word by word, and as soon as a full sentence is ready it is handed to the voice engine. The first words often play while the rest of the answer is still being written.
Lips that move with the words
While the voice engine speaks, it reports every word boundary. Kioku uses those moments to drive the 3D body. Characters with a face rig open and close their jaw in a pattern that follows the speech, with an extra kick on every word. Characters without one sway and pulse gently instead, so you always know who is talking.
Hands-free and interruptions
Two small features make the biggest difference:
- Hands-free mode reopens the microphone the moment a reply finishes, so the conversation flows back and forth without touching anything.
- Interrupting works the way it does on a phone call. Tap the character or the microphone mid-sentence and the voice stops, ready for you to talk.
Tips for better conversations
- Use headphones, so the microphone does not hear the character's own voice.
- Speak in short turns, like you would on a call.
- If your browser has no speech recognition, press the keyboard button and type. You will still hear every reply.
For a full list of supported browsers and settings, see Talk mode in the docs.
Meet a character who remembers you
Free during early access. You start with 100 Sparks.
Start chatting free