This script creates a DAISY/NISO 2005 DTB and a Daisy 2.02 DTB from a DTBook 2005 document. A TTS system is used to create
the audio for the book. xml:lang attributes in the DTBook input document are used
to switch language of the TTS.
Note - at the time of writing, the default distribution of the Daisy Pipeline supports running the Narrator script on the Windows™ Linux, and Mac OS X™ operating systems.
Note - this script requires that you have the Lame MP3 encoder installed on your system. Please refer to the LAME installation instructions.
Any valid DTBook 2005 document with the following restrictions:
In order to conform to the Narrator internal requirements, the following transformations can be automatically applied to the input document:
<list>) and definition lists (<dl>) inside paragraphs (<p>) are extracted and moved as siblings of the paragraph.dc:Language, dc:Date and dc:Publisher metadata may be generated if they were not already set.xml:lang attribute will be added to the DTBook root element if it was not already present.doctitle element will be added to the front matter of the DTBook document if it was not already present.h1 or hd were found in the entire document.The input document is validated to make sure it complies to the above rules when this script is run.
A valid Daisy 2.02 full text full audio book with full skipabillity (page numbers, sidebars, production notes and foot notes). The book is synchronized on sentence level and the audio is encoded in MP3 format.
A valid DAISY/NISO 2005 full text full audio book with full skipabillity and escapability. As a part of the Narrator chain, the book is validated using ZedVal.
z3986-mp3 subdirectory while the Daisy 2.02 book will be located in the daisy202 subdirectory.xml:lang attributes.text or par) to target by href URIs in the content document and NCC of the DAISY 2.02 book.This script can be run out-of-the-box on Linux providing that two libraries are installed.
If you are using later versions of Ubuntu, eSpeak and its dependencies should be installed by default. Assure this is true by issuing the command espeak "testing" or something similar.
If you do not have eSpeak installed, get it at eSpeak SourceForge homepage.
Note for advanced users - you can configure which eSpeak voice to use for which language by changing the Speech Generator TTS builder configuration. This is done in transformers/speechgen2/tts/ttsbuilder.xml.
The Lame MP3 encoder needs to be installed, and the pipeline.user.properties file needs to point to the installation path.
Using Aptitude (for example on Ubuntu), install lame through the shell via the command sudo aptitude install lame.
In pipeline.user.properties (or through the Pipeline GUI if you are using that) change pipeline.lame.path to /usr/bin/lame.
This script supports the MathML in DAISY extension.
The following key points should be taken into account when using this script to generate MathML-enabled DTBs:
The separate document Running speechgen2 using multiple TTS slaves describes how to configure Narrator to use multiple concurrent TTS engines. Note - this requires high technical proficiency.
The documents linked below are parts of the Transformer technical documentation. These are developer and systems-administrator centric documents.