Release the push-to-talk key and count how long it takes to hear the first word. That silence tells you something a tokens-per-second score cannot: how much time your voice assistant makes you wait before it starts talking.
The public code for Ollama Voice Chat shows where that gap comes from. The default setup pairs DeepSeek R1 7B with Coqui’s Jenny voice. With push-to-talk enabled, the app records your question and transcribes it with faster-whisper. It then sends a non-streaming request to Ollama. Only after the complete reply arrives does Coqui synthesize the first chunk, write a temporary WAV, and read it back for playback. Each later chunk waits its turn. The whole answer is ready before you hear any of it.
Measure the silence, not just the model
Start a stopwatch at key release. Log when transcription finishes, when the first answer text arrives, when there is a phrase worth speaking, and when the player is asked to start. In a reasoning model, a streamed record can contain a separate thinking field. That record is useful for debugging, but does not count as answer text and should never be sent to the voice.
The playback call is a useful software marker, but it happens before the speaker makes sound. To measure actual onset, capture your system audio with a loopback input if available, or use an external recorder that can hear both the release cue and speaker. Use the same method for every trial. Keep playback-call time and audible onset labeled separately.
A fast first word can hide awkward pauses. Also record the biggest silence between chunks and when the answer finishes. If the first phrase starts early but the rest arrives in bursts, the change may not feel better.
Change one thing at a time
- Baseline: full reply, then WAV. Run the current path unchanged. It gives you a reference for both first audio and total time.
- Stream the reply, keep WAV playback. Buffer answer text until a sentence boundary or a sensible clause break. Then let the existing Coqui/WAV path speak that phrase while Ollama continues generating. Keep the phrase-buffering rule and the synthesis queue explicit: arbitrary token cuts can sound choppy, and concurrent work can compete for the same hardware.
- Keep streaming, remove the WAV round trip. Feed Coqui’s in-memory waveform to the same playback device at the model’s output sample rate. Keep the voice, phrase boundaries and playback handling the same as in step 2 so any difference is easier to attribute. The WAV round trip might be small compared with voice synthesis; this is how to check.
Use the same recorded question (or a repeatable microphone input), hardware, model, thinking setting and voice. Run a few short and long questions in each configuration. Separate cold starts, where the relevant model is not loaded, from warm repeats. Note which models were resident at the start; restarting one component does not necessarily make the rest cold. Report the median first-audio time along with the number of runs and the spread. There are no benchmark numbers here: this is a test plan, not a speed claim.
What to fix first
If the transcript takes most of the time, changing Ollama won’t solve the wait. If the model produces usable text early but playback is late, study the queue and the voice engine. If most of the wait is for the complete answer, streaming one clean phrase is the first experiment I’d try. Measure again before switching to a smaller model or a different voice. You may be able to keep the answer and the voice you like without waiting for the last sentence to be written.
Sources: Ollama Voice Chat source, Ollama thinking and response fields, Coqui inference API, Ollama model residency.
Comments