• Import from "@langchain/community/document_loaders/web/assemblyai" instead. This entrypoint will be removed in 0.3.0. Transcribe audio and load subtitles for the transcript as srt or vtt format.

Hierarchy

  • CreateTranscriptLoader
    • AudioSubtitleLoader

Constructors

  • Create a new AudioSubtitleLoader.

    Parameters

    • transcribeParams: TranscribeParams

      The parameters to transcribe audio.

    • subtitleFormat: SubtitleFormat

      The format of the subtitles, either srt or vtt.

    • 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 AudioSubtitleLoader

  • Create a new AudioSubtitleLoader.

    Parameters

    • transcriptId: string

      The ID of the transcript to retrieve.

    • subtitleFormat: SubtitleFormat

      The format of the subtitles, either srt or vtt.

    • 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 AudioSubtitleLoader

Properties

client: AssemblyAI
transcribeParams?: TranscribeParams
transcriptId?: string

Methods

  • Transcribe audio and load subtitles for the transcript as srt or vtt format.

    Returns Promise<Document[]>

    A promise that resolves a document containing the subtitles as the page content.

""