eBook-speaker(1) | Linux Reference Manual | eBook-speaker(1) |
eBook-speaker - read aloud eBooks and other text formats using a software speech-synthesizer
eBook-speaker [eBook_file | URL | -s [-r resolution]] [-o language-code] [-h] [-i] [-d pulseaudio_sound_device] [-t TTS_command] [-b n | y] [-c]
eBook-speaker reads aloud eBooks and other text formats and even scanned documents using a software speech-synthesizer. By default the tool espeak is used for speech output. eBook-speaker can read from http://, https:// and ftp:// URLs using the tool wget. eBook-speaker also can scan a documant by itself using the scanimage application.
A list of items on the eBook will appear. Press <ENTER> to start reading. When reading of an item has finished, eBook-speaker will read the next item and the cursor will automatically skip to that item, so that an attached braille-terminal will display the name of that item.
Supported formats
-----------------
AportisDoc
AppleSingle encoded Macintosh
ASCII mail text
ASCII text
awk script text
Bourne-Again shell script text
Broadband eBooks (BBeB)
C source text
Composite Document File (Microsoft Office Word)
DAISY3 DTBook
EPUB ebook data
GIF image data
GNU gettext message catalogue
GutenPalm zTXT
HTML document
ISO-8859 text
JPEG image data
Microsoft Reader eBook Data
Microsoft Windows HtmlHelp Data
Microsoft Word 2007+
Mobipocket E-book
MS Windows HtmlHelp Data
Netpbm PPM data
OpenDocument Text
Pascal source
PDF document
PeanutPress PalmOS
Perl script text
PNG image data
POSIX shell script text
PostScript document
Python script
Rich Text Format
Tenex C shell script text
troff or preprocessor text (e.g. Linux man-pages)
UTF-8 Unicode mail text
UTF-8 Unicode text
WordPerfect
XML document text
Examples:
The name and version of this program and the name of the author is displayed left aligned at the top of the screen. The name of the current loaded book is displayed right aligned.
The second row of the screen displays the number of pages of the current loaded book (if any), the current selected level and the total number of levels, the total number of phrases and the current displayed screen and the total number of screens.
The spoken phrase will be displayed on the bottom-line of the screen, so one can follow along on a braille-terminal what he/she hears.
The next rows displays the title of the item, the first page of the item within brackets (if there are pages) and the total number of phrases in this item. Items in higher levels are indented. (Three spaces each level.) When "just reading this item" is active, a "J" is viewed at the first column of that item.
eBook-speaker recognizes the following keyboard-commands:
When pressing the 't'-command, the TTS-selector appears. A few TTS-applications are defined by default. The first TTS in the TTS-selector will be espeak with option -v set according to the current locale.
Be sure that the new TTS reads its information from the file eBook-speaker.txt and that it writes to the file eBook-speaker.wav.
Here are some examples to insert into the TTS-selector:
espeak -f eBook-speaker.txt -w eBook-speaker.wav
espeak -f eBook-speaker.txt -w eBook-speaker.wav -v mb-en1
espeak -f eBook-speaker.txt -w eBook-speaker.wav -v de
espeak -f eBook-speaker.txt -w eBook-speaker.wav -v pt
espeak -f eBook-speaker.txt -w eBook-speaker.wav -v nl
espeak -f eBook-speaker.txt -w eBook-speaker.wav -v mb-nl2
flite eBook-speaker.txt eBook-speaker.wav
swift -n Lawrence -f eBook-speaker.txt -o eBook-speaker.wav
text2wave eBook-speaker.txt -o eBook-speaker.wav
text2wave -eval '(voice_en1_mbrola)' eBook-speaker.txt -o eBook-speaker.wav
pico2wave -w eBook-speaker.wav "`cat eBook-speaker.txt`"
On some soundcards (especially onboard cards) the alsa driver only can play one file at a time. eBook-speaker crashes sometimes on these cards. From this version on the pulseaudio sound-driver will be used instead. The pulseaudio sound system has no problems with these cards.
I don't know how to play with pulseaudio in the C function sox_open_write (). For now, the external command sox will be used instead.
ebook-convert(1), pandoc(1), calibre(1), iconv(1), lowriter(1), tesseract(1), cuneiform(1), espeak(1), flite(1), text2wave(1), mbrola(1), pico2wave(1), scanimage(1), pnmflip(1), gif2png(1), man2html(1), unar(1), swift(1), unrtf(1), wget(1), sox(1), magic(5), locale(7)
Jos Lemmens <jos@jlemmens.nl>
Copyright (C)2011-2018 Jos Lemmens <jos@jlemmens.nl>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program (see the file COPYING); if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
06 May 2018 | ebook-speaker-5.0 |