Skip to content

AudioTranscriptParagraphsReader

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

Transcribe audio and return a document for each paragraph.

  • AssemblyAIReader

new AudioTranscriptParagraphsReader(assemblyAIOptions?): AudioTranscriptParagraphsReader

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.

AudioTranscriptParagraphsReader

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): Promise<Document<Metadata>[]>

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

Transcribe audio or get a transcript, and returns a document for each paragraph.

The parameters to transcribe audio or get an existing transcript.

string | TranscribeParams

Promise<Document<Metadata>[]>

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

AssemblyAIReader.loadData