Repository navigation
v1.0.0
Added
- Support for the new seda-v0.2 model, now the default: 6.38 WER on FLEURS-TR test in the
accuratemode, 7.26 inbalanced(seda-v0.1: 11.60). modepresets:fast,balanced(default) andaccurate, plususe_lm,two_passandchunkto override them.- Second pass (
two_pass, part ofaccurate): each utterance is decoded again with 20 s of left context and beam search + LM. It runs in a background thread while the utterance is spoken, so the final text arrives about 0.4 s after the speech. - End of speech by Silero VAD v6 (
vad, on by default when the model ships it), after a pause ofendpoint_silenceseconds (default 0.25 s). Stream.end_utterance()returns the final text and starts the next utterance.Stream.cut()returns anUtterancewhosefinalize()can run in another thread while the stream keeps accepting audio.- Optional formatter (
punctuate=True, needs theformatextra): digits, punctuation, casing and apostrophes.sedalib.itnconverts spoken numbers to digits without the extra. Streammethods may be called from different threads.- The demo has a control panel for all options with an Apply button that loads and warms up the models. It shows live formatted text and how long the final text took after the speech ended.
- Tests (
uv run pytest), run in CI after lint against seda-v0.2 and seda-v0.1.
Changed
use_lm=Falsenow uses greedy search instead of beam search without the LM, which is faster.Stream.reset()also drops audio that was accepted but not decoded yet. It used to leak into the next utterance.- The silence appended at the end of an utterance depends on the chunk size (0.9 s for 0.64 s chunks, 1.5 s for 1.28 s chunks).
Fixed
- Without the VAD, a long silence before any speech no longer counts as an endpoint, and it no longer splits the utterance that follows.
Compatibility
- seda-v0.1 still works in the
balancedmode, with or withoutuse_lm. It lacks the files forfast,accurate, the VAD and the formatter. - sedalib 0.1 and 0.2 work with seda-v0.2 as before: they load the 1.28 s streaming model at the repo root. sedalib 0.1.0 pads too little silence for 1.28 s chunks and may drop the last word, so upgrade.
Full Changelog: v0.2.1...v1.0.0