Comments (10)
Okay, thanks, would comment with update. Thanks a lot.
{Update}: I installed ffmpeg via scoop on windows and it worked! Much appreciated.
from speech-translate.
I also got this bug when using the Import From File option of the 1.1.0 CPU release.
2023-01-30 19:44:23,830 DEBUG - Record Session Started (Record.py:362) [Thread-13 (rec_realTime)]
Exception in thread Thread-11 (multiproc_tc):
Traceback (most recent call last):
File "threading.py", line 1016, in _bootstrap_inner
File "threading.py", line 953, in run
File "speech_translate\utils\Record.py", line 810, in multiproc_tc
TypeError: byte indices must be integers or slices, not str
2023-01-30 19:44:24,472 INFO - Processing Audio (Record.py:398) [Thread-13 (rec_realTime)]
2023-01-30 19:44:24,474 DEBUG - File Write Time: 0.001009225845336914 (Record.py:410) [Thread-13 (rec_realTime)]
2023-01-30 19:44:24,474 INFO - Transcribing (Record.py:423) [Thread-13 (rec_realTime)]
Exception in thread Thread-13 (rec_realTime):
Traceback (most recent call last):
File "threading.py", line 1016, in _bootstrap_inner
File "threading.py", line 953, in run
File "speech_translate\utils\Record.py", line 424, in rec_realTime
File "whisper\transcribe.py", line 84, in transcribe
File "whisper\audio.py", line 111, in log_mel_spectrogram
File "whisper\audio.py", line 42, in load_audio
File "ffmpeg_run.py", line 313, in run
File "ffmpeg_run.py", line 284, in run_async
File "subprocess.py", line 971, in init
File "subprocess.py", line 1440, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
2023-01-30 19:46:11,742 INFO - Recording PC Stopped (Main.py:877) [MainThread]
from speech-translate.
- Confirming the same for Import From File and Record PC Sound.
- Record PC Mic works fine.
- Stopping Record PC Sound leaves GUI in temporary state with three bottom right buttons grayed out.
None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
2023-01-31 12:14:40,931 INFO - Booting up... (Main.py:959) [MainThread]
2023-01-31 12:14:40,932 DEBUG - Got console window (Main.py:962) [MainThread]
2023-01-31 12:14:42,883 INFO - Checking for update on start (About.py:108) [MainThread]
2023-01-31 12:14:42,940 INFO - Checking for update... (About.py:133) [MainThread]
2023-01-31 12:14:43,281 INFO - No update available (About.py:153) [Thread-3 (req_update_check)]
2023-01-31 12:15:21,806 INFO - Start Process (FILE) (Record.py:848) [Thread-4 (from_file)]
2023-01-31 12:15:22,006 INFO - -------------------------------------------------- (Record.py:761) [Thread-5 (multiproc_tc)]
2023-01-31 12:15:22,006 INFO - Transcribing Audio: C:/Users/Romek/Desktop/BCandM.wav (Record.py:762) [Thread-5 (multiproc_tc)]
2023-01-31 12:15:22,007 DEBUG - Source Language: Auto (Record.py:771) [Thread-5 (multiproc_tc)]
whisper\transcribe.py:78: UserWarning: FP16 is not supported on CPU; using FP32 instead
Exception in thread Thread-6 (run_threaded):
Traceback (most recent call last):
File "threading.py", line 1016, in _bootstrap_inner
File "threading.py", line 953, in run
File "speech_translate\utils\Record.py", line 776, in run_threaded
File "whisper\transcribe.py", line 84, in transcribe
File "whisper\audio.py", line 111, in log_mel_spectrogram
File "whisper\audio.py", line 42, in load_audio
File "ffmpeg_run.py", line 313, in run
File "ffmpeg_run.py", line 284, in run_async
File "subprocess.py", line 971, in init
File "subprocess.py", line 1440, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
2023-01-31 12:15:27,605 INFO - Cancelling file import processing... (Main.py:937) [MainThread]
2023-01-31 12:15:27,667 INFO - End process (FILE) [Total time: 5.86s] (Record.py:906) [Thread-4 (from_file)]
2023-01-31 12:15:39,166 INFO - -------------------------------------------------- (Record.py:305) [Thread-7 (rec_realTime)]
2023-01-31 12:15:39,166 INFO - Task: transcribe (Record.py:306) [Thread-7 (rec_realTime)]
2023-01-31 12:15:39,167 INFO - Modelname: tiny (Record.py:307) [Thread-7 (rec_realTime)]
2023-01-31 12:15:39,168 INFO - Engine: Whisper (Record.py:308) [Thread-7 (rec_realTime)]
2023-01-31 12:15:39,168 INFO - Auto mode: True (Record.py:309) [Thread-7 (rec_realTime)]
2023-01-31 12:15:39,169 INFO - Source Lang: auto detect (Record.py:310) [Thread-7 (rec_realTime)]
2023-01-31 12:15:39,434 DEBUG - Sample Rate 44100 | channels 2 (Record.py:341) [Thread-7 (rec_realTime)]
2023-01-31 12:15:39,435 DEBUG - Device: (23) Głośniki (2- Focusrite Usb Audio) [Loopback] (Record.py:354) [Thread-7 (rec_realTime)]
2023-01-31 12:15:39,438 DEBUG - {'index': 23, 'structVersion': 2, 'name': 'Głośniki (2- Focusrite Usb Audio) [Loopback]', 'hostApi': 2, 'maxInputChannels': 2, 'maxOutputChannels': 0, 'defaultLowInputLatency': 0.003, 'defaultLowOutputLatency': 0.0, 'defaultHighInputLatency': 0.01, 'defaultHighOutputLatency': 0.0, 'defaultSampleRate': 44100.0, 'isLoopbackDevice': True} (Record.py:355) [Thread-7 (rec_realTime)]
2023-01-31 12:15:39,493 DEBUG - Record Session Started (Record.py:362) [Thread-7 (rec_realTime)]
Exception in thread Thread-5 (multiproc_tc):
Traceback (most recent call last):
File "threading.py", line 1016, in _bootstrap_inner
File "threading.py", line 953, in run
File "speech_translate\utils\Record.py", line 810, in multiproc_tc
TypeError: byte indices must be integers or slices, not str
2023-01-31 12:16:23,013 INFO - Processing Audio (Record.py:398) [Thread-7 (rec_realTime)]
2023-01-31 12:16:23,015 DEBUG - File Write Time: 0.0010709762573242188 (Record.py:410) [Thread-7 (rec_realTime)]
2023-01-31 12:16:23,015 INFO - Transcribing (Record.py:423) [Thread-7 (rec_realTime)]
Exception in thread Thread-7 (rec_realTime):
Traceback (most recent call last):
File "threading.py", line 1016, in _bootstrap_inner
File "threading.py", line 953, in run
File "speech_translate\utils\Record.py", line 424, in rec_realTime
File "whisper\transcribe.py", line 84, in transcribe
File "whisper\audio.py", line 111, in log_mel_spectrogram
File "whisper\audio.py", line 42, in load_audio
File "ffmpeg_run.py", line 313, in run
File "ffmpeg_run.py", line 284, in run_async
File "subprocess.py", line 971, in init
File "subprocess.py", line 1440, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
2023-01-31 12:16:38,022 INFO - Recording PC Stopped (Main.py:877) [MainThread]
from speech-translate.
I experience the same bug in transcribing video while using both the cpu and gpu versions.
None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
2023-02-06 18:36:37,804 INFO - Booting up... (Main.py:959) [MainThread]
2023-02-06 18:36:37,805 DEBUG - Got console window (Main.py:962) [MainThread]
2023-02-06 18:36:39,393 INFO - Checking for update on start (About.py:108) [MainThread]
2023-02-06 18:36:39,494 INFO - Checking for update... (About.py:133) [MainThread]
2023-02-06 18:36:40,428 INFO - No update available (About.py:153) [Thread-3 (req_update_check)]
2023-02-06 18:36:54,547 INFO - Start Process (FILE) (Record.py:848) [Thread-4 (from_file)]
2023-02-06 18:36:55,304 INFO - -------------------------------------------------- (Record.py:761) [Thread-5 (multiproc_tc)]
2023-02-06 18:36:55,305 INFO - Transcribing Audio: C:/Users/Seyyid/Desktop/balaga.mp4 (Record.py:762) [Thread-5 (multiproc_tc)]
2023-02-06 18:36:55,305 DEBUG - Source Language: arabic (Record.py:771) [Thread-5 (multiproc_tc)]
Exception in thread Thread-6 (run_threaded):
Traceback (most recent call last):
File "threading.py", line 1016, in _bootstrap_inner
File "threading.py", line 953, in run
File "speech_translate\utils\Record.py", line 776, in run_threaded
File "whisper\transcribe.py", line 84, in transcribe
File "whisper\audio.py", line 111, in log_mel_spectrogram
File "whisper\audio.py", line 42, in load_audio
File "ffmpeg_run.py", line 313, in run
File "ffmpeg_run.py", line 284, in run_async
File "subprocess.py", line 971, in init
File "subprocess.py", line 1440, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
TC Wait (289.10s)
The count never stops, it just continues.
from speech-translate.
Same error when trying to record with mic: FileNotFoundError: [WinError 2]
Any fix? I dont even see which File it can not find :o
from speech-translate.
interesting, i'll try to get this sorted asap
from speech-translate.
Maybe this can help...
HOW TO FIX FileNotFoundError: [WinError 2] [https://www.youtube.com/watch?v=7EUmyB6wh1E]
from speech-translate.
By any chance, do you guys not have ffmpeg installed?
from speech-translate.
I'm using Subtitle Edit program on my Pc and it prompted me to install ffmpeg during installation, does that count?
from speech-translate.
Does it add ffmpeg added to your path? if not you will need to add it. Because i sucesfully recreated this bug by uninstalling my ffmpeg from scoop.
I'll update the installation instruction. it's actually already located in readme but only on the development part.
Here are the instructions:
# on Ubuntu or Debian
sudo apt update && sudo apt install ffmpeg
# on Arch Linux
sudo pacman -S ffmpeg
# on MacOS using Homebrew (https://brew.sh/)
brew install ffmpeg
# on Windows using Chocolatey (https://chocolatey.org/)
choco install ffmpeg
# on Windows using Scoop (https://scoop.sh/)
scoop install ffmpeg
Verify if it is added to your path successfully or not by typing ffmpeg
on your terminal
from speech-translate.
Related Issues (20)
- On light themes, text in the context menu in the dynamic text field is not visible [BUG] HOT 1
- [REQ] consider using static-ffmpeg so that you don't need an extra step for ffmpeg installation HOT 2
- [REQ] Add option for no max sentences limit HOT 5
- [BUG] ImportError: cannot import name 'startfile' from 'os' (/usr/lib/python3.10/os.py) HOT 2
- [BUG] AttributeError: module 'subprocess' has no attribute 'STARTUPINFO' HOT 3
- [BUG] TCLError bad pad value "2.5": must be positive screen distance HOT 8
- Application hang due to: FileNotFoundError: [WinError 2] The system cannot find the file specified HOT 2
- for some reason , it is not starting HOT 2
- release 1.3. CPU only cant find "small" module HOT 4
- [BUG] Error when activating Debug recording HOT 2
- [REQ] PLEASEEE ADD THE SUPPORT Speech-to-Speech and Text-to-Speech HOT 1
- [REQ] DIrectML HOT 1
- [BUG] Running on Apple silicon ends with an error HOT 1
- [REQ] Add support for OPUS files HOT 1
- [BUG] The constant YouTube phrases when used for live subtitles HOT 4
- [REQ] Distinguishing speakers in a conversation?
- [REQ] Adding Yandex and DeepL as translators HOT 2
- Making Medium Whisper ASR a bit faster
- [BUG] "Error occured while doing alignment"
- [REQ] Refinement feature should take .srt files, but only takes .json
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from speech-translate.