ebook-speaker(1)

πŸ’– ebook-speaker(1) πŸ’– β€” Linux Reference Manual

okay bestie, sit down, hydrate, and let me tell you about ebook-speaker β€” a whole icon of a program from the Linux Reference Manual. she reads books out loud. to you. like a tiny robotic bestie with a speech synthesizer. no cap. ✨


🌸 NAME 🌸

eBook-speaker β€” read aloud eBooks and other text formats using a software speech-synthesizer πŸ—£οΈπŸ“–


πŸ¦‹ SYNOPSIS πŸ¦‹

ebook-speaker [eBook_file | URL | -s [-r resolution]] [-b n | y | position] [-c] [-d audio_device:audio_type] [-h] [-H] [-i] [-o language-code] [-S] [-t TTS_command] [-v]

✨ DESCRIPTION ✨

eBook-speaker reads your eBooks and other text formats out loud, and honestly? it will even read scanned documents, using a software speech-synthesizer. by default the tool espeak does the talking. πŸ—£οΈ

she can also read straight from http://, https:// and ftp:// URLs using the tool wget. and because she's that girl, eBook-speaker can also scan a document by itself using the scanimage application. πŸ’…

a list of items on the eBook will pop up. press ENTER to start reading. when the reading of an item has finished, eBook-speaker reads the next item and the cursor automatically skips to that item β€” so an attached braille-terminal will display the name of that item. it's giving accessible AND cute. 🫢


πŸŽ€ OPTIONS πŸŽ€

eBook_file

  • eBook_file β€” give an eBook_file as the argument to eBook-speaker. so many eBook formats are supported, it's honestly iconic. eBook-speaker also tries to read scanned documents through Optical Character Recognition (OCR πŸ‘€βœ¨).

πŸ“š 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

when you don't supply an input file at all, eBook-speaker will bring up a file-manager. see KEYBOARD COMMANDS IN THE FILEMANAGER for the whole vibe. πŸ—‚οΈ

The rest of the flags, mwah

  • -b n | y | position β€” set the initial break_on_EOL or position. this kicks in after quitting eBook-speaker. the setting gets saved and used as the default for future books, and it can be overruled with the b-command for each individual book. see the b command below. πŸ’Ύ
  • -c β€” eBook-speaker uses tesseract for OCR by default. this option forces her to use cuneiform instead. switching teams, we respect it. πŸ™ˆ
  • -d audio_device:audio_type β€” eBook-speaker will play on this sound device of the given audio_type. the value must be of the form "audio_device:audio_type". example: "-d default:alsa", "hw:0:alsa" or "0:pulseaudio". this option overrules the value in the ~/.eBook-speaker/* config file. and bestie, be sure the user is a member of the group "audio". πŸ”‰
  • -h β€” print this usage message.
  • -H β€” show "hidden" files in the file-manager. πŸ‘»
  • -i β€” ignore reading of the bookmark. πŸ”–
  • -l β€” Deprecated. eBook-speaker now determines the file-type using the libmagic library. (it's giving retirement party πŸ’€)
  • -o language-code β€” the language code for OCR to use. typically an ISO 639-1 two-letter code, see https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes. if this option is not specified, the language is determined according to the current locale. 🌍
  • -r resolution β€” by default the option -s will scan at a resolution of 400 DPI. with this option one can force another resolution. πŸ”
  • -s β€” scan a document using a hardware scanner and OCR it with either tesseract or cuneiform. πŸ“ 
  • -S β€” do not display the phrase-numbers passing during playback. shhh. 🀫
  • -t TTS-command β€” be sure that the TTS reads from the file eBook-speaker.txt and that it writes to the file eBook-speaker.wav. to add the TTS-command permanently one has to edit the ~/.eBook-speaker.xml file by hand. ✍️
  • -v β€” be more verbose, so one can see what's going on. πŸ‘€

πŸ’« Examples

  • ebook-speaker some.epub -t "espeak -f eBook-speaker.txt -w eBook-speaker.wav -v nl"
  • ebook-speaker some.epub -t "flite eBook-speaker.txt eBook-speaker.wav"
  • ebook-speaker some.epub -t "text2wave eBook-speaker.txt -o eBook-speaker.wav"

🌈 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. aesthetic. πŸŽ€

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
  • the current displayed screen and the total number of screens

the next rows display the title of the item, the first page of that item in 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. πŸ’…

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. 🫢


πŸ‘‘ CONTROL KEYS πŸ‘‘

eBook-speaker recognizes the following keyboard-commands:

  • cursor down,2 β€” move cursor to the next item.
  • cursor up,8 β€” move cursor to the previous item.
  • cursor right,6 β€” skip to next phrase.
  • cursor left,4 β€” skip to previous phrase.
  • page-down,3 β€” view next screen.
  • page-up,9 β€” view previous screen.
  • enter β€” start reading. πŸ“–
  • space,0 β€” pause/resume reading.
  • home,* β€” read on normal speed.
  • / β€” search for a label.
  • A β€” store current item to disk in ASCII-format.
  • b β€” set a phrase-break at the end of a line or position. when set to 'y'es, eBook-speaker will start a new phrase after each New-Line character. when set to 'n'o, each New-Line character will be seen as a space, so that two or more lines are concatenated to one phrase. or set a break at the Nth position.
  • B β€” move cursor to the last item.
  • d β€” store current item to disk in WAV-format.
  • D,- β€” decrease reading speed.
  • f β€” find the currently reading item and place the cursor there.
  • g β€” go to phrase in current item.
  • G β€” go to page number. (if there are pages)
  • h,? β€” give this help.
  • j,5 β€” just read current item and place a "J" at the first column.
  • l β€” switch to next level.
  • L β€” switch to previous level.
  • m β€” mute sound on/off. πŸ”‡
  • n β€” search forwards.
  • N β€” search backwards.
  • o β€” select an output sound device.
  • p β€” place a bookmark. πŸ”–
  • q β€” quit eBook-speaker. the reading-point is saved as bookmark.
  • r β€” rotate the scanned document. if the document is accidentally placed upside-down on the scanner, it can not be OCR'ed correctly. this command will rotate the scanned document 90 degrees. πŸ™ƒ
  • s β€” stop reading.
  • S β€” toggle show progress on/off.
  • t β€” select a TTS.
  • T β€” move cursor to the first item.
  • U,+ β€” increase reading speed.
  • v,1 β€” decrease playback volume.
  • V,7 β€” increase playback volume. (beware of Clipping ⚠️)
  • w β€” store whole book to disk in WAV-format.
  • x β€” go to the file-manager.

πŸ—‚οΈ KEYBOARD COMMANDS IN THE FILEMANAGER πŸ—‚οΈ

  • enter,cursor right,6 β€” start eBook-speaker with current file as input.
  • cursor left,4 β€” select previous directory and open it.
  • cursor down,2 β€” move cursor to the next file.
  • cursor up,8 β€” move cursor to the previous file.
  • page-down,3 β€” view next page.
  • page-up,9 β€” view previous page.
  • / β€” search for a file.
  • end,B β€” move cursor to the last file.
  • h,? β€” give this help.
  • H,0 β€” toggle hidden files displaying on or off.
  • i β€” give some information about current file.
  • n β€” search next.
  • N β€” search previous.
  • q β€” quit eBook-speaker.
  • home,T β€” move cursor to the first file.

πŸŽ™οΈ TTS πŸŽ™οΈ

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. ✨

  • choose one by moving the cursor with the cursor-keys and select it by pressing the ENTER-key.
  • to delete or add a TTS-command one has to edit the file ~/.eBook-speaker.xml by hand and follow the instructions.

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. πŸ“


πŸ’œ TTS EXAMPLES πŸ’œ

here are some examples to insert into the ~/.eBook-speaker.xml file:

  • 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`"

🌟 THANKS TO 🌟

  • Daniel Veillard daniel@veillard.com β€” for the XML2 library. 🫢
  • Chris Bagwell cbagwell@users.sourceforge.net
  • Rob Sykes aquegg@yahoo.co.uk β€” for sox.
  • Didier Spaier didier@slint.fr β€” for the TTS enhancements. πŸŽ™οΈ

πŸ“ FILES πŸ“

  • ~/.eBook-speaker/ β€” okay bestie this is where your bookmarks live, in XML format ✨. Every single file in here is named after a book, and inside it's keeping track of everything: the name of the current item, the start-phrase of that item, the current level, which TTS you wanted, the reading speed you wanted, the phrase-break point you wanted, and the current sink in the list of available sound devices. It's giving ✨*receipts*✨, fr fr.
  • ~/.eBook-speaker.xml β€” this file, also in XML format, holds a whole list of the TTS's you've got available πŸŽ€. (peep the TTS EXAMPLES section if you wanna see how it's done, iykyk)
  • /tmp/eBook-speaker.XXXXXX β€” eBook-speaker makes a lil temporary directory for itself here 🫢. It gets yeeted the moment you quit. No leftover mess, no cap πŸ’….

πŸ“ NOTES πŸ“

So an EPUB-book has two index-files for navigation: a NCX and an OPF file. eBook-speaker tries its absolute best to figure out which one of these two gives the best result 🧚 β€” but sometimes it just can't make the best choice, and that's not a vibe 😭.

When in doubt, use option --N to force the use of NCX, or -O to force the OPF. Periodt.

πŸ‘€ SEE ALSO πŸ‘€

The friend group of other programs that hang out with this one πŸ’œ:

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), pulseaudio(1), pactl(1), amixer(1), alsamixer(1), magic(5), locale(7), usermod(8)


πŸ‘‘ AUTHOR πŸ‘‘

Jos Lemmens <jos@jlemmens.nl> β€” the icon, the legend, the moment 🌟


Copyright (C)2011-2021 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 🫢


<div align="center">i know that's a lot of caps lock bestie but it literally means what it means πŸ™ˆ</div>


okay that's the whole page!! you read ALL of it, main character energy fr πŸ’…βœ¨ this was ebook-speaker-6.2, dated 02 February 2026, and honestly? iconic. go read a book, you earned it πŸŽ€πŸ“šπŸ¦‹

πŸ“¦ where this page comes from