Skip to content

AudioTranscriptReader

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

Transcribe audio and read the transcript as a document using AssemblyAI.

  • AssemblyAIReader

new AudioTranscriptReader(assemblyAIOptions?): AudioTranscriptReader

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.

AudioTranscriptReader

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:86

Transcribe audio or get a transcript and load the transcript as a document using AssemblyAI.

Parameters to transcribe an audio file or get an existing transcript.

string | TranscribeParams

Promise<Document<Metadata>[]>

A promise that resolves to a single document containing the transcript text.

AssemblyAIReader.loadData