festivalttswrapper¶
This module contains the following classes:
FESTIVALTTSWrapper
, a wrapper for theFestival
TTS engine.
Please refer to http://www.cstr.ed.ac.uk/projects/festival/ for further details.
-
class
aeneas.ttswrappers.festivalttswrapper.
FESTIVALTTSWrapper
(rconf=None, logger=None)[source]¶ A wrapper for the
Festival
TTS engine.This wrapper supports calling the TTS engine via
subprocess
or via Python C++ extension.Warning
The C++ extension call is experimental and probably works only on Linux at the moment.
In abstract terms, it performs one or more calls like
$ echo text | text2wave -eval "(language_italian)" -o output_file.wav
To use this TTS engine, specify
"tts=festival"
in the
RuntimeConfiguration
object. To execute from a non-default location:"tts=festival|tts_path=/path/to/wave2text"
See
BaseTTSWrapper
for the available functions. Below are listed the languages supported by this wrapper.Parameters: - rconf (
RuntimeConfiguration
) – a runtime configuration - logger (
Logger
) – the logger object
-
CES
= 'ces'¶ Czech
-
CYM
= 'cym'¶ Welsh
-
ENG
= 'eng'¶ English
-
ENG_GBR
= 'eng-GBR'¶ English (GB)
-
ENG_SCT
= 'eng-SCT'¶ English (Scotland)
-
ENG_USA
= 'eng-USA'¶ English (USA)
-
FIN
= 'fin'¶ Finnish
-
ITA
= 'ita'¶ Italian
-
RUS
= 'rus'¶ Russian
-
SPA
= 'spa'¶ Spanish
- rconf (