https://github.com/liske/readout
read out text using Speech::Google::TTS
https://github.com/liske/readout
Last synced: 2 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 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-29T16:30:58.000Z (over 11 years ago)
- Last Synced: 2025-01-19T17:24:40.386Z (4 months ago)
- Language: Perl
- Size: 117 KB
- Stars: 1
- Watchers: 4
- 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