Commit Graph

377 Commits

Author SHA1 Message Date
Fangjun Kuang
a25075101c Build sherpa-onnx as a single shared library (#1078)
When `-D BUILD_SHARED_LIBS=ON` is passed to `cmake`, it builds a single shared library.

Specifically, 

- For C APIs, it builds `libsherpa-onnx-c-api.so`
- For Python APIs, it builds `_sherpa_onnx.cpython-xx-xx.so`
- For Kotlin and Java APIs, it builds `libsherpa-onnx-jni.so`

There is no `libsherpa-onnx-core.so` any longer.

Note it affects only shared libraries.
2024-07-06 16:41:54 +08:00
Manix
55decb7bee Add config for TensorRT and CUDA execution provider (#992)
Signed-off-by: manickavela1998@gmail.com <manickavela1998@gmail.com>
Signed-off-by: manickavela1998@gmail.com <manickavela.arumugam@uniphore.com>
2024-07-05 15:18:37 +08:00
Fangjun Kuang
f5e9a162d1 Publish flutter packages for Android (#1074) 2024-07-04 20:07:07 +08:00
Fangjun Kuang
6cb018184e Fix for silero vad v5. (#1065)
The network input is 64 + 512 samples instead of 512 samples for 16kHz.
2024-06-30 08:57:23 +08:00
Fangjun Kuang
61c7eb3063 Support silero_vad version 5 (#1064) 2024-06-29 11:45:04 +08:00
Fangjun Kuang
8c4f576f1b Support .Net framework 2.0 (#1062) 2024-06-28 11:27:19 +08:00
Fangjun Kuang
598c12c4e5 Fix CI tests (#1061) 2024-06-27 18:05:18 +08:00
Fangjun Kuang
03ebdf3fc6 Fix possible segfault in C API. (#1059) 2024-06-26 09:57:19 +08:00
Fangjun Kuang
2f8c489698 Publish pre-built jni libs for windows and osx (#1056) 2024-06-25 11:59:04 +08:00
Fangjun Kuang
5cce159cf3 Fix passing C# string to C++ (#1055) 2024-06-25 10:52:59 +08:00
Fangjun Kuang
a3bac19c54 fix a bug for wenet streaming model. (#1054)
* fix a bug for wenet streaming model.

The chunk shift was wrong.
See
https://github.com/wenet-e2e/wenet/blob/main/runtime/core/decoder/asr_model.cc#L15
and
https://github.com/wenet-e2e/wenet/blob/main/runtime/core/decoder/asr_model.cc#L28
2024-06-24 21:52:54 +08:00
Fangjun Kuang
1f95bff719 Add non-streaming zipformer Android APK (#1052) 2024-06-24 16:22:19 +08:00
Fangjun Kuang
9dd0e03568 Enable to stop TTS generation (#1041) 2024-06-22 18:18:36 +08:00
Fangjun Kuang
36336b31f4 Build Android APK for Thai (#1036) 2024-06-20 18:05:57 +08:00
Zhong-Yi Li
675fb1574f offline transducer: treat unk as blank (#1005)
Co-authored-by: chungyi.li <chungyi.li@ailabs.tw>
2024-06-19 20:52:42 +08:00
Fangjun Kuang
a11c859971 Support clang-tidy (#1034) 2024-06-19 20:51:57 +08:00
SilverSulfide
656b9fa1c8 Add Python API support for Offline LM rescoring (#1033) 2024-06-19 16:29:37 +08:00
Fangjun Kuang
6789c909d2 Inverse text normalization API of streaming ASR for various programming languages (#1022) 2024-06-18 13:42:17 +08:00
Fangjun Kuang
349d957da2 Add inverse text normalization for online ASR (#1020) 2024-06-17 18:39:23 +08:00
Fangjun Kuang
6e09933d99 Inverse text normalization API for other programming languages (#1019) 2024-06-17 17:02:39 +08:00
Fangjun Kuang
b0f7ed3ee3 Add inverse text normalization for non-streaming ASR (#1017) 2024-06-17 14:28:53 +08:00
Fangjun Kuang
dd69a1b56b Release v1.9.30 (#1016) 2024-06-17 11:57:38 +08:00
Fangjun Kuang
e1201225f2 Add Android APK for Korean (#1015) 2024-06-16 19:17:15 +08:00
Fangjun Kuang
99a9da19de add example description for the dart package (#1011) 2024-06-15 14:52:19 +08:00
Fangjun Kuang
e52d32b95b Add TTS API and examples for Dart (#1010) 2024-06-15 14:30:36 +08:00
Fangjun Kuang
d94506698d Add non-streaming ASR examples for Dart API (#1007) 2024-06-14 18:40:16 +08:00
Fangjun Kuang
20a21133af Use CI to publish dart packages (#1001) 2024-06-14 11:50:55 +08:00
Fangjun Kuang
d08cc04567 Add VAD example for Dart API (#996) 2024-06-14 10:37:16 +08:00
Ikko Eltociear Ashimine
155f22d511 Update features.h (#994) 2024-06-12 15:47:44 +08:00
Fangjun Kuang
208da78343 Limit the maximum segment length for VAD. (#990) 2024-06-12 10:49:37 +08:00
Fangjun Kuang
1a43d1e37f Support getting word IDs for CTC HLG decoding. (#978) 2024-06-06 14:22:39 +08:00
Manix
69347ffc8f Support TensorRT provider (#921)
Signed-off-by: manickavela1998@gmail.com <manickavela1998@gmail.com>
Signed-off-by: manickavela1998@gmail.com <manickavela.arumugam@uniphore.com>
2024-06-06 10:45:28 +08:00
Fangjun Kuang
7e0931c762 Fix punctuation (#976) 2024-06-05 11:23:19 +08:00
Fangjun Kuang
fd5a0d1e00 Add C++ runtime for Tele-AI/TeleSpeech-ASR (#970) 2024-06-05 00:26:40 +08:00
9728Lin
9edb78e21b Update c-api.h to hotwords (#962) 2024-06-03 16:26:12 +08:00
Fangjun Kuang
a02e43d83c Wrap offline ASR APIs to dart (#961) 2024-06-02 19:11:27 +08:00
Fangjun Kuang
f1cff83ef9 Add address sanitizer and undefined behavior sanitizer (#951) 2024-05-31 13:17:01 +08:00
Wei Kang
a38881817c Support customize scores for hotwords (#926)
* Support customize scores for hotwords

* Skip blank lines
2024-05-31 12:34:30 +08:00
Fangjun Kuang
a689249f88 Fix building for Android (#949) 2024-05-31 10:27:29 +08:00
Fangjun Kuang
082f230dfb Fix nemo streaming transducer greedy search (#944) 2024-05-30 15:31:10 +08:00
Sangeet Sagar
3f472a9993 Add C++ runtime for *streaming* faster conformer transducer from NeMo. (#889)
Co-authored-by: sangeet2020 <15uec053@gmail.com>
2024-05-30 13:55:03 +08:00
Fangjun Kuang
49d66ec358 Add Dart API for streaming ASR (#933) 2024-05-30 12:21:09 +08:00
Leo Huang
d45223034c Added tokens, tokens_arr and json for offline recongnizer result (#936)
Co-authored-by: leo <webmaster@360converter.com>
2024-05-29 12:53:28 +08:00
FakeEnd
a6c9b7986f Changed the comment to the API GetKeywordResult input parameter description (#937) 2024-05-29 12:45:58 +08:00
Fangjun Kuang
50a2eaa41f Reset encoder states on endpointing for streaming transducer. (#924) 2024-05-28 17:06:17 +08:00
Fangjun Kuang
5860e45b4c Add KWS examples for Java API (#930) 2024-05-28 15:49:54 +08:00
Fangjun Kuang
bcaa6df389 Add VAD demo for Java API (#928) 2024-05-28 14:59:47 +08:00
hantengc
1371c6b3f0 提供设置关键词的api,方便动态调整关键词来进行识别 (#923) 2024-05-27 19:07:26 +08:00
Fangjun Kuang
49ea59d4ff Add Flutter GUI example for VAD with a microphone. (#905) 2024-05-24 23:48:12 +08:00
Dadoou
4fc0a1dc64 Update offline-ctc-greedy-search-decoder.cc (#917)
Bug fixes.
Z_O_O will be decoded as ZO instead of ZOO.
To fix this, prev_id should update every time.
2024-05-24 22:31:56 +08:00