v1.12.31

k2-fsa/sherpa-onnxv1.12.31Mar 20, 2026by github-actions[bot]

AI Summary

Refactored TTS engines to a new Generate API and added extensive Rust API support for audio tagging and speaker diarization.

Key Highlights

  • Refactored MatchaTTS, KokoroTTS, KittenTTS, and VITS to use a new Generate API.
  • Added Rust API for audio tagging, speaker embedding, diarization, and KWS.
  • Added documentation for C, CXX, Rust, and Dart APIs.

New Features

  • TTS refactoring
  • Rust API (audio tagging, speaker embedding/diarization, KWS)
  • Documentation updates

Full Release Notes

## What's Changed
* Fix building har for OHOS by @csukuangfj in https://github.com/k2-fsa/sherpa-onnx/pull/3361
* Refactor MatchaTTS to use the new Generate API. by @csukuangfj in https://github.com/k2-fsa/sherpa-onnx/pull/3362
* Refactor Kokoro TTS to use the new Generate API by @csukuangfj in https://github.com/k2-fsa/sherpa-onnx/pull/3363
* Refactor KittenTTS to use the new Generate API by @csukuangfj in https://github.com/k2-fsa/sherpa-onnx/pull/3364
* Refactor VITS to use the new Generate API by @csukuangfj in https://github.com/k2-fsa/sherpa-onnx/pull/3365
* Add Rust API examples for TTS by @csukuangfj in https://github.com/k2-fsa/sherpa-onnx/pull/3366
* Fix swift tests by @csukuangfj in https://github.com/k2-fsa/sherpa-onnx/pull/3367
* Add Rust API for audio tagging by @csukuangfj in https://github.com/k2-fsa/sherpa-onnx/pull/3368
* Add Rust API for speaker embedding extractor and manager by @csukuangfj in https://github.com/k2-fsa/sherpa-onnx/pull/3369
* Add Rust API for speaker diarization by @csukuangfj in https://github.com/k2-fsa/sherpa-onnx/pull/3370
* Refactor Rust API for speech denoiser by @csukuangfj in https://github.com/k2-fsa/sherpa-onnx/pull/3371
* Add doc for c api and cxx api by @csukuangfj in https://github.com/k2-fsa/sherpa-onnx/pull/3374
* Add link to C API doc by @csukuangfj in https://github.com/k2-fsa/sherpa-onnx/pull/3375
* Add doc for Rust API by @csukuangfj in https://github.com/k2-fsa/sherpa-onnx/pull/3376
* Add Rust API for KWS, offline punctuation and spoken language identification by @csukuangfj in https://github.com/k2-fsa/sherpa-onnx/pull/3372
* Add doc for Dart API by @csukuangfj in https://github.com/k2-fsa/sherpa-onnx/pull/3377
* Add more doc for Rust API by @csukuangfj in https://github.com/k2-fsa/sherpa-onnx/pull/3378
* Release v1.12.31 by @csukuangfj in https://github.com/k2-fsa/sherpa-onnx/pull/3379


**Full Changelog**: https://github.com/k2-fsa/sherpa-onnx/compare/v1.12.30...v1.12.31