Turn your emails into training data for a GPT that writes like you.
Open Terminal and paste:
curl -fsSL https://raw.githubusercontent.com/s-b-e-n-s-o-n/voice-synth/main/install.sh | bashThat's it. The TUI guides you through everything.
Run again later:
~/voice-synth/voice-synth-tuiYour emails from Google Takeout:
- Go to takeout.google.com
- Click "Deselect all", then select only Mail
- Download (any size - we handle split exports)
- Imports your mbox (filters spam/trash/drafts, emails older than 5 years)
- Converts to processing format
- Cleans & Anonymizes - filters to emails you sent, replaces PII
- Curates the best examples across topics, removes duplicates
Output: ~/Desktop/style_shortlist.csv
- Visual TUI - Progress bars, stage tracking, live output
- Auto-resume - Quit anytime, pick up where you left off
- Auto-detect - Finds your email address from the mbox
- Drag & drop - Drop files from Finder into the terminal
All processing happens locally. Nothing leaves your machine.
PII is replaced using Microsoft Presidio (NLP-based detection):
- Names →
[PERSON] - Emails →
[EMAIL] - Phones →
[PHONE] - Addresses →
[LOCATION] - Credit cards, SSNs, IPs, URLs → anonymized
Skip the TUI and run directly:
cd ~/voice-synth
# Full pipeline
~/.cache/voice-synth/venv/bin/python pipeline.py run takeout.mbox --sender you@gmail.com
# Individual stages
~/.cache/voice-synth/venv/bin/python pipeline.py import mail.mbox --out emails.json
~/.cache/voice-synth/venv/bin/python pipeline.py convert emails.json --out emails.jsonl
~/.cache/voice-synth/venv/bin/python pipeline.py clean emails.jsonl --out cleaned.json --sender you@gmail.com
~/.cache/voice-synth/venv/bin/python pipeline.py curate cleaned.json --out shortlist.csvFrom the TUI menu, select "Uninstall" and type uninstall to confirm.
Or manually:
rm -rf ~/voice-synth ~/.cache/voice-synth- macOS (ARM64) - Intel/Linux users can build from source
- Python 3.9+
# Install Go 1.21+
go build -o voice-synth-tui .
# Dependencies installed automatically on first run