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

@absolutejs/voice-speechmatics

v0.0.1-beta.2

Published

Speechmatics real-time speech-to-text adapter for @absolutejs/voice

Readme

@absolutejs/voice-speechmatics

Speechmatics real-time speech-to-text adapter for @absolutejs/voice.

Speaks Speechmatics' v2 WebSocket protocol directly: connect → StartRecognition → binary audio frames → AddPartialTranscript / AddTranscript / EndOfTranscriptEndOfStream. No Speechmatics SDK dependency.

Install

bun add @absolutejs/voice-speechmatics

@absolutejs/voice is a runtime dependency.

Use

import { voice } from "@absolutejs/voice";
import { speechmatics } from "@absolutejs/voice-speechmatics";

const app = voice({
  stt: speechmatics({
    apiKey: process.env.SPEECHMATICS_API_KEY!,
    region: "eu2",                       // 'eu' | 'eu2' | 'usa'
    language: "en",
    operatingPoint: "enhanced",          // or 'standard' for lower latency
    enablePartials: true,
    diarization: "speaker",              // optional
  }),
  // ... tts + other options ...
});

For pre-issued JWT tokens (e.g., short-lived browser sessions):

speechmatics({ region: "eu2", jwt: shortLivedJwt, language: "en" });

Options

| Option | Required | Default | Notes | | --- | --- | --- | --- | | apiKey / jwt | one of | — | API key or pre-issued JWT; passed as ?jwt=<token> on the WebSocket URL per the Speechmatics protocol. | | region | no | eu2 | eu, eu2, usa, or any region prefix that resolves to wss://{region}.rt.speechmatics.com. | | baseUrl | no | wss://{region}.rt.speechmatics.com | Override for private/staging endpoints. | | language | no | en | BCP-47 code. Overridden when STTAdapterOpenOptions.languageStrategy fixes a language. | | operatingPoint | no | enhanced | enhanced (higher quality) or standard (lower latency). | | enablePartials | no | true | Stream partial hypotheses. | | diarization | no | — | speaker, channel, channel_and_speaker, or none. | | maxDelay, speakerChangeSensitivity, punctuationOverrides | no | — | Forwarded to transcription_config. | | connectTimeoutMs | no | 8000 | Time to wait for the RecognitionStarted ACK. | | webSocket.factory | no | new WebSocket(url) | Inject a fake socket for tests. |

Notes

  • Audio sent before the RecognitionStarted ACK is buffered and flushed once recognition starts.
  • AddPartialTranscriptpartial event, AddTranscriptfinal event, EndOfTranscriptendOfTurn.
  • Punctuation tokens are joined to the preceding word (Hello, world, .Hello world.).
  • Average per-token confidence is lifted onto the transcript.
  • session.close(reason) sends EndOfStream with the last seq_no and then closes the socket cleanly.
  • Supported encodings on STTAdapterOpenOptions.format.encoding: pcm_s16le, pcm_f32le, mulaw / pcm_mulaw.