readthis - A command line tool to read a text file aloud
Project description
Readthis
Readthis is a command line tool that reads aloud a given text file using the gTTS (Google Text-to-Speech) interface.
Usage
$ readthis [OPTIONS] FILE
Positional Arguments
FILE
: The file to read aloud. Use - to read from stdin.
Options
-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.
Installation
$ pip install readthis
Examples
- 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 -
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
readthis-0.0.5.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file readthis-0.0.5.tar.gz
.
File metadata
- Download URL: readthis-0.0.5.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d46b23c58fd89e28525b5a10796fdebe18cf773902883e80811deb433e04965 |
|
MD5 | e1b4f5199c7296decedec4079fb165d9 |
|
BLAKE2b-256 | 9b59c88be8011b0b3f7c0c5dd27bca5bb744ba549b4e869ee995aba7938d8422 |
File details
Details for the file readthis-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: readthis-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e30eeeb9f61f24bb6a8bdd1812c2eb0f3fb6e4f62aa2e605014070c834ce25d8 |
|
MD5 | ae746e42b3ce7d223b11126d636e458e |
|
BLAKE2b-256 | 26ffa26841d57323867a2d753539c0f7764f817fb1f2117ec49df105e6e65b91 |