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

@alien-lobster-buffet/tts-conductor-fal

v0.2.0-alpha.0

Published

fal.ai provider bindings for the TTS Conductor ecosystem

Readme

@alien-lobster-buffet/tts-conductor-fal

fal.ai provider bindings for the TTS Conductor ecosystem.

fal.ai is a gateway fronting many TTS engines, each with its own input and voice schema. This package models that as a single fal provider id that you parameterize with a model at construction — so the marketplace lives at construction time while each provider instance is still one engine, fully honoring the conductor's TtsProvider contract (one caps, one generate, one optional voiceCatalog).

Install

npm install @alien-lobster-buffet/tts-conductor-core @alien-lobster-buffet/tts-conductor-fal

Requires a fal API key (FAL_KEY).

Quickstart

import { createTtsConductor } from "@alien-lobster-buffet/tts-conductor-core";
import { falProviderFactory } from "@alien-lobster-buffet/tts-conductor-fal";

const conductor = createTtsConductor({ pauseTable: {}, maxPauseSeconds: 30 });
conductor.registerProvider(falProviderFactory);

const provider = conductor.createProvider("fal", {
  apiKey: process.env.FAL_KEY!,
  model: "fal-ai/minimax/speech-02-hd",
  voice: { kind: "preset", id: "Wise_Woman" },
});

const { audio, duration, providerMeta } = await conductor.generateFull(
  "Hello there. [PAUSE:2s] Welcome.",
  provider,
);

Starter models

| model | text key | voice mechanism | duration | | ---------------------------------- | -------- | -------------------------------------------------------------------------------- | ---------------------- | | fal-ai/minimax/speech-02-hd | text | { kind: 'preset', id }voice_setting object | native (duration_ms) | | fal-ai/gemini-3.1-flash-tts | prompt | { kind: 'preset', id } (30-voice enum) or { kind: 'multiSpeaker', speakers } | ffprobe | | fal-ai/chatterbox/text-to-speech | text | { kind: 'clone', audioUrl } (no preset voices) | ffprobe | | fal-ai/elevenlabs/tts/turbo-v2.5 | text | { kind: 'preset', id } | ffprobe |

Switch model and voice at construction, or vary them per call:

await provider.generate(chunk, {
  overrides: {
    voice: { kind: "preset", id: "Aria" },
    params: { stability: 0.3 },
  },
});

params carries the model's scalar knobs (e.g. minimax voiceSetting, gemini styleInstructions / temperature, chatterbox exaggeration / cfg, 11labs stability / similarity_boost / speed). Each descriptor forwards only the keys it recognizes.

Voice discovery

Only fal-ai/gemini-3.1-flash-tts exposes a voiceCatalog — its 30 preset voices are the one schema-enumerable set. minimax and elevenlabs-on-fal take a voice id as a free string (pass a known id), and chatterbox clones from audio_url; all three leave voiceCatalog undefined.

if (provider.voiceCatalog) {
  const voices = await provider.voiceCatalog.listVoices({ search: "kore" });
}

Gemini voices carry no per-voice language metadata (the model is multilingual via the languageCode param), so listVoices({ language }) filters them all out. Filter by search instead.

Cost reconciliation

fal bills asynchronously. Each chunk's fal request_id is surfaced on the generation result via core's generic providerMeta channel — collect them from the final result and reconcile against fal's billing-events API:

const result = await conductor.generateFull(text, provider);
const requestIds =
  result.providerMeta?.map((m) => m?.request_id).filter(Boolean) ?? [];

Notes

  • Multi-speaker (gemini) is single-chunk / short-form for now. fal needs the full speakers[] on every request and the prompt's Alias: line-prefixes to survive chunking; long multi-speaker scripts aren't supported yet.
  • fal engines don't render SSML breaks — inter-chunk pauses become stitched silence segments via the core orchestrator.

License

MIT