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.7.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file readthis-0.0.7.tar.gz
.
File metadata
- Download URL: readthis-0.0.7.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 | 5808c6a704d5d33335864050a4e456f443e4add4c1e3a4bfd55e07bf6292ae55 |
|
MD5 | e8b2bda095e1ca365dc77a7ce67023a9 |
|
BLAKE2b-256 | b40df136e3cccffb034999ea2aabea9c5ab3443aca1cd14595af4cc164f5dc8d |
File details
Details for the file readthis-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: readthis-0.0.7-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 | 26eab5538c1ba3ca372ea74edb1e183beab8f19d858f5ad329da9188cc00170a |
|
MD5 | 4abf63ef4eaa16a31473360c3109e163 |
|
BLAKE2b-256 | b3dc47d96d3ba554969d981e610bf9fa2dcfa8fb5678f0bc0043f4bfb7a06142 |