Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method OpenAI.prototype.createTranscription
import { OpenAI } from "https://deno.land/x/openai_deno@v0.9.8/mod.ts";

Transcribes audio into the input language.

Parameters

file: string | BlobPart

The audio file to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.

model: string

ID of the model to use. Only whisper-1 is currently available.

Optional parameters for the API.

optional
filename: string

Returns

The transcription of the audio.