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.6.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file readthis-0.0.6.tar.gz
.
File metadata
- Download URL: readthis-0.0.6.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a579638a8386c9740646b0e758be89e674992ea2d0cb2e111404a4a1e80e57f |
|
MD5 | ef2046c87cc5a35b2b36168c16266ce0 |
|
BLAKE2b-256 | 0a2fbbbd6b784fb1d45b2074b78a2802bc9d3b642a5f803b2e774792ce060850 |
File details
Details for the file readthis-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: readthis-0.0.6-py3-none-any.whl
- Upload date:
- Size: 3.8 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 | 1e2ea1c65b19f8924c4ced60463092420741d80d1c3592acf40ecd41a1561b9b |
|
MD5 | 2076a3f352fcad33fea8961475997052 |
|
BLAKE2b-256 | 19ccf3c8e8c7422baf3b51541b2726abaf07a4610dc0c186fad74aeead557c2b |