Voice Configuration
Voice
Represents a voice configuration for TTS generation.string
required
Unique identifier for the voice (Fish Audio reference ID)
string
required
Human-readable name for the voice (e.g., “Sarah”, “John”)
string
Public URL to the generated audio file (set after upload to S3)
Metadata Types
AudioMetadata
Stores metadata for each processed file, used for change detection and caching.string
required
SHA-256 hash of the file’s text content
string
required
ISO 8601 timestamp of when the audio was last generated
Voice[]
required
Array of voice configurations with generated audio URLs
MetadataFile
Structure of the.audio-metadata.json file that tracks all processed files.
Configuration Types
S3Config
Configuration for S3-compatible storage (AWS S3, Cloudflare R2, MinIO, etc.).string
required
S3 bucket name
string
required
AWS region (or “auto” for Cloudflare R2)
string
Custom endpoint URL for R2, MinIO, or other S3-compatible services
string
required
S3 access key ID
string
required
S3 secret access key
string
required
CDN or public URL base for accessing uploaded files
string
Optional path prefix for organizing files (e.g., “audio/“)
TTSConfig
Configuration for text-to-speech generation.string
required
Fish Audio API key for TTS generation
string[]
required
Array of Fish Audio voice reference IDs
string[]
Human-readable names corresponding to voice IDs
S3Config
required
S3 storage configuration
string
Path to audio player component (default: “/snippets/audio-transcript.jsx”)
string
Name of audio player component (default: “AudioTranscript”)
Fish Audio Types
FishAudioRequest
Request parameters for the Fish Audio API.string
required
Text content to convert to speech
string
required
Fish Audio voice reference ID
string
Audio format (default: “mp3”)
number
MP3 bitrate in kbps
number
Opus bitrate in kbps
'normal' | 'balanced'
Generation latency mode
boolean
Enable streaming response
Processing Types
ProcessingResult
Result of processing a single MDX file.string
required
Path to the processed file
boolean
required
Whether processing succeeded
Voice[]
required
Array of voice configurations with audio URLs
string
Error message if processing failed
boolean
Whether the file was skipped (e.g., unchanged content)
string
Reason for skipping the file
CLI Command Options
GenerateOptions
Command-line options for thegenerate command.
string
Fish Audio API key (can also use FISH_API_KEY env var)
string
Comma-separated voice IDs (can also use speaker-config.yaml)
string
Comma-separated voice names
string
S3 bucket name (can also use S3_BUCKET env var)
string
S3 region
string
Custom S3 endpoint
string
S3 access key ID
string
S3 secret access key
string
Public URL for accessing files
string
Path prefix for organizing files
string
Component import path
string
Component name
string
Glob pattern for MDX files
boolean
Preview changes without making them
boolean
Enable verbose logging
CleanupOptions
Command-line options for thecleanup command.
string
S3 bucket name
string
S3 region
string
Custom S3 endpoint
string
S3 access key ID
string
S3 secret access key
string
Public URL for accessing files
string
Path prefix for organizing files
string
Component name to remove
string
Glob pattern for MDX files
boolean
Preview changes without making them
boolean
Enable verbose logging
