langchain.js
    Preparing search index...

    Transcribe audio and load the sentences of the transcript, creating a document for each sentence.

    Hierarchy

    • CreateTranscriptLoader
      • AudioTranscriptSentencesLoader
    Index

    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 AudioTranscriptSentencesLoader

    Properties

    client: AssemblyAI
    transcribeParams?: TranscribeParams
    transcriptId?: string

    Methods

    • Transcribe audio and load the sentences of the transcript, creating a document for each sentence.

      Returns Promise<Document<TranscriptSentence>[]>

      A promise that resolves to an array of documents, each containing a sentence of the transcript.

    • Returns Promise<Transcript>