alphacep / alphacep/vosk-api

FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'

Đang mở
#1,062 4 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Jupyter Notebook
Star
15.1k
Fork
1.8k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

After creating the cache directory as instructed in https://github.com/alphacep/vosk-api/issues/1061, I have yet another error about a missing directory:

```
% vosk-transcriber -i /Users/pzula/Downloads/220708_1333.mp3 -o ~/Downloads/test.txt

vosk-model-small-en-us-0.15.zip: 100%|█████| 39.3M/39.3M [00:30<00:00, 1.34MB/s]
LOG (VoskAPI:ReadDataFiles():model.cc:213) Decoding params beam=10 max-active=3000 lattice-beam=2
LOG (VoskAPI:ReadDataFiles():model.cc:216) Silence phones 1:2:3:4:5:6:7:8:9:10
LOG (VoskAPI:RemoveOrphanNodes():nnet-nnet.cc:948) Removed 0 orphan nodes.
LOG (VoskAPI:RemoveOrphanComponents():nnet-nnet.cc:847) Removing 0 orphan components.
LOG (VoskAPI:ReadDataFiles():model.cc:248) Loading i-vector extractor from /Users/pzula/.cache/vosk/vosk-model-small-en-us-0.15/ivector/final.ie
LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:183) Computing derived variables for iVector extractor
LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:204) Done.
LOG (VoskAPI:ReadDataFiles():model.cc:282) Loading HCL and G from /Users/pzula/.cache/vosk/vosk-model-small-en-us-0.15/graph/HCLr.fst /Users/pzula/.cache/vosk/vosk-model-small-en-us-0.15/graph/Gr.fst
LOG (VoskAPI:ReadDataFiles():model.cc:303) Loading winfo /Users/pzula/.cache/vosk/vosk-model-small-en-us-0.15/graph/phones/word_boundary.int
INFO:root:Recognizing /Users/pzula/Downloads/220708_1333.mp3
Traceback (most recent call last):
File "/Users/pzula/.asdf/installs/python/3.10.0/bin/vosk-transcriber", line 8, in
sys.exit(main())
File "/Users/pzula/.asdf/installs/python/3.10.0/lib/python3.10/site-packages/vosk/transcriber/cli.py", line 68, in main
transcriber.process_file(args)
File "/Users/pzula/.asdf/installs/python/3.10.0/lib/python3.10/site-packages/vosk/transcriber/transcriber.py", line 87, in process_file
final_result, tot_samples = self.process_entry([args.input, args.output])
File "/Users/pzula/.asdf/installs/python/3.10.0/lib/python3.10/site-packages/vosk/transcriber/transcriber.py", line 69, in process_entry
stream = self.resample_ffmpeg(inputdata[0])
File "/Users/pzula/.asdf/installs/python/3.10.0/lib/python3.10/site-packages/vosk/transcriber/transcriber.py", line 55, in resample_ffmpeg
stream = subprocess.Popen(
File "/Users/pzula/.asdf/installs/python/3.10.0/lib/python3.10/subprocess.py", line 966, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Users/pzula/.asdf/installs/python/3.10.0/lib/python3.10/subprocess.py", line 1842, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.