Class: AudioTranscriptParagraphsReader
Transcribe audio and return a document for each paragraph.
Extends
AssemblyAIReader
Constructors
new AudioTranscriptParagraphsReader()
new AudioTranscriptParagraphsReader(
assemblyAIOptions
?):AudioTranscriptParagraphsReader
Creates a new AssemblyAI Reader.
Parameters
• 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
AudioTranscriptParagraphsReader
Inherited from
AssemblyAIReader.constructor
Defined in
packages/llamaindex/src/readers/AssemblyAIReader.ts:32
Properties
client
protected
client:AssemblyAI
Inherited from
AssemblyAIReader.client
Defined in
packages/llamaindex/src/readers/AssemblyAIReader.ts:25
Methods
getTranscriptId()
protected
getTranscriptId(params
):Promise
<string
>
Parameters
• params: string
| TranscribeParams
Returns
Promise
<string
>
Inherited from
AssemblyAIReader.getTranscriptId
Defined in
packages/llamaindex/src/readers/AssemblyAIReader.ts:62
loadData()
Transcribe audio or get a transcript, and returns a document for each paragraph.
Parameters
• params: string
| TranscribeParams
The parameters to transcribe audio or get an existing transcript.
Returns
A promise that resolves to an array of documents, each containing a paragraph of the transcript.
Overrides
AssemblyAIReader.loadData
Defined in
packages/llamaindex/src/readers/AssemblyAIReader.ts:95
transcribeOrGetTranscript()
protected
transcribeOrGetTranscript(params
):Promise
<Transcript
>
Parameters
• params: string
| TranscribeParams
Returns
Promise
<Transcript
>
Inherited from
AssemblyAIReader.transcribeOrGetTranscript