Step tts-for-epub3 {http://www.daisy.org/ns/pipeline/xproc}

Enriches an EPUB3 HTML document with break detection and generates audio clips with TTS.

Defined in: http://www.daisy.org/pipeline/modules/epub-utils/library.xpl

Input Ports

Port Description
source.fileset primary
source.in-memory sequence

The source fileset with HTML documents, lexicons and CSS stylesheets.

config

TTS configuration file

Configuration file with voice mappings, PLS lexicons and annotations.

Output Ports

Port Description
audio-map
result.fileset primary
result.in-memory sequence
status
log sequence

Options

Local Name Namespace URI Default Description
include-log 'false'

Whether or not to make the TTS log available on the "log" port.

audio 'true'

Enable Text-To-Speech

Whether to use a speech synthesizer to produce audio files.

audio-file-type 'audio/mpeg'

The desired file type of the generated audio files, specified as a MIME type.

Examples:

  • "audio/mpeg"
  • "audio/x-wav" (but note that this is not a core media type)
process-css 'true'

Set to false to bypass aural CSS processing.

stylesheet ''

CSS style sheets as space separated list of absolute URIs.

stylesheet-parameters '()'

Parameters that are passed to SCSS style sheets.

lexicon ()

PLS lexicons as list of absolute URIs.

sentence-class ''

Class attribute to mark sentences with.

temp-dir ''

Empty directory dedicated to this conversion. May be left empty in which case a temporary directory will be automatically created.