const loader = new OpenAIWhisperAudio(
"./src/document_loaders/example_data/test.mp3",
);
const docs = await loader.load();
console.log(docs);

Hierarchy

  • BufferLoader
    • OpenAIWhisperAudio

Constructors

Methods

Constructors

Methods

  • Abstract method that needs to be implemented by subclasses. It is used to parse the buffer and return the documents.

    Parameters

    • raw: Buffer

      The buffer to be parsed.

    • metadata: Record<string, string>

      Metadata of the document.

    Returns Promise<Document[]>

    Promise that resolves with an array of Document objects.