Skip to content

Instantly share code, notes, and snippets.

@tldrafael
Created November 16, 2018 15:53
Show Gist options
  • Save tldrafael/657d2f0c24240920b685dde4c8e1859e to your computer and use it in GitHub Desktop.
Save tldrafael/657d2f0c24240920b685dde4c8e1859e to your computer and use it in GitHub Desktop.
# get mp3 stdout output, pipe it to sox to remove beginning and end silence, and force specific rate sample and monochannel
gtts-cli "Hello World" | sox -t mp3 - -r 8000 -c 1 out.wav silence 1 0.1 1% reverse silence 1 0.1 1% reverse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment