# 天数智芯 天垓150 ASR(Sherpa-ONNX架构) ## 镜像构造 ```shell docker build -f ./Dockerfile.sherpa-onnx-bi150 -t . ``` 其中,基础镜像 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 \ 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" ```