Skip to content

Instantly share code, notes, and snippets.

View mexin's full-sized avatar
🏠
Working from home

Luis mexin

🏠
Working from home
View GitHub Profile
@mexin
mexin / rocky_say
Created April 15, 2026 06:19 — forked from pedramamini/rocky_say
rocky_say — Rocky voice TTS from Project Hail Mary (voice cloning + text style transform)
#!/usr/bin/env python3
"""
rocky_say — Text-to-speech using Rocky's cloned voice (Project Hail Mary)
Transforms input text into Rocky's speech patterns ("text GAN"), then
synthesizes audio using XTTS v2 voice cloning. Rocky is the Eridian alien
from Andy Weir's Project Hail Mary, voiced by James Ortiz in the 2026 film.
His speech patterns are distinctive: dropped articles, simplified grammar,
word tripling for emphasis ("good good good", "bad bad bad"), and the