Readthis is a command line tool that reads aloud a given text file using the gTTS (Google Text-to-Speech) interface.
$ readthis [OPTIONS] FILE
FILE
: The file to read aloud. Use - to read from stdin.
-h, --help
: Show the help message and exit.--lang LANG, -l LANG
: Choose the language to use for reading. Specify the language using the language code (e.g., fr for French). Defaults to English.--url, -u
: fetch an URL instead of a file
$ pip install readthis
- Read a text file named sample.txt in English:
$ readthis --lang en sample.txt
- Read from stdin in French:
$ echo "Bonjour, comment ça va ?" | readthis -l fr
- Fetch and read an article:
$ readthis -u https://example.com
This project is licensed under the MIT License.