Skip to content

Commit 501401b

Browse files
committed
Merge branch 'main' of https://github.com/modelscope/FunASR
2 parents b101218 + 5d8349a commit 501401b

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
No local setup? Open the [Colab quickstart](./examples/colab/) to transcribe a public sample or upload your own audio in a browser.
3434

3535
```bash
36+
pip install torch torchaudio
3637
pip install funasr
3738
```
3839

@@ -115,6 +116,7 @@ Trying FunASR for the first time? Use the [Colab quickstart](./examples/colab/)
115116
## Installation
116117

117118
```bash
119+
pip install torch torchaudio
118120
pip install funasr
119121
```
120122

@@ -124,7 +126,7 @@ pip install funasr
124126
git clone https://github.com/modelscope/FunASR.git && cd FunASR
125127
pip install -e ./
126128
```
127-
Requirements: Python ≥ 3.8, PyTorch ≥ 1.13, torchaudio
129+
Requirements: Python ≥ 3.8. Install [PyTorch + torchaudio](https://pytorch.org/get-started/locally/) first (matching your CUDA version), then `pip install funasr`.
128130

129131
</details>
130132

@@ -182,8 +184,9 @@ result = model.generate(input="audio.wav", granularity="utterance")
182184

183185
```bash
184186
# OpenAI-compatible API (recommended)
185-
pip install funasr fastapi uvicorn python-multipart
186-
funasr-server --model sensevoice --device cuda
187+
pip install torch torchaudio
188+
pip install funasr vllm fastapi uvicorn python-multipart
189+
funasr-server --device cuda
187190
# → POST /v1/audio/transcriptions at localhost:8000
188191
```
189192

docs/vllm_guide.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
## 1. Installation & Environment
3636

3737
```bash
38+
pip install torch torchaudio
3839
pip install funasr>=1.3.0
3940
pip install vllm>=0.12.0
4041
pip install safetensors tiktoken websockets regex fastapi uvicorn python-multipart

docs/vllm_guide_zh_v2.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
## 1. 安装与环境
3636

3737
```bash
38+
pip install torch torchaudio
3839
pip install funasr>=1.3.0
3940
pip install vllm>=0.12.0
4041
pip install safetensors tiktoken websockets regex fastapi uvicorn python-multipart

0 commit comments

Comments
 (0)