How to write a Python script for the new version of OpenAI Whisper? #2099
Unanswered
jasonsu123
asked this question in
Q&A
Replies: 1 comment
-
The code I've written seems to be for local use and does not utilize the paid Whisper service. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, recently when I use my previous Whisper code, I encounter the following error:
"You tried to access openai.Audio, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API. You can run openai migrate to automatically upgrade your codebase to use the 1.0.0 interface. Alternatively, you can pin your installation to the old version, e.g. pip install openai==0.28. A detailed migration guide is available here: openai/openai-python#742."
Afterwards, I rewrote the code as shown below. It works now, but when I use the 'medium' model size or larger, it crashes.
Could this be due to my computer not having a dedicated graphics card?
How can I modify my script to make it as convenient as before when I was using result = openai.Audio.transcribe("whisper-1", f)?
Thanks for everyone
Beta Was this translation helpful? Give feedback.
All reactions