npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@livekit/agents-plugin-assemblyai

v1.10.0

Published

AssemblyAI plugin for LiveKit Agents for Node.js

Readme

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

pnpm add @livekit/agents-plugin-assemblyai

Pre-requisites

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

Usage

import { voice } from '@livekit/agents';
import * as assemblyai from '@livekit/agents-plugin-assemblyai';

const session = new voice.AgentSession({
  stt: new assemblyai.STT({ speechModel: 'universal-3-6-pro', mode: 'balanced' }),
  tts: new assemblyai.TTS({
    model: 'assemblyai-tts-1',
    voice: '49c443a4-8a1d-5f7e-b70b-98bdbd9823c3', // Audrey
  }),
  // Let AssemblyAI decide when the user has finished speaking.
  turnHandling: { turnDetection: 'stt' },
  // Use the TTS word timings for the transcript and for what an interrupted reply said.
  useTtsAlignedTranscript: true,
  // ... llm, vad, etc.
});

Speech-to-text

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

  • mode: "min_latency", "balanced" or "max_accuracy".
  • languageCodes: 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).
  • keytermsPrompt: 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.
  • baseUrl: the US data zone by default; wss://tts.eu.assemblyai.com keeps data in the EU.
  • wordTimestamps: per-word timings (default true). With AgentSession({ useTtsAlignedTranscript: 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.