Prerequisites
Before you begin, make sure you have:- Node.js 18.0.0 or higher installed
- A Mintlify documentation project with MDX files
- A Fish Audio API key
- An S3-compatible storage service (AWS S3, Cloudflare R2, MinIO, etc.)
Create speaker-config.yaml
Create a
speaker-config.yaml file at your repository root to configure voices and component settings:speaker-config.yaml
Voice IDs come from Fish Audio. You can find available voices in your Fish Audio dashboard.
Configure environment variables
Create a
.env file at your repository root with your API credentials:.env
Create your audio component
Create an audio player component that matches the import path in your Example usage in your MDX:
speaker-config.yaml.Your component needs to accept a voices prop with this structure:Generate audio for your docs
Run the generator on your documentation directory:If your documentation is in a subdirectory:
Next steps
Installation
Learn about different installation options and requirements
Configuration
Explore advanced configuration options for voices, S3, and components
CI/CD Integration
Automate audio generation with GitHub Actions or other CI/CD tools
Commands
See all available commands and options
Common issues
Audio files not uploading to S3
Audio files not uploading to S3
Verify your S3 credentials in
.env are correct and that your bucket has the proper permissions. Test with --verbose flag to see detailed error messages.Component not appearing in MDX files
Component not appearing in MDX files
Make sure the component import path in
speaker-config.yaml matches your actual component location. The component will be automatically injected at the top of each MDX file.Audio regenerating every time
Audio regenerating every time
This usually means the hash tracking isn’t working properly. Check that you have write permissions in your documentation directory for the hash cache file.
