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.--url, -u
: fetch an URL instead of a file
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
- Fetch and read an article:
$ readthis -u https://example.com
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.1.1.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file readthis-0.1.1.tar.gz
.
File metadata
- Download URL: readthis-0.1.1.tar.gz
- Upload date:
- Size: 4.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 | 2ba3489f8c84da2e500769bf43f541cf6821e6790c9cf981a100986fd0ac24e6 |
|
MD5 | 686face35777965f235039edc140ec4c |
|
BLAKE2b-256 | 33207c84235925535847bd754e3a3d91d44289c52aa6b0c92fff328f1918c432 |
File details
Details for the file readthis-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: readthis-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.7 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 | 73f0e55c921aab8ba18b47d257cdc633a1372ccba1a9666d3a75b1b47d2aaf75 |
|
MD5 | 194981de6f1dc44ed87a3355b83b7a2a |
|
BLAKE2b-256 | 2305fbba8c24f63234d132d1cfb79f262bef1c19a043db9a97870a91fba96af4 |