pndurette/gTTS ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Python package and command line tool that turns text into spoken MP3 audio using Google Translate’s text to speech service.
I want to be able to use it from code like a normal library, and also from the terminal with a command such as typing some text and saving the result to an MP3 file or printing the audio data to stdout. It should handle longer text well by splitting it up in a way that still sounds natural, and it should let me tweak the text before it is spoken so common pronunciation issues can be corrected.
Please include clear documentation, a simple quickstart example, and basic tests. Make it easy to install and use, and keep it focused on generating speech from text without extra fluff. If you need to check the latest usage details online, go ahead and look them up.
Are you gonna build this?
make sure you review the code using coderabbit