AudioTranscriptReader
Defined in: .build/typescript/packages/providers/assemblyai/src/reader.ts:80
Transcribe audio and read the transcript as a document using AssemblyAI.
Extends
Section titled “Extends”AssemblyAIReader
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AudioTranscriptReader(
assemblyAIOptions?
):AudioTranscriptReader
Defined in: .build/typescript/packages/providers/assemblyai/src/reader.ts:33
Creates a new AssemblyAI Reader.
Parameters
Section titled “Parameters”assemblyAIOptions?
Section titled “assemblyAIOptions?”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.
Returns
Section titled “Returns”AudioTranscriptReader
Inherited from
Section titled “Inherited from”AssemblyAIReader.constructor
Properties
Section titled “Properties”clientPromise
Section titled “clientPromise”
protected
clientPromise:Promise
<AssemblyAI
>
Defined in: .build/typescript/packages/providers/assemblyai/src/reader.ts:26
Inherited from
Section titled “Inherited from”AssemblyAIReader.clientPromise
Methods
Section titled “Methods”transcribeOrGetTranscript()
Section titled “transcribeOrGetTranscript()”
protected
transcribeOrGetTranscript(params
):Promise
<Transcript
>
Defined in: .build/typescript/packages/providers/assemblyai/src/reader.ts:58
Parameters
Section titled “Parameters”params
Section titled “params”string
| TranscribeParams
Returns
Section titled “Returns”Promise
<Transcript
>
Inherited from
Section titled “Inherited from”AssemblyAIReader.transcribeOrGetTranscript
getTranscriptId()
Section titled “getTranscriptId()”
protected
getTranscriptId(params
):Promise
<string
>
Defined in: .build/typescript/packages/providers/assemblyai/src/reader.ts:67
Parameters
Section titled “Parameters”params
Section titled “params”string
| TranscribeParams
Returns
Section titled “Returns”Promise
<string
>
Inherited from
Section titled “Inherited from”AssemblyAIReader.getTranscriptId
loadData()
Section titled “loadData()”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
Section titled “Parameters”params
Section titled “params”Parameters to transcribe an audio file or get an existing transcript.
string
| TranscribeParams
Returns
Section titled “Returns”Promise
<Document
<Metadata
>[]>
A promise that resolves to a single document containing the transcript text.
Overrides
Section titled “Overrides”AssemblyAIReader.loadData