A voice assistant that takes 11 seconds to start speaking doesn’t feel like a conversation. It feels like a loading screen.
That was the problem I wanted to explore with Rumik’s open-source text-to-speech model.
Rumik is building expressive voice AI for Indian languages, including Hindi, English, and code-mixed speech. Its rumik-oss-1 model can generate speech with different voices and delivery styles.
The model was interesting. But I was more curious about something else.
How quickly could I make it start speaking?
Not how quickly it could finish generating a sentence. How quickly it could produce the first piece of playable audio.
Three numbers tell the story. As released, the model’s API returns whole clips, so the first sound arrives when the clip is finished: about 11 seconds for a typical sentence. A minimal streaming change, decoding the first 80 ms frame as soon as its eight tokens exist, brings that to 158 ms. That 158 ms is the baseline for everything below. The work in this post takes it to 32.1 ms, warm and server-side on one NVIDIA H100, and moves first audible speech from 599 ms to 110 ms.
In short: the stock loop was launch-bound, with about 17 of every 18 ms per token spent on CPU-side overhead. CUDA graphs removed that (158 → 84 ms). KV-cache buckets stopped attention scanning the full 2304-slot cache regardless of actual length (70 → 48 ms). A streaming codec on a second CUDA stream reached 32 ms, after a cuBLAS-workspace race between the two captured graphs was found and fixed. Quality was checked two ways: 160 matched-seed pairs scored by ASR, naturalness and speaker-similarity judges, and teacher forcing against the stock path (within its own stock-vs-stock noise floor) and, separately, against an fp32 reference. This is a single-request research path at batch size 1: serving many streams needs batching, which this code does not do, and a blind Hindi/Hinglish listening test is still to come.
Time to first audio, warm, one H100 (median of 100 runs)
158ms stock loop, first-frame streaming only to 32ms optimized streaming path 4.9× faster
| Metric | Original | Optimized |
|---|---|---|
| First audio, as released (whole clip first) | ~11 s | n/a |
| Time to first audio | 158 ms | 32.1 ms |
| First audible speech | 599 ms | 110 ms |
| Audio tokens per second | 55 | 301 |
| Model precision | BF16 | BF16 |
The code is public: github.com/Ashwinhegde19/rumik-latency. The benchmarks, the quality audit and the matched listening pairs are all in the repo.
The interesting part is how I got there.
I didn’t retrain the model. I didn’t quantize its weights. And one of the largest improvements came from discovering that the GPU was spending much of its time waiting for instructions.
Fast generation doesn’t always mean fast conversation
Imagine asking a voice assistant:
“What’s the weather like in Bengaluru today?”
The assistant knows what to say. But instead of speaking immediately, it generates the entire response internally and only then plays the audio.
Even if the voice sounds natural, the interaction feels slow.
That distinction matters in text-to-speech systems.
There are two different performance questions:
How long does it take to generate the complete audio?
And:
How long does it take before the user can start hearing something?
The second is commonly measured as time to first audio, or TTFA.
With streaming, the system doesn’t need to finish generating a six-second sentence before playback can begin. It can generate the first audio chunk, send it to the player, and continue generating the rest.
Someone had already done useful work on this model. Mrinaal Arora had built an H100-optimized inference stack for it (INT8 weight-only decode, fused Triton kernels, CUDA graphs) focused on whole-clip generation speed.
His stack does not stream, so its time to first audio is the whole clip, roughly 1.1 seconds by his write-up. On throughput, though, it is ahead of what follows here: about 5.9× real time to my 2.8×, because it quantizes the weights to INT8 and prunes the output head further. That work provided a useful starting point.
I wanted to focus on a different measurement: the first audio chunk, along with whether the optimized path still behaved correctly on Hindi and Hinglish.
First, I needed to understand what the model was actually producing
Rumik doesn’t directly produce an audio waveform from text in one operation.
It has two important parts.
The language model predicts discrete audio tokens. Then a neural audio codec called Mimi converts those tokens into waveform samples that we can play through a speaker.
In Rumik’s setup:
- Eight audio tokens represent one 80-millisecond audio frame.
- One second of speech contains 100 audio tokens.
- Mimi reconstructs the waveform at 24 kHz.
That gave me an immediate performance target.
If the language model generates only 55 audio tokens per second, it is producing about 0.55 seconds of speech every second.
A streaming player would eventually run out of audio and stall.
To generate audio continuously in real time, the model needs to sustain at least 100 audio tokens per second, before accounting for other overheads.
That became one of the first numbers I cared about.
The first benchmark pointed somewhere unexpected
I ran the baseline on a single NVIDIA H100 80 GB GPU through Modal.
The test set contained 10 prompts covering English, Hindi, romanized Hinglish, and code-mixed speech, with different lengths. I used warm-up runs, repeated timings, and GPU synchronization so I wasn’t accidentally measuring only how quickly the CPU queued work.
The original interface returned completed audio rather than streaming chunks. To measure TTFA, I made a minimal change to decode the first frame as soon as its eight tokens were available.
Here’s where the 158 ms went:
| Stage | Time |
|---|---|
| Prefill and first token | 19.8 ms |
| Additional token generation | ~125 ms |
| First-frame Mimi decoding | 13 ms |
| Total | ~158 ms |
The obvious place to investigate was token generation.
Each new token was taking roughly 18 milliseconds.
At first glance, that doesn’t sound terrible. But remember that eight tokens make only 80 milliseconds of speech.
Spending around 18 milliseconds on each token is already too slow for uninterrupted real-time playback.
So I looked more closely at what was happening between tokens.
The surprising finding was that most of the delay wasn’t useful GPU computation.
Profiling attributed roughly 17 ms per token to CPU-side orchestration overhead.
The GPU could perform the mathematical operations quickly, but the execution loop kept issuing many small GPU operations through Python and PyTorch.
In other words, the GPU finished each kernel almost immediately and then sat idle until the next one was issued. The work was fast; the hand-off was slow.
That was the first major opportunity.
I stopped asking the CPU to repeat every instruction
The initial rewrite targeted unnecessary work in the decoding loop.
I introduced a static KV cache, restricted the output computation to valid audio tokens, moved sampling and stop checks onto the GPU, and removed unnecessary per-token synchronization.
The vocabulary restriction was particularly straightforward.
The model’s full vocabulary contained roughly 277,000 entries, but speech generation only needed 16,384 audio codes plus an end marker.
There was no reason to compute scores for the other entries during audio-token sampling.
That helped throughput, but the eager implementation was still affected by launch overhead.
The next major change was CUDA Graphs.
Instead of dispatching the same sequence of small GPU operations individually for every token, CUDA Graphs let the program capture the sequence and replay it.
The CPU still launches the replay. It just doesn’t have to issue every operation separately.
For that to work, the GPU buffers and memory addresses needed to remain stable. That’s why a static KV cache was important: the cache contents could change while its underlying storage stayed in place.
The result was encouraging.
Token generation increased from 77 to 115 tokens per second after adding CUDA Graphs.
TTFA fell to 84 ms.
For the first time in the experiment, token throughput crossed the 100-tokens-per-second threshold needed to generate audio at real-time speed.
But there was still room to improve.
The next wins came from doing less work
CUDA Graphs reduced the cost of issuing GPU operations. They didn’t automatically make every operation efficient.
So I introduced torch.compile to fuse compatible operations and reduce unnecessary memory traffic.
That moved performance to 153 tokens per second and 70 ms TTFA.
Then another bottleneck showed up: attention was doing work over unnecessarily large KV-cache regions.
I added cache-length buckets of 256, 512, 1024, and 2304 positions.
A request needing 400 positions could use the 512-position bucket instead of running the same attention shape as a request needing more than 2,000.
That change produced another substantial improvement.
Here is the progression from the experiments:
| Optimization | TTFA | Audio tokens/s |
|---|---|---|
| Original implementation | 158 ms | 55 |
| Initial inference rewrite | 224 ms* | 77 |
| CUDA Graphs | 84 ms | 115 |
torch.compile | 70 ms | 153 |
| KV-cache bucketing | 48 ms | 260 |
| Optimized attention | 46.5 ms | 307 |
| Compiled prefill | 43 ms | 307 |
| Streaming Mimi | ~32 ms | ~302 |
The initial rewrite’s TTFA regression was caused by eager-mode queuing behavior around the first-frame decode. Throughput improved, but the timing showed why a faster internal step doesn’t always translate into a lower end-to-end measurement.
I also optimized attention with fused operations and FP32 reductions, while leaving the model’s BF16 weights unchanged.
Finally, I compiled prefill for several prompt-length buckets to reduce the time spent processing input text.
At this stage, token generation was substantially faster.
But the first playable audio chunk still had to pass through Mimi.
Making audio while the next audio is still being generated
This was the next piece of the problem.
Without overlap, the language model generates a frame, waits while Mimi decodes it, then continues. With the two on separate CUDA streams, Mimi decodes frame 1 while the language model is already working on frame 2.
With streaming Mimi, the first-frame codec decode dropped from roughly 13 ms to 4.5 ms.
This brought TTFA down to approximately 32 ms.
The model could now produce around 301 audio tokens per second, roughly three times the rate needed to generate one second of speech every second.
And then I ran into the most interesting bug in the project.
The audio was faster. It was also corrupted.
After making the language model and Mimi run concurrently, the streamed audio didn’t match the normal full-decoding reference closely enough.
The measured signal-to-noise ratio was only around 22–39 dB, and the audio had audible noise.
That was a problem.
Making a voice model faster is pointless if the resulting speech is damaged.
The cause wasn’t in the speech tokens themselves. It came from how the CUDA Graphs were captured.
Both the language-model graph and the Mimi graph had initially been captured on the same GPU stream.
As a result, they recorded overlapping temporary cuBLAS workspace addresses.
When I replayed those graphs concurrently on separate streams, one operation could overwrite temporary data that the other operation still needed.
It was a GPU memory race condition.
The fix was to capture each graph on its own dedicated stream so their temporary workspaces no longer collided during concurrent execution.
After the fix, the streamed decoder reached a median SNR of around 66 dB against the full-decoding reference. With TF32 disabled, the agreement was even closer.
This was probably the most useful debugging lesson in the entire project.
An optimization can appear correct when operations run sequentially and fail only when those same operations overlap.
Performance tests weren’t enough. I needed correctness tests that exercised the actual concurrent execution path.
32 ms to first audio. So why did speech start at 110 ms?
This was another interesting finding.
The optimized pipeline produced its first playable audio chunk in about 32 ms, but the first clearly audible speech arrived at around 110 ms.
I investigated the difference.
It turned out the model itself generated roughly three near-silent frames before speaking.
These weren’t simply delays introduced by the network or audio player. The generated waveform contained the near-silence.
The original model showed the same general behavior.
That left a tempting option: remove or suppress those frames to make the first word arrive sooner.
I chose not to change the model’s generated token sequence.
Pauses are part of speech. Removing them indiscriminately can affect timing, rhythm, and delivery. More importantly, forcing different tokens would make it harder to claim that this was only an inference optimization.
So I kept the generated sequence intact and reported the two measurements separately:
32.1 ms: first playable audio is ready.
110 ms: first audible speech begins.
The difference matters, especially when someone interprets a benchmark as a guarantee about real user experience.
Update, 29 Oct 2026. I later found why the silence is there. The Mimi encoder turns a quiet clip start into a fixed code sequence (frame 0 is code 1049 in 320 of 320 generations), and the model learned it as a rule. Placing the model’s own three start frames into the prompt, never into the output, brings first audible speech from 110 ms to 34 ms median with no measurable quality change across 80 matched pairs. It is opt-in and off by default; details in the repo README and results/prefix_fix/report.md.
Fast is only useful if the voice still holds up
I didn’t want to stop at a latency chart.
The next question was whether the optimizations had changed the output.
This is harder to answer than it might seem.
If you generate two speech samples with different random seeds, they can sound different even when both come from the same original model.
So simply listening to two arbitrary recordings isn’t a reliable quality test.
The evaluation used several approaches.
First, teacher-forced comparisons examined the models’ output predictions across more than 15,000 token positions.
The optimized and stock paths agreed on the top predicted token about 98.1% of the time, which matched the stock-versus-stock numerical variation observed in the tests.
Against a full-precision FP32 reference, the optimized path was actually closer than the original BF16 path on the measured KL-divergence comparison.
Then came speech-level evaluation.
I generated 160 matched-seed pairs across the test prompts and compared intelligibility, naturalness, speaker similarity, and waveform characteristics.
The checks included:
- Word and character error rates using Whisper-large-v3 and MMS-1b.
- UTMOSv2 for estimated speech naturalness.
- ECAPA and WavLM-SV embeddings for speaker similarity.
- Duration, silence, clipping, loudness, and spectral comparisons.
The automated evaluations found no statistically distinguishable quality degradation.
That wording is intentional.
It doesn’t mean the outputs are mathematically identical, or that no listener could ever notice a difference.
It means the evaluations conducted so far did not detect a meaningful loss.
You can listen for yourself. These are two of the matched-seed pairs from the listening pack: same text, same seed, stock path first and optimized path second.
Kal ki meeting mein sabko hamara idea bahut pasand aaya, ab bas final deck ready karna hai. Stock original transformers path
Optimized this work, streamed
मुझे कल सुबह दस बजे डॉक्टर के पास जाना है, कृपया मुझे याद दिला देना। Stock original transformers path
Optimized this work, streamed
There is still an important missing test: a formal human listening study, especially for Hindi and Hinglish, where automated ASR judges can be unreliable.
That’s something I’d want to do before making stronger quality claims.
What the final result actually means
Here are the final warm benchmark numbers on a single H100 SXM:
| Measurement | Stock | Optimized |
|---|---|---|
| Median TTFA | 158 ms | 32.1 ms |
| TTFA p95 | 182 ms | 32.5 ms |
| Prefill | 19.8 ms | 4.8 ms |
| First-frame codec decoding | 13 ms | 4.5 ms |
| First audible speech | 599 ms | 110 ms |
| Audio tokens/s | 55 | 301 |
| Audio seconds generated per wall second | 0.55× | 2.84× |
Across 100 streaming runs, the optimized pipeline completed without playback stalls.
And the compute cost of the baseline and optimization experiments came to roughly $7 in Modal GPU credits (the quality audit was a separate run).
That last number surprised me too. A relatively small amount of GPU time was enough to investigate several performance bottlenecks, provided the experiments were focused and measured carefully.
What I haven’t solved yet
This is a single-request research implementation, not a production voice-serving platform. It serves one request at a time, and it says nothing about how many concurrent streams an H100 could hold or what a minute of audio would cost, because answering that needs batching, which this code does not do.
There are still real limitations.
The compiled prefill path supports prompts up to approximately 255 tokens. The current CUDA Graph implementation captures fixed sampling configurations. Benchmarks cover batch size 1, the Ira voice, and one H100 configuration.
It doesn’t yet address multi-user request scheduling, broader speaker coverage, or end-to-end latency across network connections and client devices.
I also deliberately stopped short of INT8 or FP8 quantization.
By that point the BF16 path was close to the memory-bandwidth floor. The decoder’s 2.81 billion non-embedding parameters are 5.6 GB in BF16, read once per token; at 3.3 ms per token that is about 1.7 TB/s end to end, and the profile shows the matrix multiplies themselves running at about 2.5 TB/s against the H100’s 3.35 TB/s peak, with the rest of each step in small fused kernels and graph replay. Quantization could reduce how many bytes need to be read per token, but it would introduce another set of quality questions, particularly for multilingual speech.
That seems like a worthwhile next experiment rather than something to rush into this result.
The other work I’d prioritize is longer-prompt support, multi-request serving, and a proper blind listening evaluation with Hindi and Hinglish speakers.
What I took away from this experiment
I started with a simple question:
Can I make this voice model start speaking sooner without changing its weights?
The answer, at least on the tested H100 setup, was yes.
But the most useful part wasn’t reaching 32 ms.
It was discovering that the biggest bottleneck wasn’t necessarily the expensive mathematical operation everyone thinks about first.
Sometimes the GPU is waiting for the CPU.
Sometimes attention is processing more cache than it needs.
Sometimes the audio decoder is waiting when it could be working.
And sometimes an optimization makes everything faster until two GPU operations accidentally start sharing the same temporary memory.
The pattern that helped throughout was straightforward: measure, identify the next bottleneck, change one thing, and check both speed and correctness.
A fast model isn’t just one that finishes its work quickly. For a voice assistant, it’s one that can begin responding promptly and keep speaking without falling behind.
That’s the problem I wanted to work on, and there are still plenty of interesting directions left to explore.
Project details and credits
This was an independent inference-optimization experiment using Rumik’s released model, not a modification to Rumik’s official implementation.
The code, the benchmark results, the quality audit and the matched listening pairs are in github.com/Ashwinhegde19/rumik-latency.
Thanks to Rumik AI for releasing the model, Kyutai for Mimi, and Mrinaal Arora for the earlier Rumik inference work that helped inform the exploration.
Rumik’s model weights are distributed under CC-BY-NC 4.0 (research and non-commercial use). The experiment retains the original BF16 weights.
Benchmark scope: single H100 SXM, warm server-side inference, batch size 1. Network transfer and client playback latency are excluded.