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

openacp-openai-tts-plugin

v1.0.2

Published

OpenACP plugin - TTS via any OpenAI-compatible /v1/audio/speech endpoint (Kokoro, Chatterbox, AllTalk, F5-TTS, etc.)

Readme

openacp-openai-tts-plugin

ci npm license node

OpenACP plugin - TTS via any OpenAI-compatible /v1/audio/speech endpoint.

Works out of the box with Kokoro, AllTalk, F5-TTS, StyleTTS2, and any other server that implements the OpenAI audio speech API. Includes an optional Chatterbox voice-cloning mode that uses the /audio/speech/upload multipart endpoint for servers that need a reference WAV.

Links: Contributing - Security - Support - Changelog


Install

openacp plugin install openacp-openai-tts-plugin

Configure

During install you will be prompted for:

  • Server URL - base URL of your TTS server (default: http://localhost:8880 for Kokoro)
  • Model - model name to pass to the server (default: kokoro)
  • Voice - voice identifier (default: af_bella); used by the standard /v1/audio/speech endpoint
  • API key - optional; sent as Authorization: Bearer <key> if provided
  • Voice file path - optional; absolute path to a reference WAV >5s; enables Chatterbox mode (see below)

Reconfigure at any time:

openacp plugin configure openacp-openai-tts-plugin

Then point @openacp/speech at this provider:

// plugins/data/@openacp/speech/settings.json
{ "ttsProvider": "openai-compatible" }

Server quick-reference

Popular local TTS servers and their default ports:

  • Kokoro - http://localhost:8880 - model: kokoro, voices: af_bella, bm_george, etc.
  • AllTalk - http://localhost:7851 - model: depends on loaded model
  • F5-TTS - http://localhost:7860 - model: F5-TTS
  • Chatterbox - http://localhost:18002 - model: chatterbox-turbo (see Chatterbox mode below)

Chatterbox mode

Chatterbox's standard /v1/audio/speech endpoint ignores the voice field and uses a server-side configured sample — which is often <5s on a default install, causing a "Audio prompt must be longer than 5 seconds!" error.

Set voiceFilePath to an absolute path pointing at a WAV file longer than 5 seconds. The plugin will switch to the /audio/speech/upload multipart endpoint, sending your reference WAV on every request for voice cloning.

When running OpenACP in Docker, mount your voices directory and use the container path:

# compose.yml
services:
  openacp:
    ...
    volumes:
      - /path/to/voices:/voices:ro
    extra_hosts:
      - host.docker.internal:host-gateway

Then set:

  • endpoint: http://host.docker.internal:18002
  • voiceFilePath: /voices/your-voice.wav

Paralinguistic tags (Chatterbox)

Embed these directly in text for expressive output:

[laugh] [chuckle] [cough] [sigh] [gasp] [clear throat]


Updating

npx caches the resolved package for ~24h; if you run via openacp and want the latest plugin without reinstalling:

openacp plugin update openacp-openai-tts-plugin

Or pin to the latest tagged release:

openacp plugin install openacp-openai-tts-plugin@latest

Development

git clone https://github.com/heavygee/openacp-openai-tts-plugin.git
cd openacp-openai-tts-plugin
npm install
npm run build && npm test

See CONTRIBUTING.md for the full contributor flow (issue-first workflow, conventional commits, PR checklist, release automation via release-please).


License

MIT - see LICENSE.