https://github.com/demsking/tts-shell
This script use the Google TTS API to read the current selected (copied) text
https://github.com/demsking/tts-shell
accessibility reader shell tts
Last synced: over 1 year ago
JSON representation
This script use the Google TTS API to read the current selected (copied) text
- Host: GitHub
- URL: https://github.com/demsking/tts-shell
- Owner: demsking
- License: gpl-3.0
- Created: 2017-06-08T12:16:28.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-10T17:42:34.000Z (about 6 years ago)
- Last Synced: 2024-05-22T21:22:13.203Z (about 2 years ago)
- Topics: accessibility, reader, shell, tts
- Language: Shell
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TTS Shell
This script use the Google TTS API to read the current selected
(copied) text.
## Install
Firstly install the `xsel` and `mplayer` packages:
```sh
sudo apt install -f xsel mplayer
```
Then, install the python tool `fastlang` for language detection
(https://github.com/kootenpv/fastlang):
```sh
git clone https://github.com/kootenpv/fastlang.git
cd fastlang
sudo python setup.py install
```
Finally, copy the `tts-shell` script to `~/.local/bin`:
```sh
wget -P ~/.local/bin https://raw.githubusercontent.com/demsking/tts-shell/master/tts-shell.sh
chmod +x ~/.local/bin/tts-shell.sh
```
## Global shortcut
You can add a global custom shortcut to read the last selected text. Follow this link to know how adding one on KDE Plasma: https://docs.kde.org/trunk5/en/kde-workspace/kcontrol/khotkeys/index.html
## License
Under the GPL3 license. See [LICENSE](https://github.com/demsking/tts-shell/blob/master/LICENSE) file for more details.