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

@plumbus/voice-minimax

v0.1.1

Published

MiniMax TTS provider for @plumbus/voice.

Downloads

173

Readme

@plumbus/voice-minimax

MiniMax TTS for Plumbus voice. Register as tts.provider: 'minimax' for streaming synthesis with full delivery tone and Hebrew language boost — without embedding MiniMax wire protocol in @plumbus/voice.

npm license peer: @plumbus/core 0.6.x peer: @plumbus/voice 0.4.x

What is this?

Plumbus is an AI-native, contract-driven TypeScript application framework. @plumbus/voice is the optional voice runtime.

@plumbus/voice-minimax is the MiniMax TTS adapter. It exports MINIMAX_TTS_REGISTRATION for the voice provider registry, owns the HTTP/WebSocket wire protocol, and maps delivery tone (including pitch / emotion constraints per model family).

Why?

MiniMax synthesis uses a vendor-specific wire format and catalog API. Shipping it as an opt-in add-on keeps @plumbus/voice free of that protocol while still giving apps a first-class tts.provider: 'minimax' registration.

What you get

| Surface | What it does | |---|---| | MINIMAX_TTS_REGISTRATION | Factory + descriptor for createProviderRegistry({ tts: { minimax: … } }). | | MINIMAX_TTS_DESCRIPTOR / MINIMAX_TTS_MODELS | Catalog entry and static model list. | | MINIMAX_VOICE_PRICING | Pricing rows for voice cost estimation. | | resolveCredentialsFromEnv | Reads MINIMAX_API_KEY / optional MINIMAX_BASE_URL. |

Status

Optional add-on of @plumbus/voice 0.4.x and @plumbus/core 0.6.x. Implements streaming MiniMax TTS with delivery-tone mapping and language boost. Install alone does not register the provider.

Install

pnpm add @plumbus/voice @plumbus/voice-minimax

Peers (copy literals): @plumbus/core 0.6.x, @plumbus/voice 0.4.x.

Env: MINIMAX_API_KEY (optional MINIMAX_BASE_URL, MINIMAX_GROUP_ID).

Quick start

import { createProviderRegistry, defineVoice, registerVoiceRoutes } from '@plumbus/voice';
import { MINIMAX_TTS_REGISTRATION } from '@plumbus/voice-minimax';
import { onRoutesRegistered } from '@plumbus/core';

export const voiceProviderRegistry = createProviderRegistry({
  tts: { minimax: MINIMAX_TTS_REGISTRATION },
});

export const supportVoice = defineVoice({
  name: 'support',
  access: { roles: ['user'] },
  transport: { provider: 'websocket', mode: 'pushToTalk' },
  stt: { provider: 'web-speech', languages: ['he-IL'] },
  tts: {
    provider: 'minimax',
    model: 'speech-2.8-turbo',
    voiceId: process.env['MINIMAX_VOICE_ID'] ?? 'default',
    locale: 'he-IL',
  },
  brain: {
    async run(_ctx, args) {
      return { text: args.transcript ?? '' };
    },
  },
});

onRoutesRegistered((app, routeConfig) => {
  registerVoiceRoutes(app, routeConfig, [supportVoice], {
    registry: voiceProviderRegistry,
    providers: {
      providers: {
        websocket: {},
        'web-speech': {},
        minimax: { apiKey: process.env['MINIMAX_API_KEY'] },
      },
    },
    sessionTokenSecret: process.env['VOICE_SESSION_TOKEN_SECRET'],
  });
});

For CLI/workers, export the same voiceProviderRegistry from app/voice/registry.ts.

Key gotchas

  • Explicit registration required — install alone does nothing.
  • Do not call MiniMax HTTP/WebSocket APIs from app code — this package owns the wire protocol.
  • Audio defaults to mono PCM at 16 kHz (aligned with transport pcm16-16k). Emotion tags whisper / fluent are valid only on speech-2.6-*.
  • MiniMax API failures often arrive as HTTP 200 with base_resp.status_code !== 0; the adapter maps them to Unauthorized / Validation / rate-limit metadata (plus trace_id when present).
  • HTTP SSE plays only data.status === 1 chunks; status 2 is metadata (and may include billable usage_characters).
  • Streaming does not support wav — keep the default pcm (or use mp3 / flac / opus / pcmu_*). sampleRate / bitrate / channel are validated against MiniMax enums.
  • Optional tts.options: textNormalization, forceCbr, voiceModify (pitch / intensity / timbre / soundEffects).
  • Some MiniMax accounts need GroupId (MINIMAX_GROUP_ID or providers.minimax.options.groupId).

Documentation / Agent recipes

The Plumbus ecosystem

@plumbus/voice-minimax is one package in the Plumbus framework. For the full list of packages and when to use each, see the Plumbus monorepo README.

Links

License

MIT