https://github.com/liske/readout
read out text using Speech::Google::TTS
https://github.com/liske/readout
Last synced: 10 months ago
JSON representation
read out text using Speech::Google::TTS
- Host: GitHub
- URL: https://github.com/liske/readout
- Owner: liske
- License: gpl-2.0
- Created: 2013-12-28T16:21:26.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-29T16:30:58.000Z (over 12 years ago)
- Last Synced: 2025-03-13T00:33:35.253Z (over 1 year ago)
- Language: Perl
- Size: 117 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: COPYING
Awesome Lists containing this project
README
readout
=======
about
-----
*readout* does text to speech convertion using Speech::Google:TTS of
Niels Dettenbach. It should be used for short texts supplied as
command line arguments.
*readout* does local caching, the Google stuff is only used for new
texts.
It could be used for home automation or monitoring stuff.
usage
-----
```bash
$ ./readout [| [| ] ...]
/home/thomas/.cache/readout/lang-en/tts_Us2s8Z.wav
/home/thomas/.cache/readout/lang-en/tts_lKj319.wav
/home/thomas/.cache/readout/lang-en/tts_IH_kBH.wav
...
```
Texts blocks can be splitted by pipes ('|'). Each block is written to a single
file. This can be used to improve caching.
For playback you might pipe it into *xargs* like this:
```bash
$ ./readout Hello World\! | xargs aplay
Playing WAVE '/home/thomas/.cache/readout/lang-en/tts_9c__3k.wav' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
```
The language is derived from the environment variable `LANG`. Languages can
be enforced by setting the `READOUT_LANG` environment variable.
install
-------
The following software is required:
* [Speech::Google::TTS](http://www.syndicat.com/open_source/google/perl/googletts/)
* mpg123