unstale

pypi / sherpa-onnx-core

sherpa-onnx-core

What changed in sherpa-onnx-core 1 to 2, from its official release notes, upgrade guides and advisories. Also covers sherpa-onnx. Sources checked 2026-10-27.

2 breaking1 security18 new APIs and options2 behavior and defaults1 tooling23 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

sherpa-onnx-core 231 changes

Breaking changes 2

  • Removes espeak-ng and piper-phonemize from sherpa-onnx.

    2.0.0release notes

  • Raises ValueError when create_stream() cannot encode keywords.

    2.0.0release notes

Security 1

  • Fixes a heap overflow for short text at speed greater than 1.

    2.0.0release notes

New APIs and options 10

  • Adds an asynchronous creation API to the Dart OfflineRecognizer.

    2.0.1release notes

  • Adds target-speaker voice isolation support and APIs for Python, C/C++, JavaScript, Java, Kotlin, C#, Swift, Go, Dart, Rust, and Pascal.

    2.0.1release notes

  • Supports prompt options per stream for FunASR Nano.

    2.0.0release notes

  • Adds HLG decoding support for offline CTC models across the C, CXX, JNI/Kotlin/Java, and WASM APIs.

    2.0.0release notes

  • Adds the --input-sample-rate option to online-websocket-server.

    2.0.0release notes

  • Supports hotwords with modified_beam_search for streaming NeMo transducer models.

    2.0.0release notes

  • Adds OfflineDiacritization to the Kotlin API.

    2.0.0release notes

  • Adds a Node.js addon for Windows arm64.

    2.0.0release notes

  • Adds GetEmbedding to SpeakerEmbeddingManager.

    2.0.0release notes

  • Ships arm64 libraries in the sherpa_onnx_windows Flutter package.

    2.0.0release notes

Behavior and default changes 2

  • Uses librosa-style fbank for streaming NeMo CTC models.

    2.0.1release notes

  • Derives lang2id from the model vocabulary and warns instead of silently falling back to English.

    2.0.0release notes

Fixes and other changes 16

  • Fixes decoder positions for generated tokens.

    2.0.1release notes

  • Keeps Kokoro STFT convolutions in float32 when quantizing to int8.

    2.0.1release notes

  • Fixes character loss for byte-level-BPE tokens in whisper and cohere recognizers.

    2.0.0release notes

  • Forwards provider config keys to the CUDA execution provider.

    2.0.0release notes

  • Converts C++ exceptions in recognizer and punctuation constructors to Java exceptions.

    2.0.0release notes

  • Fixes JSON escaping in online and offline recognition results.

    2.0.0release notes

  • Fixes word boundaries, OOV words, and Unicode handling in lexicon TTS.

    2.0.0release notes

  • Feeds the decoder encoder_attention_mask at raw audio length.

    2.0.0release notes

  • Allows the na language tag for Supertonic.

    2.0.0release notes

  • Uses NeMo's additive log-zero guard for NeMo mel features.

    2.0.0release notes

  • Fixes timestamps after filtering special tokens.

    2.0.0release notes

  • Prevents omnilingual ASR from aborting on input shorter than 400 samples.

    2.0.0release notes

  • C API creation functions catch C++ exceptions and return NULL.

    2.0.0release notes

  • Python methods check embedding size and validate speaker embedding dimensions before releasing the GIL.

    2.0.0release notes

  • Python examples pad 1 second of silence at the endpoint to mirror C++ behavior.

    2.0.0release notes

  • Widens VAD sample positions to int64_t to fix long-stream SIGSEGV.

    2.0.0release notes

sherpa-onnx-core 116 changes

New APIs and options 8

  • Adds the em_santa voice for Kokoro v1.0.

    1.13.8release notes

  • Adds Go API support for Windows arm64.

    1.13.8release notes

  • Adds Go bindings for speaker diarization confidence computation.

    1.13.8release notes

  • Adds Intel NPU support through OpenVINO.

    1.13.8release notes

  • Adds conversion scripts for running Nabra-82M Arabic TTS with the Kokoro runtime.

    1.13.8release notes

  • Adds per-segment confidence computation for OfflineSpeakerDiarization.

    1.13.8release notes

  • Supports using sherpa-onnx with Python in Termux on Android.

    1.13.8release notes

  • Adds confidence computation support for speaker diarization to JNI.

    1.13.8release notes

Tooling 1

  • Supports building within a Termux terminal on Android devices.

    1.13.8release notes

Fixes and other changes 7

  • Fixes empty transcripts when the first decoded token is eos.

    1.13.8release notes

  • Fixes hallucinated sentences on silent audio.

    1.13.8release notes

  • Fixes hallucinated text on silent audio.

    1.13.8release notes

  • Fixes hallucinated text on silent audio.

    1.13.8release notes

  • Uploads an int8 model for Nabra-82M Arabic TTS.

    1.13.8release notes

  • Fixes wrapper.py raising NameError because feat_dim is undefined.

    1.13.8release notes

  • Fixes a data race on the shared PRNG in FunASR-Nano and Qwen3-ASR offline recognizers.

    1.13.8release notes