Cue-2-0.4B
Cue 2 is the turn-taking model of Orvena's voice mode. It is a pair of models. The text model is Cue-0.4B, unchanged. It reads the transcript and decides what an interruption means and which turns can be answered at once. The audio model is new. It listens to the microphone and hears when you have finished speaking.
Orvena used to wait for a pause: a turn ended 1.5 s after the speech recognizer's transcript last changed. That wait came before every answer, and a pause in the middle of a request could end the turn. The audio model has 7.85 M parameters and runs every 100 ms on the phone's Neural Engine in about 1.3 ms. It does two things.
It ends the turn early when it is sure you are done, before the pause timer runs out.
It holds the timer while it takes the silence for a pause, so you can stop to think in the middle of a request.
The technical report covers the data, training and evaluation in full.
How it is built
The audio model is the audio encoder of Whisper tiny with two small heads, 7,850,185 parameters in all. Training started from the weights of Smart Turn v3.2. The model reads the newest 4 s of 16 kHz audio every 100 ms as 80 log-mel bins and gives two values the app uses:
- p(end of turn): the probability that you will not speak in the next 2 s;
- user speaking: whether your voice is in the newest 20 ms.
The training audio is 1,028 hours in 35 languages:
| Source | Hours |
|---|---|
| Smart Turn data v3.2, single-speaker turn clips | 547.0 |
| AMI meetings, English | 128.9 |
| Assembled scenes spoken by Supertonic 3 and Kokoro, 30 languages | 122.0 |
| FLEURS read sentences, 30 languages | 104.7 |
| VoxPopuli parliament speech, 8 languages | 94.1 |
| Requests with pauses spoken by a live voice model, GPT-Live-1.1, 30 languages | 31.6 |
The last source is the reason for this release. A live voice model spoke 17,657 requests from Cue's phrase banks with pauses and hesitations in them, and its voice stays up before a pause and falls at the end of a request.
The end-of-turn rule
The app keeps its pause timer and the audio model works beside it with two thresholds.
- ฮธ = 0.6, early end. The turn ends at once when p(end of turn) is at or over ฮธ on two ticks in a row, with no user speech on them or on the tick before.
- ฯ = 0.3, hold. The timer may end the turn when it runs out only if p(end of turn) is at or over ฯ. It waits otherwise, at most 3 s after the model last heard you.
The timer fires as before when the model has no tick newer than 500 ms, so a missing model gives the old behaviour.
Results
The pause timer alone is the baseline. Its transcript updates are simulated from measurements of Apple's recognizer.
| Test set | Measure | Pause timer | Cue 2 |
|---|---|---|---|
| Generated requests, 30 languages, 2,674 requests | Answer starts before the request is finished | 30.6% | 8.6% |
| Wait after the last word, median | 1,881 ms | 280 ms | |
| Open Yap sample, English, 6,487 pauses | Pauses cut into | 5.5% | 5.9% |
| Wait after an end, median | 1,836 ms | 1,800 ms |
Generated requests are requests to an assistant with pauses at known places, spoken by two voices of a live voice model that are not in the training data. They are not people, and the training data holds the same kind of speech from other voices. Cue 2 cuts into fewer requests than the timer in each of the 30 languages.
The Open Yap sample is people talking to a friend on their own devices, 17.84 hours from 8 speakers, with labels made by machine. They are not requests to an assistant. Cue 2 cuts into 1.6% of the pauses in which the partner stays silent, and the timer into 3.2%.
One tick takes 1.3 ms on the Neural Engine of an iPhone 17 Pro Max and 4.3 ms while the GPU decodes the main model. The two Core ML packages take 16.6 MB.
Using it
Python
cue_audio.py runs the model on a wav file with PyTorch and replays the rule:
from cue_audio import CueAudio
cue = CueAudio.from_pretrained(".")
ticks = cue.ticks("fixtures/request-with-long-pause-en.wav") # one row per 100 ms
cue.end_of_turn(ticks)
# {'end_ms': 4800.0, 'reason': 'early', ...} the speech ends at 4,460 ms
ticks holds t_ms, end_of_turn and user_speaking per tick. end_of_turn() takes the times at which a
recognizer's transcript changed as changes_ms. The pause timer runs from the last tick on which the model heard
the user when they are left out. python cue_audio.py --check compares the outputs with fixtures.json, and
--check --coreml also runs the two Core ML packages.
Core ML
The model is two packages for iOS 18 and macOS 15 or later. The log-mel front end has to stay in float32, so it runs on the CPU. The encoder and the heads run in float16 on the Neural Engine.
| Package | Input | Output |
|---|---|---|
CueAudioFrontend.mlpackage |
audio, 1 ร 64,240, float32: the newest 4 s of 16 kHz audio and 240 samples before them, the newest sample last |
features, 1 ร 80 ร 400 |
CueAudioEncoder.mlpackage |
features; playing, 1 ร 400: 1 where the assistant's own voice played in that 10 ms; volume, 1: the playback volume, 0 when nothing played |
ticks, 1 ร 6 logits, the first is end of turn; frames, 1 ร 200 ร 2 logits per 20 ms, the first is user speech, the newest frame last |
Run both once per 100 ms of new audio and take the sigmoid of ticks[0] and of the last frame's first value.
cue-audio.json holds ฮธ and ฯ. Resample the microphone's audio with a converter that keeps the band up
to 8 kHz.
Files
| File | |
|---|---|
CueAudioFrontend.mlpackage, CueAudioEncoder.mlpackage, cue-audio.json |
what the Orvena app downloads |
model.safetensors, config.json |
the audio model's weights for PyTorch, 31.5 MB, and its description |
cue_audio.py |
reference for the model, the ticks and the rule |
fixtures.json, fixtures/ |
three clips of synthetic speech from Kokoro voices with reference outputs |
text/ |
the Cue-0.4B text model, byte for byte as in Orvena/Cue-0.4B |
NOTICE |
the licenses of Smart Turn and Whisper, and the data sources |
Notes
- The audio model decides when a turn ends. The text model still decides what an interruption means, and interruptions over the assistant's own voice keep the Cue-0.4B rule.
- The released thresholds were set in voice sessions in English. The app reads them from
cue-audio.json. - The model is surest on requests spoken to an assistant. In recordings of four-person meetings the early end comes inside more pauses than the timer does, and Section 8.3 of the technical report has those results.
- The request speech in the training data and in the first test set is generated.
License
Apache-2.0. The audio model is derived from Smart Turn v3.2 under the BSD 2-Clause license, and NOTICE carries its
notice. Built by Orvena.
- Downloads last month
- -



