Skip to content

Instantly share code, notes, and snippets.

@gcaracuel
Last active March 4, 2021 19:30
Show Gist options
  • Save gcaracuel/c99c6d7e2cf03ac74db4ed0f08ddbee2 to your computer and use it in GitHub Desktop.
Save gcaracuel/c99c6d7e2cf03ac74db4ed0f08ddbee2 to your computer and use it in GitHub Desktop.
Howto: Text to audio with old fashioned hacking voice. Use similar 'sox' command to hide you voice
# OSX requirements:
# brew install espeak
# brew install sox
# To std audio output:
espeak "Hello, you have until next week to run these linux command. Or else.." --stdout | sox - -d tempo 0.75 bend 0.1,-500,0.5 chorus 0 1.5 20 1 3 8 -s echos .7 .7 100 .5 10 0.1 reverb
# To output file:
espeak "Hello, you have until next week to run these linux command. Or else.." --stdout | sox - output.wav tempo 0.75 bend 0.1,-500,0.5 chorus 0 1.5 20 1 3 8 -s echos .7 .7 100 .5 10 0.1 reverb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment