Looking for the Python integration? Check out the LlamaIndex Python integration.
Quickstart
Install LlamaIndex.TS by following their instructions. To use the loaders, you need an AssemblyAI account and get your AssemblyAI API key from the dashboard. Configure the API key as theASSEMBLYAI_API_KEY environment variable or the apiKey options parameter.
- You can use the
AudioTranscriptParagraphsReaderorAudioTranscriptSentencesReaderto split the transcript into paragraphs or sentences. - The
audioparameter can be a URL, a local file path, a file 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.
AudioSubtitlesReader to get srt or vtt subtitles as a document.