Skip to content

entropyqueen/readthis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Python command line tool to read a text file aloud

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages