Skip to content
Discussion options

You must be logged in to vote

I think There is a package written in nodejs at: [https://www.npmjs.com/package/openai]

for example:

import fs from "fs";
import OpenAI from "openai";
const openai = new OpenAI();

async function main() {
  const transcription = await openai.audio.transcriptions.create({
    file: fs.createReadStream("audio.mp3"), // formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
    model: "whisper-1",
  });

  console.log(transcription.text);
}
main();

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@CareNetAI
Comment options

@matusnovak
Comment options

Answer selected by CareNetAI
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants