Skip to content

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 18 Oct 20:31
· 7 commits to main since this release

Added

  • Support for the new seda-v0.2 model, now the default: 6.38 WER on FLEURS-TR test in the accurate mode, 7.26 in balanced (seda-v0.1: 11.60).
  • mode presets: fast, balanced (default) and accurate, plus use_lm, two_pass and chunk to override them.
  • Second pass (two_pass, part of accurate): 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 of endpoint_silence seconds (default 0.25 s).
  • Stream.end_utterance() returns the final text and starts the next utterance. Stream.cut() returns an Utterance whose finalize() can run in another thread while the stream keeps accepting audio.
  • Optional formatter (punctuate=True, needs the format extra): digits, punctuation, casing and apostrophes. sedalib.itn converts spoken numbers to digits without the extra.
  • Stream methods 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=False now 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 balanced mode, with or without use_lm. It lacks the files for fast, 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