k2-fsa / sherpa-onnx

Speech-to-text, text-to-speech, speaker diarization, and VAD using next-gen Kaldi with onnxruntime without Internet connection. Support embedded systems, Android, iOS, Raspberry Pi, RISC-V, x86_64 servers, websocket server/client, C/C++, Python, Kotlin, C#, Go, NodeJS, Java, Swift, Dart, JavaScript, Flutter, Object Pascal, Lazarus, Rust
https://k2-fsa.github.io/sherpa/onnx/index.html
Apache License 2.0
3.61k stars 421 forks source link

The command line tool named 'sherpa-onnx-cli' for converting hotwords to tokens was not found. #656

Closed rbt2000 closed 1 month ago

rbt2000 commented 8 months ago

Thank you to the entire team for your hard work and dedication. Your contributions have made a significant impact on this project. Your work has been immensely beneficial to me.

NS-ice commented 1 month ago

Did you solve it? I have the same problem. berry@berry:~/sherpa-onnx/build/bin $ sherpa-onnx-keyword-spotter --help -bash: sherpa-onnx-keyword-spotter: command not found berry@berry:~/sherpa-onnx/build/bin $ sherpa-onnx-cli text2token --help -bash: sherpa-onnx-cli: command not found these command tools can be found.

NS-ice commented 1 month ago

It looks like you need to install Python package. https://k2-fsa.github.io/sherpa/onnx/python/install.html#check-your-installation

Extracting sherpa_onnx-1.10.27-py3.11-linux-aarch64.egg to /usr/local/lib/python3.11/dist-packages
Adding sherpa-onnx 1.10.27 to easy-install.pth file
**Installing sherpa-onnx-cli script to /usr/local/bin**

Installed /usr/local/lib/python3.11/dist-packages/sherpa_onnx-1.10.27-py3.11-linux-aarch64.egg
Processing dependencies for sherpa-onnx==1.10.27
Finished processing dependencies for sherpa-onnx==1.10.27
berry@berry:~/sherpa-onnx $ sherpa-onnx-cli
Usage: sherpa-onnx-cli [OPTIONS] COMMAND [ARGS]...

  The shell entry point to sherpa-onnx.

Options:
  --help  Show this message and exit.
csukuangfj commented 1 month ago

pip install sherpa-onnx

should fix the issue.