Description
Notice: In order to resolve issues more efficiently, please raise issue following the template.
(注意:为了更加高效率解决您遇到的问题,请按照模板提问,补充细节)
🐛 Bug
The code is currently using a default value of ("/Users/zhifu/funasr1.0/test_local/wav.scp", "/Users/zhifu/funasr1.0/test_local/text.txt")
for the scp_file_list if one isn't found in the overrides/config. This path is super unlikely to be found on most computers resulting in a confusing "file not found" error rather than the actual "you didn't give me a list" error. It might be helpful to either default to all the "scp" files found in the current folder or to not default at all and raise the error "I need a list" instead.
To Reproduce
Steps to reproduce the behavior (always include the command you ran):
- Run cmd
$ sensevoice2jsonl
with no arguments and no config. - See error:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/zhifu/funasr1.0/test_local/wav.scp'
Expected behavior
In my case, I had a typo in the command line which was causing the behavior. I would have expected to get "no list" not "file not found'.
Environment
Environment not relevant BUT...
- OS (e.g., Linux): WSL2/Ubuntu
- FunASR Version (e.g., 1.0.0): 1.2.6
- ModelScope Version (e.g., 1.11.0): 1.26.0
- PyTorch Version (e.g., 2.0.0): pytorch-wpe==0.0.1
- How you installed funasr (
pip
, source): pip installed when installing sensevoice - Python version: 3.12.3
- GPU (e.g., V100M32): NVIDIA Geforce RTX 3050
- CUDA/cuDNN version (e.g., cuda11.7): 12.8.61
- Docker version (e.g., funasr-runtime-sdk-cpu-0.4.1): N/A
- Any other relevant information: N/A
Additional context
N/A