Created
November 12, 2018 16:36
-
-
Save dserodio/0534c785131b4aa277bda739e62cde1b to your computer and use it in GitHub Desktop.
Using Google Text to Speech (TTS) in Linux CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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