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

@kuralle-syrinx/elevenlabs

v4.6.3

Published

ElevenLabs adapters for Syrinx — multi-context WebSocket TTS and Scribe v2 Realtime STT

Readme

@kuralle-syrinx/elevenlabs

ElevenLabs voice provider for Syrinx — multi-context WebSocket streaming TTS and Scribe v2 Realtime streaming STT.

Install

pnpm add @kuralle-syrinx/elevenlabs

Auth

Pass api_key (and voice_id for TTS) in plugin config. For local smokes, set ELEVENLABS_API_KEY in the repo-root .env (the live smoke reads EL_VOICE_ID for the TTS voice, defaulting to a free-accessible premade voice).

Streaming TTS — ElevenLabsTTSPlugin

import { ElevenLabsTTSPlugin } from "@kuralle-syrinx/elevenlabs";
import { createNodeWsSocket } from "@kuralle-syrinx/ws/node";

const tts = new ElevenLabsTTSPlugin(createNodeWsSocket);
await tts.initialize(bus, {
  api_key: process.env.ELEVENLABS_API_KEY!,
  voice_id: process.env.ELEVENLABS_VOICE_ID,
  model_id: "eleven_flash_v2_5",
  sample_rate: 16000,
});

Connects to wss://api.elevenlabs.io/v1/text-to-speech/<voice_id>/multi-stream-input (multi-stream-input, concurrent contexts keyed by context_id) via the shared tts-core deep module. Sends the required InitializeConnectionMulti-style context-init frame (voice_settings + optional generation_config) before a context's first text. output_format and generation_config are dev-configurable, not pinned. Default voice (EXAVITQu4vr4xnSDxMaL) is a premade voice accessible to free API accounts — library voices (e.g. Rachel) require a paid plan; override with voice_id.

Usage billing (usage.recorded{stage:"tts", characters}) fires on audio received, once per context — not on isFinal (ElevenLabs streams audio with isFinal:null, and a rejected generation returns an empty final that must not be billed).

Streaming STT — ElevenLabsSTTPlugin

import { ElevenLabsSTTPlugin } from "@kuralle-syrinx/elevenlabs";
import { createNodeWsSocket } from "@kuralle-syrinx/ws/node";

const stt = new ElevenLabsSTTPlugin(createNodeWsSocket);
await stt.initialize(bus, {
  api_key: process.env.ELEVENLABS_API_KEY!,
  sample_rate: 16000,
});

Connects to wss://api.elevenlabs.io/v1/speech-to-text/realtime (Scribe v2 Realtime, model scribe_v2_realtime by default) via the shared @kuralle-syrinx/stt-core session. Provider partial_transcriptstt.interim, committed_transcriptstt.result (speechFinal: true). Usage billing (usage.recorded{stage:"stt", audioSeconds}) fires at the final-transcript funnel with delta-billing. Owns endpointing (endpointingCapability.owner: "provider_stt").

Pricing

Cited in @kuralle-syrinx/core's DEFAULT_PRICE_CATALOG: Scribe v2 STT $0.39/hr; Flash/Turbo TTS $50/1M characters, Multilingual TTS $100/1M characters.

Status

Live-verified end-to-end (TTS audio + usage, STT transcript + usage).

Live smoke

From examples/02-hello-voice-headless (requires ELEVENLABS_API_KEY; optional EL_VOICE_ID):

pnpm -C examples/02-hello-voice-headless exec tsx scripts/spike-elevenlabs.ts

Exercises both TTS (multi-context WS) and STT (Scribe v2 realtime WS) against the live API, including usage.recorded on both stages.