Replies: 4 comments 10 replies
-
I have a video that explains how to use whisper it may help |
Beta Was this translation helpful? Give feedback.
-
It appears that test.mp3 is not in the same directory that you are running the whisper command. You can check if it is in the same directory by running |
Beta Was this translation helpful? Give feedback.
-
You must install the package that it showed there |
Beta Was this translation helpful? Give feedback.
-
Hey i need to use openai whisper model for transcibe the audio , and i have a condition like without installing ffmpeg and openai API . is is possible with hardcode ? if yes how to proceed with it? |
Beta Was this translation helpful? Give feedback.
-
Hello, I have a problem so I hope some programmers can help me solve it.
Basically I run this :
import whisper model = whisper.load_model("base") result = model.transcribe('test.mp3', fp16=False)
And I get this:
Output exceeds the size limit. Open the full output data in a text editor.
Error Traceback (most recent call last)
File
38 try:
39 # This launches a subprocess to decode audio while down-mixing and resampling as necessary.
40 # Requires the ffmpeg CLI and
ffmpeg-python
package to be installed.41 out, _ = (
---> 42 ffmpeg.input(file, threads=0)
43 .output("-", format="s16le", acodec="pcm_s16le", ac=1, ar=sr)
44 .run(cmd=["ffmpeg", "-nostdin"], capture_stdout=True, capture_stderr=True)
45 )
46 except ffmpeg.Error as e:
File
324 if retcode:
--> 325 raise Error('ffmpeg', out, err)
326 return out, err
Error: ffmpeg error (see stderr output for detail)
The above exception was the direct cause of the following exception:
RuntimeError Traceback (most recent call last)
Cell In[25], line 4
1 import whisper
...
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
test.mp3: No such file or directory
My goal is just to transcribe an mp3 audio file "test.mp3" into text, via the AI Whisper of OpenAI.
And honestly, I've been at it for two days now and I'm not getting anywhere, I've opened the files in question, located lines 42 and 325 but I don't know what to do next.
Thank you in advance for your help and your explanations.
Beta Was this translation helpful? Give feedback.
All reactions