Commit Graph

19 Commits

Author SHA1 Message Date
Wei Kang
8562711252 Implement context biasing with a Aho Corasick automata (#145)
* Implement context graph

* Modify the interface to support context biasing

* Support context biasing in modified beam search; add python wrapper

* Support context biasing in python api example

* Minor fixes

* Fix context graph

* Minor fixes

* Fix tests

* Fix style

* Fix style

* Fix comments

* Minor fixes

* Add missing header

* Replace std::shared_ptr with std::unique_ptr for effciency

* Build graph in constructor

* Fix comments

* Minor fixes

* Fix docs
2023-06-16 14:26:36 +08:00
Fangjun Kuang
5e2dc5ceea add streaming-server with web client (#164)
* add streaming-server with web client

* small fixes
2023-05-30 22:46:52 +08:00
Fangjun Kuang
80060c276d Begin to support CTC models (#119)
Please see https://k2-fsa.github.io/sherpa/onnx/pretrained_models/offline-ctc/nemo/index.html for a list of pre-trained CTC models from NeMo.
2023-04-07 23:11:34 +08:00
Fangjun Kuang
5d3c8edbc9 add python tests (#111) 2023-04-02 23:05:30 +08:00
manyeyes
3f7e0c23ac adding a python api for offline decode (#110) 2023-04-02 13:17:43 +08:00
eee
94d77fa52e remove sherpa_onnx.Display (#109)
* fix garbled console output with chinese characters

* use print to instead  sherpa_onnx.Display
2023-04-01 18:14:33 +08:00
eee
c0620a1fe1 fix garbled console output with chinese characters (#108) 2023-03-31 22:26:47 +08:00
Fangjun Kuang
6707ec4124 add offline websocket server/client (#98) 2023-03-29 21:48:45 +08:00
Fangjun Kuang
5572246253 Add non-streaming ASR (#92) 2023-03-26 08:53:42 +08:00
Fangjun Kuang
355c5ef541 fix typos in comments (#90) 2023-03-18 10:44:10 +08:00
manyeyes
2f9cd1007e add "import sys", (#89) 2023-03-16 10:49:37 +08:00
Fangjun Kuang
9d8fddef01 Support resampling (#77) 2023-03-03 16:42:33 +08:00
Fangjun Kuang
7f72c13d9a Code refactoring (#74)
* Don't reset model state and feature extractor on endpointing

* support passing decoding_method from commandline

* Add modified_beam_search to Python API

* fix C API example

* Fix style issues
2023-03-03 12:10:59 +08:00
Fangjun Kuang
343e732ccb Refactor python examples (#67) 2023-02-26 20:33:16 +08:00
Fangjun Kuang
fb1e24bebb Fix endpointing with microphone (#64) 2023-02-25 14:30:44 +08:00
Fangjun Kuang
e4b79ad34b Add Python websocket client (#63) 2023-02-24 22:46:30 +08:00
Fangjun Kuang
124384369a Add endpointing (#54) 2023-02-22 15:35:55 +08:00
Yifan Yang
7ece27cd30 Add python-api-examples: speech-recognition-from-microphone.py (#46) 2023-02-20 19:44:12 +08:00
Fangjun Kuang
ea09d5fbc5 Add Python API (#31) 2023-02-19 19:36:03 +08:00