This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |