Skip to content

realpacific/readthis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

readthis

A command-line text-to-speech tool powered by Kokoro-82M. Feed it plain text, a URL, piped input, or your clipboard, it extracts the content and reads it aloud. Audio generation and playback run on separate threads, so speech starts almost immediately rather than waiting for the full text to be synthesised.

demo.mp4

Installation

Requires Python 3.12 and uv.

uv tool install --python 3.12 git+https://github.com/realpacific/readthis

Usage

# Plain text
readthis "Hello, this is a test"

# URL — extracts and reads the article
readthis https://prashantbarahi.com.np/blog/be-nice

# Piped / multiline input
echo "First line.\nSecond line." | readthis
cat article.txt | readthis

# No argument — reads from clipboard
readthis

Options

readthis [input] [--voice VOICE] [--speed SPEED] [--lang LANG]
Flag Default Description
--voice af_heart Voice name
--speed 1.0 Speech speed
--lang a Language code (a = American English)

Examples

readthis "Good morning" --voice af_heart --speed 1.2
readthis https://prashantbarahi.com.np/blog/be-nice --speed 1.5
readthis  # reads whatever is in your clipboard

About

CLI Text-to-speech using Kokoro-82M

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages