Skip to main content

AssemblyAI plugin for LiveKit Agents

Support for Streaming Speech-to-Text and Streaming Text-to-Speech from AssemblyAI.

More information is available in the docs for the STT integration and for AssemblyAI's Streaming TTS.

Installation

pip install livekit-plugins-assemblyai

Pre-requisites

You'll need to specify an AssemblyAI API Key. It can be set as environment variable: ASSEMBLYAI_API_KEY.

Usage

from livekit.agents import AgentSession, TurnHandlingOptions
from livekit.plugins import assemblyai

session = AgentSession(
    stt=assemblyai.STT(model="universal-3-6-pro", mode="balanced"),
    tts=assemblyai.TTS(
        model="assemblyai-tts-1",
        voice="49c443a4-8a1d-5f7e-b70b-98bdbd9823c3",  # Audrey
    ),
    # let AssemblyAI decide when the user has finished speaking
    turn_handling=TurnHandlingOptions(turn_detection="stt"),
    # use the TTS word timings for the transcript and for what an interrupted reply said
    use_tts_aligned_transcript=True,
    # ... llm, vad, etc.
)

Speech-to-text

assemblyai.STT streams Universal-3.6 Pro by default (model). Useful options:

  • mode: "min_latency", "balanced" or "max_accuracy".
  • language_codes: steer transcription toward one or more expected languages ("es" or ["en", "es"]).
  • prompt: context about the audio, such as its domain or scenario, to help recognize likely vocabulary (up to 1,750 characters).
  • keyterms_prompt: names and terms the model should get right.

Text-to-speech

assemblyai.TTS streams speech over a pooled WebSocket and cancels in-flight audio when the user interrupts. Useful options:

  • voice: a voice's id, from the voice library or a custom (cloned) voice; defaults to Audrey. Slugs such as "aai-linda-3" also work, but can change, while ids don't.
  • language: a code such as "es", set independently of the voice.
  • model: defaults to assemblyai-tts-1.
  • base_url: the US data zone by default; wss://tts.eu.assemblyai.com keeps data in the EU.
  • word_timestamps: per-word timings (default True). With AgentSession(use_tts_aligned_transcript=True), LiveKit uses them to sync the transcript and to record an interrupted reply up to the word the user heard.

Call tts.prewarm() to open the session before the first reply.

Metadata

Release files for livekit-plugins-assemblyai 1.8.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for livekit-plugins-assemblyai 1.8.10
File Size Uploaded Provenance Actions
livekit_plugins_assemblyai-1.8.10.tar.gz 26.3 kB With provenance Details for livekit_plugins_assemblyai-1.8.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for livekit-plugins-assemblyai 1.8.10
File Interpreter ABI Platform Actions
livekit_plugins_assemblyai-1.8.10-py3-none-any.whl Python 3 none any Details for livekit_plugins_assemblyai-1.8.10-py3-none-any.whl

Total release size: 53.7 kB

Release files / livekit_plugins_assemblyai-1.8.10.tar.gz

Download URL livekit_plugins_assemblyai-1.8.10.tar.gz
Size 26.3 kB
Tags Source
SHA-256 checksum
How to use checksums
197eb834c978c3239f5f93eeb31231f01de0d8f31c345f1f8a457f341fe0f9b2
BLAKE2b-256 checksum
How to use checksums
3f4d390fd957d804ca3bf68be7786282faa32de48251c8a88d04de84c7d4baca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / livekit_plugins_assemblyai-1.8.10-py3-none-any.whl

Download URL livekit_plugins_assemblyai-1.8.10-py3-none-any.whl
Size 27.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf1585cd89cae51a98b3428effbeefdc35b4a6bc0f83a1dba5ee8854bc614b0a
BLAKE2b-256 checksum
How to use checksums
0fe5ce495e4b9c6b83f2f3c81d5feeef98e56c0cbc9ed4e12e6019ea566b2bdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Security for livekit-plugins-assemblyai 1.8.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for livekit_plugins_assemblyai-1.8.10.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.8.10 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page