https://github.com/charlenry/readclip
ReadClip is a script written in Python that allows you to read aloud a text which has been copied to the clipboard in Linux systems. Several languages are possible like English, French, Spanish, Italian, German.
https://github.com/charlenry/readclip
linux python text-reader text-to-speech tts-linux
Last synced: 3 months ago
JSON representation
ReadClip is a script written in Python that allows you to read aloud a text which has been copied to the clipboard in Linux systems. Several languages are possible like English, French, Spanish, Italian, German.
- Host: GitHub
- URL: https://github.com/charlenry/readclip
- Owner: charlenry
- License: gpl-3.0
- Created: 2020-12-26T22:17:02.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-03T16:50:27.000Z (over 3 years ago)
- Last Synced: 2025-01-16T11:32:28.966Z (4 months ago)
- Topics: linux, python, text-reader, text-to-speech, tts-linux
- Language: Python
- Homepage:
- Size: 52.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## What is ReadClip? ##
This script, when launched, allows you to read aloud a text in English or French or Spanish which has been copied to the clipboard.
What is played is also saved in an `out.wav` file in the same folder as the script.
The content of the `out.wav` file changes with each new copy to the clipboard.
This script is intended for the Linux system which lacks this type of application.
It uses the TTS Pico SVOX engine.
It has been tested on Linux Ubuntu 14.04 LTS and Linux Mint 20.1.## Prerequisites: ##
For the script to work, install the `libttspico-utils`, `libttspico0`, `libttspico-data`, `sox`, `libsox-fmt-alsa`, `libsox-fmt-base`, `libsox2` (or `libsox3` for Linux Mint 20.1) and `xsel` packages.## Usage: ##
Type the following command line into a terminal where the script is located, depending on the text language you want to read:For English texts:
$ ./readclip-en.py
For French texts:
$ ./readclip-fr.py
For Spanish texts:
$ ./readclip-es.pyThen select and copy the text of your choice to hear the text read.
As long as the script is running, any text copied to the clipboard will be read.
To stop clipboard playback, press the `Ctrl + C` keys in the terminal to stop the script.
Other languages are possible. Available languages: US English: `en-US`, UK English: `en-GB`, German: `de-DE`, Spanish: `es-ES`, French: `fr-FR`, Italian: `it-IT`. You just have to change the value of the `lang` variable.