跳转到内容

AudioTranscriptReader

定义于:.build/typescript/packages/providers/assemblyai/src/reader.ts:80

使用AssemblyAI转录音频并将转录内容作为文档读取。

  • AssemblyAIReader

new AudioTranscriptReader(assemblyAIOptions?): AudioTranscriptReader

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

创建一个新的 AssemblyAI 阅读器。

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>[]>

定义于:.build/typescript/packages/providers/assemblyai/src/reader.ts:86

使用AssemblyAI转录音频或获取转录内容,并将转录内容加载为文档。

转录音频文件或获取现有转录文本的参数。

string | TranscribeParams

Promise<Document<Metadata>[]>

一个承诺,解析为包含转录文本的单个文档。

AssemblyAIReader.loadData