asr / README.md
HoneyTian's picture
update
26dfa9a
---
title: ASR
emoji: 📈
colorFrom: purple
colorTo: green
sdk: docker
pinned: false
license: apache-2.0
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
### ASR
```text
docker build -t asr:v20240511_1022 .
docker run -itd --name ASR \
--network host \
-v /data/tianxing/PycharmProjects/asr/data/:/home/user/app/data/ \
-v /data/tianxing/PycharmProjects/asr/pretrained_models/:/home/user/app/pretrained_models/ \
asr:v20240511_1022 /bin/bash
```
```text
docker cp ASR:/tmp/asr/si_chuan_hua.wav /home/nlp
```
### 异常1
https://blog.csdn.net/sinat_28442665/article/details/126154991
```text
ImportError: libpython3.8.so.1.0: cannot open shared object file: No such file or directory
```
查找 libpython3.8.so.1.0 共享库所在目录
```text
find / -name libpython3.8.so.1.0
```
添加 LD_LIBRARY_PATH
```text
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/miniconda3/envs/ASR/lib/
```
### 异常2
https://blog.csdn.net/qq_38225558/article/details/128641561
```text
ImportError: libk2_torch_api.so: cannot open shared object file: No such file or directory
```
查找 libk2_torch_api.so 共享库所在目录
```text
find / -name libk2_torch_api.so
```
添加 LD_LIBRARY_PATH
```text
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/python3.8/site-packages/k2/lib/
```