Looking for the Python integration? Go to the LangChain Python integration.
Quickstart
Add the AssemblyAI SDK to your project:ASSEMBLYAI_API_KEY
environment variable or the apiKey
options parameter.
- You can use the
AudioTranscriptParagraphsLoader
orAudioTranscriptSentencesLoader
to split the transcript into paragraphs or sentences. - If the
audio_file
is a local file path, the loader will upload it to AssemblyAI for you. - The
audio_file
can also be a video file. See the list of supported file types in the FAQ doc. - If you don’t pass in the
apiKey
option, the loader will use theASSEMBLYAI_API_KEY
environment 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.