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 🙏

© 2025 – Pkg Stats / Ryan Hefner

speak-mintlify

v1.1.1

Published

Automatically generate voice for your Mintlify documentation.

Readme

speak-mintlify

Fish Audio npm version npm downloads License

Add voice narration to your documentation to drive developer engagement and accessibility.

speak-mintlify intelligently generates text-to-speech audio for your Mintlify documentation.

Features

  • Generate TTS audio directly from your MDX file, only regenerating when content changes
  • Supports multiple voices with easy configuration
  • Upload your audio files to S3 (compatible with Cloudflare R2, MinIO, etc.)
  • Inject audio player components into your documentation
  • Ready to integrate with CI/CD pipelines

Setup

1. Initialize speaker-config.yaml

speaker-config.yaml holds your voice configuration and optional component settings.

# speaker-config.yaml
# S3 credentials and API keys should go in .env or environment variables

# Voice Configuration (map of voice ID -> display name)
voices:
  8ef4a238714b45718ce04243307c57a7: E-girl
  bf322df2096a46f18c579d0baa36f41d: Adrian
  # Add more voices as needed

# Component Configuration (optional)
component:
  import: /snippets/audio-transcript.jsx
  name: AudioTranscript

You can reference our example speaker-config.yaml for more details.

2. Configure Environment Variables

You can set environment variables in a .env file at your repository root or directly in your CI/CD environment.

# Secrets (required)
FISH_API_KEY=your_api_key
S3_ACCESS_KEY_ID=your_access_key_id
S3_SECRET_ACCESS_KEY=your_secret_key

# S3 Config (required)
S3_BUCKET=your-bucket
S3_PUBLIC_URL=https://s3.example.com
S3_REGION=us-east-1
S3_ENDPOINT=https://s3-endpoint.example.com

Check out the .env.example for reference.

3. Create Audio Component

In your MDX files, import the audio component specified in your speaker-config.yaml:

Your audio component will need to accept the following props:

{
  voices: Array<{
    name: string;    // Display name for the voice
    url: string;     // Audio file URL (S3 or any accessible URL)
  }>
}

Example:

<AudioTranscript
  voices={[
    { name: "Natural Voice", url: "https://s3.../audio1.mp3" },
    { name: "Professional Voice", url: "https://s3.../audio2.mp3" }
  ]}
/>

Customize the provided audio-transcript.jsx file to fit your design.

4. Run the Generator

Once you have configured everything, run the generator on your documentation directory:

# From your docs repository root
npx speak-mintlify generate .

If your documentation is within a subdirectory, specify the path accordingly (e.g., npx speak-mintlify generate ./docs).

You may want to preview changes first using the --dry-run flag.

5. Integrate with CI/CD

Once you are satisfied with the setup, integrate speak-mintlify into your CI/CD pipeline to automate audio generation on content updates.

Check out how Fish Audio integrates with GitHub Actions over at their repository.

Commands

generate - Generate TTS audio

npx speak-mintlify generate [directory]

# Useful flags:
#   --dry-run       Preview changes without generating
#   --verbose       Show extracted text and details
#   --pattern       File pattern (default: **/*.mdx)

# Run with --help to see all options
npx speak-mintlify generate --help

cleanup - Remove orphaned audio files

Removes audio files from S3 that are no longer referenced in your MDX files.

npx speak-mintlify cleanup [directory]

# Preview before deleting
npx speak-mintlify cleanup . --dry-run

.speakignore

Exclude files from processing by creating .speakignore in your repository root:

snippets/**
api-reference/**
temp/**
drafts/**

About Fish Audio

speak-mintlify is built with Fish Audio for its affordable, high-quality, natural-sounding voices. Other providers can be expensive and difficult to use at scale. Fish Audio makes it easy to add voice narration to your documentation without breaking the bank.