.\"Text automatically generated by txt2man .TH eBook-speaker 1 "23 October 2016" "ebook-speaker-2.8.1" "Linux Reference Manual" .SH NAME \fBeBook-speaker \fP- read aloud eBooks and other text formats using a software speech-synthesizer \fB .SH SYNOPSIS .nf .fam C \fBeBook-speaker\fP [\fIeBook_file\fP | \fB-s\fP [\fB-o\fP \fIlanguage-code\fP]] [\fB-d\fP \fIALSA_sound_device\fP] [\fB-t\fP \fITTS_command\fP] .fam T .fi .fam T .fi .SH DESCRIPTION \fBeBook-speaker\fP 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. \fBeBook-speaker\fP also can scan a documant by itself using the scanimage application. .PP A list of items on the eBook will appear. Press to start reading. When reading of an item has finished, \fBeBook-speaker\fP 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. .SH OPTIONS .TP .B \fIeBook_file\fP Give an \fIeBook_file\fP as argument to \fBeBook-speaker\fP. Many eBook formats are supported. \fBeBook-speaker\fP also tries to read scanned documents through Optical Character Recognition. .PP .nf .fam C Supported formats ----------------- AportisDoc ASCII mail text ASCII text Broadband eBooks (BBeB) Composite Document File (Microsoft Office Word) DAISY3 DTBook EPUB ebook data GIF image data 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 PDF document PeanutPress PalmOS PNG image data PostScript document Rich Text Format troff or preprocessor text (e.g. Linux man-pages) UTF-8 Unicode mail text UTF-8 Unicode text WordPerfect XML document text .fam T .fi When no input-file is supplied, \fBeBook-speaker\fP will bring up a file-manager. .PP Keyboard-commands in the file-manager: .PP .nf .fam C enter or cursor right Start eBook-speaker with current file as input. cursor left Select previous directory and open it. cursor down Move cursor to the next file. cursor up Move cursor to the previous file. page-down View next page. page-up View previous page. / Search for a file. B Move cursor to the last file. h or ? Give this help. H Toggle hidden files displaying on or off. n Search next. N Search previous. q Quit eBook-speaker. T Move cursor to the first file. .fam T .fi .TP .B \fB-d\fP \fIALSA_sound_device\fP \fBeBook-speaker\fP will play on this sound device. Default is "hw:0". This option overrules the value in the ~/.eBook-speaker.xml config file. .TP .B \fB-l\fP Deprecated. \fBeBook-speaker\fP now determines the file-type using the libmagic library. .TP .B \fB-o\fP \fIlanguage-code\fP The language code for the tesseract OCR package to use. This option overrules the value in the ~/.eBook-speaker.xml config file. If none is specified, English is assumed. See the tesseract manual for the available language codes. .TP .B \fB-s\fP Scan a document using a hardware scanner and OCR it with the tool tesseract. .TP .B \fB-t\fP TTS-command Be sure that the TTS reads from the file eBook-speaker.txt and that it writes to the file eBook-speaker.wav. .PP Examples: .IP \(bu 3 \fBeBook-speaker\fP some.epub \fB-t\fP "espeak \fB-f\fP eBook-speaker.txt \fB-w\fP eBook-speaker.wav \fB-v\fP nl" .IP \(bu 3 \fBeBook-speaker\fP some.epub \fB-t\fP "flite eBook-speaker.txt eBook-speaker.wav" .IP \(bu 3 \fBeBook-speaker\fP some.epub \fB-t\fP "text2wave eBook-speaker.txt \fB-o\fP eBook-speaker.wav" .SH SCREEN 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. .PP 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. .PP 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. .PP 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. .SH CONTROL KEYS \fBeBook-speaker\fP recognizes the following keyboard-commands: .TP .B cursor down Move cursor to the next item. .TP .B cursor up Move cursor to the previous item. .TP .B cursor right Skip to next phrase. .TP .B cursor left Skip to previous phrase. .TP .B page-down View next screen. .TP .B page-up View previous screen. .TP .B enter Start reading. .TP .B space Pause/resume reading. .TP .B home Read on normal speed. .TP .B / Search for a label. .TP .B B Move cursor to the last item. .TP .B d Store current item to disk in WAV-format. .TP .B D Decrease reading speed. .TP .B f Find the currently reading item and place the cursor there. .TP .B g Go to phrase in current item. .TP .B h or ? Give this help. .TP .B j Just read current item and place a "J" at the first column. .TP .B l Switch to next level. .TP .B L Switch to previous level. .TP .B n Search forewards. .TP .B N Search backwards. .TP .B o Select an output sound device. .TP .B p Place a bookmark. .TP .B q Quit \fBeBook-speaker\fP. The reading-point is saved as bookmark. .TP .B r Rotate the scanned document. If the document is accidently placed upside-down on the scanner, tesseract can not OCR it correctly. This command will rotate the scanned document 180 degrees. .TP .B s Stop reading. .TP .B t Select a TTS. .TP .B T Move cursor to the first item. .TP .B U Increase reading speed. .SH TTS When pressing the 't'\fB-command\fP, the TTS-selector appears. A few TTS-applications are defined by default. .IP \(bu 3 Choose one by moving the cursor with the cursor-keys and select it by pressing the ENTER-key. .IP \(bu 3 To delete a TTS-command press the DEL-key. .IP \(bu 3 A new TTS-command can be provided by adding the TTS-command to the TTS-line. .IP \(bu 3 To edit an existing TTS-command one has to edit the ~/.eBook-speaker.xml file by hand. .PP 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. .SH TTS EXAMPLES Here are some examples to insert into the TTS-selector: .PP .nf .fam C 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 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`" .fam T .fi .SH FILES .TP .B ~/.\fBeBook-speaker\fP/ This directory contains the bookmarks in XML-format. Each file has the name of the book and contains the name of the current item, the start-phrase of that item, the current level, the desired TTS and the desired reading speed. .TP .B ~/.eBook-speaker.xml This file, in XML-format, contains the name of the desired audio device, the desired OCR language and the TTS's to use. (See TTS EXAMPLES) .TP .B /tmp/eBook-speaker.XXXXXX \fBeBook-speaker\fP makes use of a temporary directory. It is removed after quiting. .SH SEE ALSO \fBebook-convert\fP(1), \fBcalibre\fP(1), \fBlowriter\fP(1), \fBtesseract\fP(1), \fBespeak\fP(1), \fBflite\fP(1), \fBtext2wave\fP(1), \fBmbrola\fP(1), \fBpico2wave\fP(1), \fBscanimage\fP(1), \fBmagic\fP(5), \fBman2html\fP(1), \fBunar\fP(1) .SH AUTHOR Jos Lemmens .SH COPYRIGHT Copyright (C)2014 Jos Lemmens .PP 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