Commit Graph

452 Commits

Author SHA1 Message Date
Fangjun Kuang
0d44df9b67 Release v1.12.5 (#2368) 2025-07-10 15:31:26 +08:00
Fangjun Kuang
fd9a687ec2 Add Pascal/Go/C#/Dart API for NeMo Canary ASR models (#2367)
Add support for the new NeMo Canary ASR model across multiple language bindings by introducing a Canary model configuration and setter method on the offline recognizer.

- Define Canary model config in Pascal, Go, C#, Dart and update converter functions
- Add SetConfig API for offline recognizer (Pascal, Go, C#, Dart)
- Extend CI/workflows and example scripts to test non-streaming Canary decoding
2025-07-10 14:53:33 +08:00
Askars Salimbajevs
f0960342ad Add LODR support to online and offline recognizers (#2026)
This PR integrates LODR (Level-Ordered Deterministic Rescoring) support from Icefall into both online and offline recognizers, enabling LODR for LM shallow fusion and LM rescore.

- Extended OnlineLMConfig and OfflineLMConfig to include lodr_fst, lodr_scale, and lodr_backoff_id.
- Implemented LodrFst and LodrStateCost classes and wired them into RNN LM scoring in both online and offline code paths.
- Updated Python bindings, CLI entry points, examples, and CI test scripts to accept and exercise the new LODR options.
2025-07-09 16:23:46 +08:00
Fangjun Kuang
df4615ca1d Add C/CXX/JavaScript API for NeMo Canary models (#2357)
This PR introduces support for NeMo Canary models across C, C++, and JavaScript APIs 
by adding new Canary configuration structures, updating bindings, extending examples,
and enhancing CI workflows.

- Add OfflineCanaryModelConfig to all language bindings (C, C++, JS, ETS).
- Implement SetConfig methods and NAPI wrappers for updating recognizer config at runtime.
- Update examples and CI scripts to demonstrate and test NeMo Canary model usage.
2025-07-07 23:38:04 +08:00
Fangjun Kuang
0e738c356c Add C++ runtime and Python API for NeMo Canary models (#2352) 2025-07-07 17:03:49 +08:00
Fangjun Kuang
e6b388067d Release v1.12.4 (#2343) 2025-07-04 19:41:02 +08:00
Fangjun Kuang
3bf986d08d Support non-streaming zipformer CTC ASR models (#2340)
This PR adds support for non-streaming Zipformer CTC ASR models across 
multiple language bindings, WebAssembly, examples, and CI workflows.

- Introduces a new OfflineZipformerCtcModelConfig in C/C++, Python, Swift, Java, Kotlin, Go, Dart, Pascal, and C# APIs
- Updates initialization, freeing, and recognition logic to include Zipformer CTC in WASM and Node.js
- Adds example scripts and CI steps for downloading, building, and running Zipformer CTC models

Model doc is available at
https://k2-fsa.github.io/sherpa/onnx/pretrained_models/offline-ctc/icefall/zipformer.html
2025-07-04 15:57:07 +08:00
Fangjun Kuang
9fe25cc06f Fix VAD+ASR C++ example. (#2335)
It was not able to handle short audios., e.g., 2.1 seconds.
2025-07-02 15:52:49 +08:00
Fangjun Kuang
e25634ac39 Release v1.12.3 (#2322) 2025-06-27 10:55:46 +08:00
Fangjun Kuang
f835642b1c Support Zipformer transducer ASR with whisper features. (#2321)
Adds support for Zipformer transducer ASR models that use Whisper-style 
features by introducing a new feature flag, parsing metadata, 
and integrating per-chunk normalization.

- Introduce UseWhisperFeature in the model interface and Zipformer implementation
- Parse "feature" metadata to set the whisper flag and wire it into the recognizer
- Update feature extraction logic to handle Whisper filterbanks with early returns
2025-06-27 10:40:41 +08:00
Fangjun Kuang
54bf3732d9 Support zipformer CTC ASR with whisper features. (#2319) 2025-06-27 00:15:11 +08:00
Fangjun Kuang
056da0528d Release v1.12.2 (#2314) 2025-06-25 00:37:55 +08:00
Fangjun Kuang
bda427f4b2 Add API to get version information (#2309) 2025-06-25 00:22:21 +08:00
Fangjun Kuang
6982b86c66 Support extra languages in multi-lang kokoro tts (#2303) 2025-06-20 11:22:52 +08:00
Fangjun Kuang
3878170991 Fixes #2172 (#2301)
Handle the case when the input audio contains no speeches.
2025-06-18 16:48:48 +08:00
GlocKieHuan
a135324c8c Fix isspace on windows in debug build (#2042) 2025-06-09 10:27:16 +08:00
Fangjun Kuang
1fabc6c79a Fix rknn for multi-threads (#2274) 2025-06-03 20:28:57 +08:00
Fangjun Kuang
2b2788332e Add C++ support for UVR models (#2269) 2025-06-01 17:22:08 +08:00
mtdxc
e0ca224b76 fixed mfc build error (#2267)
Co-authored-by: cqm <cqm@97kid.com>
2025-05-31 23:32:35 +08:00
mtdxc
613e8084c2 move portaudio common record code to microphone (#2264)
Co-authored-by: cqm <cqm@97kid.com>
2025-05-31 21:48:41 +08:00
Fangjun Kuang
8e6826521e Update kaldi-native-fbank. (#2259)
Now it supports FFT of an even number, not necessarily a power of 2.
2025-05-29 10:34:22 +08:00
Fangjun Kuang
16a3449945 Build APK with replace.fst (#2254) 2025-05-28 12:19:29 +08:00
yegyu
2107afdbd4 Add include headers for __ANDROID_API__,__OHOS__ (#2251) 2025-05-27 14:44:06 +08:00
Fangjun Kuang
716ba8317b Add C++ runtime for spleeter about source separation (#2242) 2025-05-23 22:30:57 +08:00
Fangjun Kuang
2e9e0b4e9e Add Android demo for real-time ASR with non-streaming ASR models. (#2214) 2025-05-14 19:10:44 +08:00
Fangjun Kuang
0dfafed7d0 Support homophone replacer in Android asr demo. (#2210) 2025-05-14 10:58:35 +08:00
Fangjun Kuang
9a0e16f092 Support sending is_eof for online websocket server. (#2204)
is_final=true means an endpoint is detected.

is_eof=true means all received samples have been processed
by the server.
2025-05-13 14:49:22 +08:00
Fangjun Kuang
028b8f2718 Add C++ example for streaming ASR with SenseVoice. (#2199) 2025-05-11 00:23:32 +08:00
Fangjun Kuang
a6834f6556 Show verbose logs in homophone replacer (#2194) 2025-05-09 10:48:30 +08:00
Fangjun Kuang
562a5f7d9b Fix building wheels for macOS (#2192) 2025-05-08 19:15:33 +08:00
Fangjun Kuang
f9c99032c3 Avoid NaN in feature normalization. (#2186) 2025-05-08 11:22:47 +08:00
Fangjun Kuang
f00066db88 Add C++ runtime for parakeet-tdt-0.6b-v2. (#2181) 2025-05-06 16:59:01 +08:00
Fangjun Kuang
4a7a974a04 More fix for building without tts (#2162) 2025-04-29 16:31:31 +08:00
Fangjun Kuang
f64c58342b Support replacing homonphonic phrases (#2153) 2025-04-27 15:31:11 +08:00
Fangjun Kuang
72742d5472 Fix punctuations for kokoro tts 1.1-zh. (#2146) 2025-04-24 15:08:47 +08:00
Karel Vesely
6a1efd8ac2 online-transducer: reset the encoder toghter with 2 previous output symbols (non-blank) (#2129)
* online-transducer: reset the encoder toghter with 2 previous output symbols (non-blank)

- added `reset_encoder` boolean member into the OnlineRecognizerConfig class
- by default the encoder is not reset

* pybind11, adding empty symbols for disabled modules (tts, diarization)

* reset_encoder, add default value (false) [pybind11]
2025-04-24 08:18:11 +08:00
Karel Vesely
f3d23aa170 cmake build, configurable from env (#2115)
- make sure the defaults in `cmake/cmake_extension.py` variable
  `extra_cmake_args` can be overriden by `cmake_args` from
  `SHERPA_ONNX_CMAKE_ARGS` env variable
- fix a bug in `sherpa-onnx/csrc/parse-options.cc` which appears
  when using `-DSHERPA_ONNX_ENABLE_CHECK=ON`
- avoid copying binaries when these are disabled
2025-04-16 21:26:54 +08:00
Fangjun Kuang
7a78f2eb7a Fix building for HarmonyOS (#2125) 2025-04-15 18:00:07 +08:00
Fangjun Kuang
e3bce847c0 Support running sherpa-onnx with RK NPU on Android (#2124) 2025-04-15 16:42:28 +08:00
Askars Salimbajevs
664b461d01 Disable strict hotword matching mode for offline transducer (#1837)
* Disable strict hotword matching mode for offline transducer. Also introduces new variable, so that later this mode can be switched on in the runtime.

* remove strict mode variable

---------

Co-authored-by: Askars Salimbajevs <askars.salimbajevs@tilde.lv>
2025-04-03 22:52:19 +08:00
Askars Salimbajevs
18a6ed5ddc Preserve more context after endpointing in transducer (#2061) 2025-04-02 23:33:47 +08:00
Fangjun Kuang
0de7e1b9f0 Add C++ and Python API for Dolphin CTC models (#2085) 2025-04-02 19:09:00 +08:00
Fangjun Kuang
1316719e23 Fix building for android (#2081) 2025-04-01 19:36:40 +08:00
Fangjun Kuang
a11e359c11 Refactor rknn code (#2079) 2025-04-01 16:54:53 +08:00
Fangjun Kuang
8e51a97550 Add C++ runtime for silero_vad with RKNN (#2078) 2025-04-01 15:56:56 +08:00
Fangjun Kuang
0703bc1b86 Add CXX API for VAD (#2077) 2025-04-01 14:51:43 +08:00
Anders Xiao
ce196fceae fix dml with preinstall ort (#2066) 2025-03-30 12:07:19 +08:00
niansa/tuxifan
9d23606ee6 Allow building repository as CMake subdirectory (#2059)
* Use PROJECT_SOURCE_DIR rather than CMAKE_SOURCE_DIR to allow building as subdirectory

* Also use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR in c/cxx api examples

* Only build examples by default when not building as subdirectory

* Do not suggest building binaries either

---------

Co-authored-by: user <user@mail.tld>
2025-03-29 06:27:59 +08:00
Fangjun Kuang
a5dd0cdfc3 Fix length scale for kokoro tts (#2060) 2025-03-27 10:52:01 +08:00
yourengod
bd61c1d8e5 Change scale factor to 32767 (#2056) 2025-03-26 10:44:49 +08:00