Skip to main content

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


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.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

readthis-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file readthis-0.1.0.tar.gz.

File metadata

  • Download URL: readthis-0.1.0.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

Hashes for readthis-0.1.0.tar.gz
Algorithm Hash digest
SHA256 389808a64085ba33f14c2e57544d81c65fe07dccf800f7e821fbc0346ccd3762
MD5 5e870b8ac93fd2c43052b277dcdcf5fd
BLAKE2b-256 f38b7689a55a65655e4c19cb3540f237237f59fe8714882966c659e89c8cd545

See more details on using hashes here.

File details

Details for the file readthis-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: readthis-0.1.0-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

Hashes for readthis-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 baeb10881b2a047c9ee0b87f1d926c2dba74b488ac92c4f3231b9948ba080d2b
MD5 c2898b3fad115c521a512fa236c8ef19
BLAKE2b-256 d8bbad4e91a9d6449d1241aac5d535cd7b343337a5c6e03a8633e4385ca442ed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page