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

sotto

v1.1.4

Published

Voice input for Claude Code — real-time local speech-to-text via whisper.cpp

Downloads

603

Readme

sotto

npm version license

Voice input for Claude Code. Speak instead of typing.

A local, open-source MCP server that streams your voice to whisper.cpp for real-time transcription and sends the text to Claude Code. Everything runs on your machine — no cloud APIs, no network calls.

macOS only. Sotto uses osascript and the Cocoa framework for its floating status indicator. Linux and Windows are not supported.

How It Works

You speak → sotto streams audio to whisper-stream for live transcription
→ a floating indicator shows status and live text
→ silence detected or you click stop → text returned to Claude
→ Claude treats it as your message and responds

Prerequisites

  • macOS (Apple Silicon recommended, Intel works too)
  • Node.js >= 18
  • whisper-cpp — local speech-to-text with live streaming

Install system dependencies:

brew install whisper-cpp

Installation

npm install -g sotto
sotto-setup

The setup command will:

  1. Verify whisper-stream is installed (ships with whisper-cpp)
  2. Download the Whisper Base English model (~150MB) to ~/.local/share/sotto/models/
  3. Create a default config at ~/.config/sotto/config.json

Then register with Claude Code:

# Available in all projects (recommended for most users)
claude mcp add sotto -s user -- sotto

# Or, available only in the current project
claude mcp add sotto -s local -- sotto

Use user scope if you want voice input everywhere. Use local scope if you only want sotto in a specific project.

On first use, macOS will prompt you to grant microphone access to your terminal app (Terminal, iTerm2, etc.) in System Settings > Privacy & Security > Microphone.

Usage

In Claude Code, type:

/sotto:listen

A floating indicator appears at the bottom of your screen showing:

  • Recording status (listening / transcribing)
  • Live transcription text as you speak
  • A stop button to end recording early

Recording stops automatically after silence is detected, or when you click the stop button. Your speech is transcribed and sent to Claude as text.

Configuration

Edit ~/.config/sotto/config.json:

| Setting | Default | Env Var | Description | |---|---|---|---| | modelPath | ~/.local/share/sotto/models/ggml-base.en.bin | WHISPER_MODEL_PATH | Path to GGML model | | language | en | WHISPER_LANGUAGE | Language code | | maxDuration | 30 | WHISPER_MAX_DURATION | Max recording seconds |

Environment variables take precedence over the config file.

Troubleshooting

| Problem | Solution | |---|---| | "whisper-stream is not installed" | brew install whisper-cpp | | "Model not found" | Run sotto-setup | | "Microphone access denied" | Grant mic access to your terminal in System Settings > Privacy & Security > Microphone | | No speech detected | Make sure your microphone is working and you're speaking loudly enough | | Transcription is slow | The base model is ~3s for a 5s clip on Apple Silicon. Try the tiny model for faster results. |

Development

git clone https://github.com/sourabhbgp/sotto.git
cd sotto
npm install
npm run build
npm test

License

MIT