Documentation Index
Fetch the complete documentation index at: https://mintlify.com/FujiwaraChoki/MoneyPrinterV2/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheTTS class provides text-to-speech functionality using the KittenTTS model. It converts text into natural-sounding speech audio files.
Constructor
None
Example:
Model Configuration
The TTS class uses the following default configuration:- Model:
KittenML/kitten-tts-mini-0.8 - Sample Rate: 24000 Hz
- Voice: Configured via
get_tts_voice()from config
Methods
synthesize
The text to convert to speech
Path where the audio file will be saved (default:
.mp/audio.wav in project root)str - Path to the generated audio file
Example:
Usage with YouTube Class
The TTS class is commonly used with the YouTube class for video generation:Technical Details
Audio Format
- Format: WAV (Waveform Audio File Format)
- Sample Rate: 24,000 Hz
- Channels: Mono
Voice Configuration
The voice used for synthesis is configured in yourconfig.json file: