Skip to content

Instantly share code, notes, and snippets.

@dserodio
Created November 12, 2018 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dserodio/0534c785131b4aa277bda739e62cde1b to your computer and use it in GitHub Desktop.
Save dserodio/0534c785131b4aa277bda739e62cde1b to your computer and use it in GitHub Desktop.
Using Google Text to Speech (TTS) in Linux CLI
# gTTS (Google Text-to-Speech), a Python library and CLI tool to interface with Google Translate's text-to-speech API
# https://github.com/pndurette/gTTS
pipsi install gTTS
sudo apt install mpg123
say() {
gtts-cli "$@" | mpg123 -
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment