how convert file to another format?
I’m playing with openai in deno using openai_deno and I’d like to know to convert an ogg file to whisper’s supported formats.
First of all, the ogg files are from remote links and I use the native fetch api to get their contents then I use ‘new Blob([data.buffer])’ to transform the fetch file into blob. I even added ‘{type: ‘audio/wav’}’ but whisper still rejected the format
3 Replies
do i maintain that module?
There are so many openai wrappers for deno
I don't if you are the one but i'm using https://deno.land/x/openai_deno@v0.9.2 .
I know about that but i just need help converting telegram voice messages into supported formats by whisper api. The bot is deployed on deno deployed so i cannot use ffmpeg or save files