A fully automated Python tool that generates Peter Griffin AI voice from long text — no character limits, no manual clicking, and automatic MP3 merging.
This script:
- Splits long text into clean, natural-sounding chunks
- Drives a browser automatically
- Downloads each generated MP3 piece
- Merges them into one final clean output file
- Cleans up temporary files
- Saves results as downloads/outputs/<first_two_words>_output.mp3
- Works totally hands-off
- Starts Chrome minimized so your desktop isn’t held hostage
Perfect for memes, narrations, YouTube intros, cursed projects, and anything that needs the voice of the man, the myth, the spherical unit himself.
- You give it text
- The script slices it into readable voice chunks
- Selenium opens the voice generator page
- It pastes, clicks, waits, and downloads the audio
- Everything is merged cleanly
- The final MP3 goes into downloads/outputs/
Requirements:
- Python 3.10+
- Google Chrome installed
- ChromeDriver (auto-installed)
-
Clone the repository git clone https://github.com/bartek-milan/GriffinGPT.git cd GriffinGPT
-
Install required Python packages pip install -r requirements.txt
-
Run the script python main.py
Run with text file: python main.py mytext.txt
Run with inline text: python main.py "this is what peter griffin will say"
Final generated MP3s are saved in:
downloads/outputs/
File naming format: <first_two_words>_output.mp3
Example: massive_cylinder_output.mp3
- If the AI voice site changes layout, the bot may freak out
- Requires active internet
- Chrome must be installed
Do whatever you want with it.
PRs welcome — new voices, better chunking, GUI additions, retries, everything. TODO: closing the pop-up ads.
If this saved you hours of clicking and brainrot, consider starring the repo.
It helps more people find it.