| name | gemini-tts-fast |
| description | Convert text to speech with Google Gemini TTS API at fixed 1.2x playback speed and WAV output. Use when users need fast narration generation from English or Chinese text, with optional voice and output filename. |
Gemini Text-to-Speech Skill (1.2x Speed)
Convert text to speech using Google Gemini's TTS API with fixed 1.2x playback speed. Automatically generates standard WAV audio files optimized for video narration.
Features
- Converts text to natural-sounding speech using Gemini 2.5 Pro TTS
- Fixed 1.2x speed for more dynamic video narration
- Outputs standard WAV format (24kHz, 16-bit, mono)
- Supports multiple voice styles
- Handles both English and Chinese text
- Automatic format conversion using ffmpeg
Requirements
- Python 3.x with
google-genai package
- ffmpeg (for audio format conversion)
GOOGLE_API_KEY environment variable (stored in .env file)
Usage
When the user requests text-to-speech conversion, the skill will automatically apply 1.2x speed:
- Load environment: Source the
.env file to get the API key
- Parse arguments:
- Text to convert (required) - supports multiple languages
--output=filename.wav (optional, default: output.wav)
--voice=VoiceName (optional, default: Puck)
- Speed is automatically set to 1.2x (no need to specify)
- Generate audio: Run the script to create the WAV file at 1.2x speed
- Confirm success: Report the output file location and size
Available Voices