Skip to content

v0.0.5

Choose a tag to compare

@github-actions github-actions released this 24 Sep 18:41
· 243 commits to main since this release
v0.0.5
08de39f

utter 0.0.5 puts speaker evidence on every word, so a host can decide who said a command word by word, before the utterance ends. Without a speaker model the output is identical to 0.0.4.

Added

Speaker evidence, recorded as TD-14. A host opens a speaker model directory in the layout vosk's SpkModel reads, vosk-model-spk-0.4 among them, and sets it on a recognizer: set_spk_model in Rust, SetSpkModel in Python, utter_spk_model_new and utter_recognizer_set_spk_model in C. Every word entry that is a word or [speech], in the partial, its readings, the final and the final's alternatives, then carries spk, the vector over its own span; spk_frames, the 10 ms frames pooled; and spk_start and spk_end, the span in samples on the clock of start_sample. Every partial and final carries the same keys over its speech. No key names a speaker: profiles, scores and thresholds are the host's.

The network computes a frame's row at most once, and only for frames a word's evidence pools or is likely to, over features normalised by a mean that looks back only. A word's evidence reaches a partial a median 40 ms after the word ends, and the same audio in the same blocks gives the same vectors. The evidence moves no word, partial or final to a later block. On the speaker page's streams, clips back to back, the model takes the real-time factor from 0.0117 to 0.0197, the median block from 0.060 to 0.078 ms and the 99th percentile from 2.86 to 3.26 ms. The stock wheel with its speaker model costs about as much in total but spends it on the block that closes an utterance, a median 15.5 ms there. Stage by stage against Kaldi's own binaries, the features agree within 4.6e-3 and the vectors within 1.6e-3. The vectors differ from the stock wheel's, which pools the whole utterance after a centred normalisation, so profiles and thresholds fitted on the wheel's vectors do not carry over; enrolment recordings serve as they are.

A new benchmark page, speaker evidence, measures it on 206 Speech Commands speakers. One word names its speaker among two enrolled speakers 95.4% of the time, against 48.4% for the stock wheel, which gives no vector for a word under half a second. A gate at 1% false accept passes 40.1% of words; TitaNet-small, measured beside it, passes 85.7%, and the roadmap now carries a stronger model.