Transcribe audio and load the transcript as a document using AssemblyAI.

Hierarchy

  • CreateTranscriptLoader
    • AudioTranscriptLoader

Constructors

  • Transcribe audio or retrieve an existing transcript by its ID.

    Parameters

    • params: string | TranscribeParams

      The parameters to transcribe audio, or the ID of the transcript to retrieve.

    • OptionalassemblyAIOptions: AssemblyAIOptions

      The options to configure the AssemblyAI loader. Configure the assemblyAIOptions.apiKey with your AssemblyAI API key, or configure it as the ASSEMBLYAI_API_KEY environment variable.

    Returns AudioTranscriptLoader

Properties

client: AssemblyAI
transcribeParams?: TranscribeParams
transcriptId?: string

Methods

  • Transcribe audio and load the transcript as a document using AssemblyAI.

    Returns Promise<Document<Transcript>[]>

    A promise that resolves to a single document containing the transcript text as the page content, and the transcript object as the metadata.