Skip to main content
AssemblyAI maintains official SDKs for Python and JavaScript. Both SDKs cover pre-recorded transcription, real-time streaming, and speech understanding, and handle authentication, polling, and retries for you.

Python

Install the SDK with pip:
The Python SDK is open source on GitHub.

JavaScript

Install the SDK with npm:
The JavaScript SDK runs in Node.js and other server-side JavaScript runtimes, and is open source on GitHub.

Get started

Follow the quickstart for the product you’re building with:

Pre-recorded STT

Transcribe an audio file.

Real-time STT

Transcribe live audio as it’s spoken.

Sync STT

Transcribe short audio clips synchronously.

Speech Understanding

Extract insights from your audio.

Guardrails

Apply safety, privacy, and compliance controls to your audio pipeline.
Note: Voice Agent and LLM Gateway are not currently supported in the AssemblyAI SDK. To use these products, or to use any other product via the REST API directly, see the API reference.