Dev.to AI 🤖 Ai 👁 0 📖 4 min read

Building on a full-duplex voice model: what to measure before you trust the 0.28 s

A full-duplex voice model listens and talks at the same time. That moves the hardest decision in a voice product out of your code and into the model. You no longer write the rule for "the caller has finished". The model

Building on a full-duplex voice model: what to measure before you trust the 0.28 s

A full-duplex voice model listens and talks at the same time. That moves the hardest decision in a voice product out of your code and into the model. You no longer write the rule for "the caller has finished". The model makes that call at every pause, and your app lives with it.

We deployed Sophon-Realtime-4B-Flash, the open voice model from Adventists AI, on one RTX 4090 on our cloud. On simple questions its first sound came a median 0.28 seconds after the caller's last word. On one question it started answering 1.3 to 1.5 seconds before the caller finished. Both come from the same mechanism. Tables and setup are in the full Sophon-Realtime-4B deploy test on inferencekey.com.

Sophon-Realtime-4B-Flash deploy test summary: 0.25 to 0.42 s to first sound on an RTX 4090, 19.5 GiB on the 4090, 12.7 GiB on a 16 GB RTX 5080

The turn decision is a set of thresholds, and they were left at defaults

At each pause the model decides whether you have finished, and drafts a reply early that it drops if you carry on. In the repository that is a list of pause lengths with a confidence threshold for each, a fallback reply after 2 seconds, and a speculative draft that starts after 0.05 seconds of silence once the caller has spoken for 0.3 seconds. Each knob is a SOPHON_* environment variable.

A cooking question with a 1.5-second "um" behaved as described: a silent draft, dropped, then an answer 0.88 seconds after the real end. The train question did not. A train leaves at two fifteen, the trip takes ninety five minutes: the model was answering while the caller still said "what time does it arrive", in all four runs, on both cards. It then repeated the answer, wrong every time (3:55 in seven of eight realtime answers; the right one is 3:50).

Status: open. We did not tune the thresholds or run the 32B, and four questions with one run per setting cannot say how often it happens in real calls. If your callers ask questions with a pause before the last clause, test that shape first.

Measure the gap from the last voiced sample, not the end of the file

The SDK example's main.py times the gap from the end of the input clip. That clip carries up to 0.36 seconds of trailing silence, so the script can print small negative values such as -0.079 s that look like a cut-in and are not. The published gaps come from a separate script that finds the caller's last voiced sample with an energy threshold. A real cut-in, like the train question, reads -1.29 to -1.47 s. And every gap was taken on the GPU host itself: add your network round trip on top.

On 16 GB, memory shares are fractions of the card

vLLM-Omni is the serving engine: the program that loads the weights and answers requests. It runs this model as three stages (the brain, the talker and the decoder), with no single memory cap for all three. Each gets a share of the card. With a 16 GB budget and the brain at 16 bits per weight, startup fails at the talker's memory check. Squeeze the brain to 8 bits per weight (fp8) and it ran on a real RTX 5080 with 2 conversations, peaking at 12.7 GiB. The settings that mattered:

export SOPHON_THINKER_QUANTIZATION=fp8
export SOPHON_STAGE_GPU_MEMORY=0.44,0.30,0.075  # fractions of THIS card
export SOPHON_MAX_SESSIONS=2

Our first 5080 launch reused the 4090's shares. On a smaller card those fractions are less memory, so it did not fit and was relaunched. Recompute the shares for each card. A third caller gets a 503 (max_sessions is 2); a clearer error is still open.

Cold starts recompile every time

A cold start is the wait from an empty machine to the first answer. The authors' start.sh sets VLLM_DISABLE_COMPILE_CACHE=1, so every start recompiles. The 4090 was answering 326 seconds after the deploy call, and the 5080 took about 12 minutes. A second start on the same 4090 took 95 seconds. Add machines for traffic with those waits in mind.

What held up, and what our platform does not do yet

Concurrency held: on one 4090 the median gap went from 0.28 s with one caller to 0.33 s with four and 0.34 s with eight. Whisper, OpenAI's speech recognizer, matched the written text in all 29 replies we transcribed. Sound tags never appeared in the 50 realtime replies.

The missing piece on our side is transport. Our API speaks request and response, with no open audio socket, and a custom backend (a small Python file that tells our platform how to install and start a server) cannot stream audio out yet. You send one recorded turn and get one WAV back. For a live microphone, connect straight to the model's own realtime socket; we have not built that route.

Check two licences before shipping: Apache-2.0 covers the code and the Sophon weights, while DuplexJev-4B-Para, the base of the 4B brain, carries a non-commercial card. The authors also say the 4B "knows and reasons much less than the 32B brain", and point to the 32B or their hosted service when answers must be right. The verdict by use case, the memory ladder and the audio samples are in the article.

Adventists AI built the model, the scripts and the turn logic, on bases from the Qwen team at Alibaba, with voice code derived from the FunAudioLLM team's CosyVoice. The vLLM and vLLM-Omni projects serve it, and the Silero Team's voice detector (VAD) hears when the caller speaks. Kyutai's Pocket TTS voiced our caller. We spotted the family, and higurashi-ai's Haru-4B, in an AI Search news video. Our part was the custom backend, runs on two cards and the measurements. To try a recorded question on your own GPU, start from the SDK example in the Sophon-Realtime-4B-Flash research write-up on inferencekey.com.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.