Create a new AudioSubtitleLoader.
The parameters to transcribe audio.
The format of the subtitles, either srt or vtt.
OptionalassemblyAIOptions: AssemblyAIOptionsThe options to configure the AssemblyAI loader.
Configure the assemblyAIOptions.apiKey with your AssemblyAI API key, or configure it as the ASSEMBLYAI_API_KEY environment variable.
Create a new AudioSubtitleLoader.
The ID of the transcript to retrieve.
The format of the subtitles, either srt or vtt.
OptionalassemblyAIOptions: AssemblyAIOptionsThe options to configure the AssemblyAI loader.
Configure the assemblyAIOptions.apiKey with your AssemblyAI API key, or configure it as the ASSEMBLYAI_API_KEY environment variable.
ProtectedclientProtected OptionaltranscribeProtected OptionaltranscriptOptionalsplitter: BaseDocumentTransformer<DocumentInterface<Record<string, any>>[], DocumentInterface<Record<string, any>>[]>A Promise that resolves with an array of Document instances, each split according to the provided TextSplitter.
Protectedtranscribe
Transcribe audio and load subtitles for the transcript as
srtorvttformat.