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

@arvoretech/pi-kokoro-tts

v1.1.0

Published

PI extension that speaks the assistant's responses out loud using a Kokoro-FastAPI text-to-speech endpoint

Readme

@arvoretech/pi-kokoro-tts

PI extension that speaks the assistant's responses out loud using a Kokoro-FastAPI text-to-speech endpoint.

Pairs with @arvoretech/pi-elevenlabs-stt to enable a full voice loop: speak to pi (STT), pi answers in text, and this extension reads the answer back to you (TTS).

What it does

Registers a keyboard shortcut that toggles voice mode. While voice mode is on, every final assistant response is streamed to the Kokoro endpoint (POST /v1/audio/speech) and played through ffplay as it arrives.

  • Toggle voice mode: press the shortcut (default ctrl+super+s on macOS, ctrl+alt+s elsewhere). The footer shows 🔊 voice on while enabled.
  • Audio streams in pcm (24 kHz mono) directly into ffplay, so playback starts before the full response is synthesized.
  • A new response interrupts any playback already in progress.
  • The voice-mode state is persisted in the session and restored on --resume.

Commands

| Command | Description | |---------|-------------| | /voice | Toggle voice mode on/off. | | /voice-select | Select the Kokoro voice (e.g. pf_dora, pm_alex, af_heart). | | /say [text] | Speak the given text. With no argument, repeats the last spoken response. | | /tts-stop | Stop the current playback. |

Requirements

  • ffplay on PATH (ships with ffmpeg; used to play the audio stream).
  • A reachable Kokoro-FastAPI endpoint (see configuration).

Configuration

| Env var | Default | Description | |---------|---------|-------------| | KOKORO_TTS_URL | https://tts.arvore.com.br/v1 | Base URL of the Kokoro-FastAPI OpenAI-compatible API (without trailing slash). | | KOKORO_TTS_API_KEY | falls back to ARVORE_TTS_API_KEY | API key sent as the X-API-Key header. Required by the Arvore Kokoro gateway. | | KOKORO_TTS_VOICE | pf_dora | Voice name. pf_dora / pm_alex / pm_santa are the Brazilian Portuguese voices. Combinations like pf_dora+af_heart are supported by Kokoro. | | KOKORO_TTS_MODEL | kokoro | Model name sent in the request. | | KOKORO_TTS_SPEED | 1 | Speaking speed multiplier (0.254). | | KOKORO_TTS_STREAMING | true | Stream audio in chunks as the response arrives (low latency). Set to false/0/off/no to synthesize and play only the final response. | | KOKORO_TTS_SHORTCUT | ctrl+super+s (macOS), ctrl+alt+s (other) | Shortcut that toggles voice mode. On macOS, super is the Cmd key. |

Notes

  • Markdown is stripped before synthesis: code blocks, links, headings, and URLs are removed or simplified so the speech sounds natural.
  • Responses are truncated to 4000 characters per utterance.
  • Requires interactive (TUI) mode for the shortcut and footer status.
  • /voice-select opens an interactive picker (TUI only) listing the available PT/EN voices fetched from the endpoint, with the current voice marked. The selected voice is persisted in the session and restored on --resume, the same way the voice-mode state is. Voice mode itself is toggled with /voice or the shortcut.