Files
2026-04-08 06:41:00 +00:00

28 lines
957 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 天数智芯 天垓150 ASRSherpa-ONNX架构
## 镜像构造
```shell
docker build -f ./Dockerfile.sherpa-onnx-bi150 -t <your_image> .
```
其中,基础镜像 corex:4.3.8 通过联系天数智芯智铠100厂商技术支持可获取
## 使用说明
### 使用 FastAPI 启动ASR服务
例如:
```shell
docker run -dit -v /usr/src:/usr/src -v /lib/modules:/lib/modules --device=/dev/iluvatar0:/dev/iluvatar0 \
-v /mnt/contest_ceph/leaderboard/modelHubXC/mariolux/sherpa-onnx-dolphin-small-ctc-multi-lang-2025-04-02:/model \
--network=host <your_image> \
main_sherpa.py --model_dir /model --model_type dolphon_ctc --offline_model --use_gpu --port 1111
```
具体参数代码设定可参考代码文件
### 测试ASR服务
项目根路径`sample_data`目录下附带上了中文的测试音频和附带内容
```shell
curl -X POST http://localhost:1111/transduce \
-F "audio=@../sample_data/lei-jun-test.wav" \
-F "lang=zh"
```