emacs-openai / openai

Elisp library for the OpenAI API
GNU General Public License v3.0
100 stars 17 forks source link

openai-audio-create-transcription doesn't work #30

Open agzam opened 11 months ago

agzam commented 11 months ago

Tried a few different ways but couldn't make it work. Maybe openai has changed something about the endpoint? I keep gettin invalid_request_error

jcs090218 commented 11 months ago

Can you post your code here? That way, it's easier for me to debug! Thanks!

agzam commented 11 months ago

Even something as basic as:

(openai-audio-create-transcription
 "my-file.mp3"
 (lambda (data)
   (print data)))
jcs090218 commented 11 months ago

Just to let you know, I'm unable to get this to work as well. I would need to investigate further more. 🤔

Sorry for the time you have wasted! 😓

agzam commented 11 months ago

Sorry for the time you have wasted!

Hey, not at all. As an avid Emacs user I am in fact very excited to find this project and happy to know that someone is working in that space. My use case for transcription feature is very simple and straightforward. I'm hoping to write a simple set of functions that would allow transcribing any .mp3, .mp4 directly from Dired. Of course, the tokenization and chunking up large files would be a challenge, but it would be great to make something like that using only Emacs Lisp, right?

jcs090218 commented 11 months ago

I have done some research, and it seems like many people are facing the same issue, and it remains unresolved! Some links below:

But to be honest, I don't know if I made the right implementation or not. And indeed, they have changed their API endpoint, which I need to update as well. 🤔