Skip to content

AudioSubtitlesReader

Defined in: .build/typescript/packages/providers/assemblyai/src/reader.ts:134

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

  • AssemblyAIReader

new AudioSubtitlesReader(assemblyAIOptions?): AudioSubtitlesReader

Defined in: .build/typescript/packages/providers/assemblyai/src/reader.ts:33

Creates a new AssemblyAI Reader.

Partial<BaseServiceParams>

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

AudioSubtitlesReader

AssemblyAIReader.constructor

protected clientPromise: Promise<AssemblyAI>

Defined in: .build/typescript/packages/providers/assemblyai/src/reader.ts:26

AssemblyAIReader.clientPromise

protected transcribeOrGetTranscript(params): Promise<Transcript>

Defined in: .build/typescript/packages/providers/assemblyai/src/reader.ts:58

string | TranscribeParams

Promise<Transcript>

AssemblyAIReader.transcribeOrGetTranscript


protected getTranscriptId(params): Promise<string>

Defined in: .build/typescript/packages/providers/assemblyai/src/reader.ts:67

string | TranscribeParams

Promise<string>

AssemblyAIReader.getTranscriptId


loadData(params, subtitleFormat): Promise<Document<Metadata>[]>

Defined in: .build/typescript/packages/providers/assemblyai/src/reader.ts:141

Transcribe audio or get a transcript and reads subtitles for the transcript as srt or vtt format.

The parameters to transcribe audio or get an existing transcript.

string | TranscribeParams

SubtitleFormat = "srt"

The format of the subtitles, either srt or vtt.

Promise<Document<Metadata>[]>

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

AssemblyAIReader.loadData