Skip to content

Commit

Permalink
🐛 Added onnx dep for FunASR (wtf)
Browse files Browse the repository at this point in the history
- apparently for some reason, FunASR now requires onnx as a dependency without notice. so here we are.
  • Loading branch information
t41372 committed Dec 13, 2024
1 parent 5e33a4c commit 91c77f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ Here are the options you have for speech recognition:

`FunASR` (~~local~~) (Runs very fast even on CPU. Not sure how they did it)
- [FunASR](https://github.com/modelscope/FunASR?tab=readme-ov-file) is a Fundamental End-to-End Speech Recognition Toolkit from ModelScope that runs many ASR models. The result and speed are pretty good with the SenseVoiceSmall from [FunAudioLLM](https://github.com/FunAudioLLM/SenseVoice) at Alibaba Group.
- Install with `pip install -U funasr modelscope huggingface_hub`. Also, ensure you have torch (torch>=1.13) and torchaudio. Install them with `pip install torch torchaudio`
- Install with `pip install -U funasr modelscope huggingface_hub`. Also, ensure you have torch (torch>=1.13) and torchaudio. Install them with `pip install torch torchaudio onnx` (FunASR now requires `onnx` as well)
- It requires an internet connection on launch _even if the models are locally available_. See https://github.com/modelscope/FunASR/issues/1897

`Faster-Whisper` (local)
Expand Down
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.3"
__version__ = "0.4.4"
2 changes: 1 addition & 1 deletion utils/install_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def install_pip_dependencies(self):
# Install requirements.txt
pip_install_cmd = f"{activate_cmd} && pip install -r requirements.txt"
pip_install_cmd += (
" && pip install torch torchaudio funasr modelscope huggingface_hub"
" && pip install torch torchaudio funasr modelscope huggingface_hub onnx"
)

if platform.system().lower() == "windows":
Expand Down

0 comments on commit 91c77f7

Please sign in to comment.