AttributeError Traceback (most recent call last)
Input In [2], in <cell line: 4>()
1 import openai
3 file = open(“C:/Users/user/Downloads/audio/001.mp3”, “rb”)
----> 4 transcription = openai.Audio.transcribe(“whisper-1”, f)
6 print(transcription)
AttributeError: module ‘openai’ has no attribute ‘Audio’
I face that problem ,anyone had the same problem ?
transcription = openai.Audio.transcribe(“whisper-1”, file) try this now it should work replace f bu file
sps
3
Welcome to the community @i.lakhzine2015
Here’s the first line of boilerplate code in docs for transcribing with whisper-1
# Note: you need to be using OpenAI Python v0.27.0 for the code below to work
How would you go about checking this in jupyter notebook?
thank you ! it’s working now
Blockquote