Usage
First, you’ll need to install the official AssemblyAI package:npm
ASSEMBLYAI_API_KEY environment variable or the apiKey options parameter.
** info **You can also use the
- You can use the
AudioTranscriptParagraphsLoaderorAudioTranscriptSentencesLoaderto split the transcript into paragraphs or sentences.- The
audioparameter can be a URL, a local file path, a buffer, or a stream.- The
audiocan also be a video file. See the list of supported file types in the FAQ doc.- If you don’t pass in the
apiKeyoption, the loader will use theASSEMBLYAI_API_KEYenvironment variable.- You can add more properties in addition to
audio. Find the full list of request parameters in the AssemblyAI API docs.
AudioSubtitleLoader to get srt or vtt subtitles as a document.
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.