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

Hierarchy

  • CreateTranscriptLoader
    • AudioSubtitleLoader

Constructors

  • Create a new AudioSubtitleLoader.

    Parameters

    • transcribeParams: TranscriptParams | 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?: TranscriptParams | TranscribeParams
transcriptId?: string

Methods