Hi, I am trying to use the new openAi Speech API but I am getting this error
module ‘openai’ has no attribute ‘Audio’
it seems the library is not up to date yet, any suggestions?
Hi, I am trying to use the new openAi Speech API but I am getting this error
module ‘openai’ has no attribute ‘Audio’
it seems the library is not up to date yet, any suggestions?
Welcome to Ask! The link to your repl would be much appreciated for this. However, I do know that if you’re using Python audio is really tricky. The only way I know of to use audio in Python on Replit is from replit import audio
to import Replit’s audio module. I’ve heard that even this is not fool-proof though.
Try using openai.audio
instead of openai.Audio
in your code. Please provide a link to your repl.