espeakttswrapper¶
This module contains the following classes:
ESPEAKTTSWrapper
, a wrapper for theeSpeak
TTS engine.
Please refer to http://espeak.sourceforge.net/ for further details.
-
class
aeneas.ttswrappers.espeakttswrapper.
ESPEAKTTSWrapper
(rconf=None, logger=None)[source]¶ A wrapper for the
eSpeak
TTS engine.This wrapper is the default TTS engine for
aeneas
.This wrapper supports calling the TTS engine via
subprocess
or via Python C extension.In abstract terms, it performs one or more calls like
$ espeak -v voice_code -w /tmp/output_file.wav < text
To use this TTS engine, specify
"tts=espeak"
in the
RuntimeConfiguration
object. (You can omit this, since eSpeak is the default TTS engine.) To execute from a non-default location:"tts=espeak|tts_path=/path/to/espeak"
To run the
cew
Python C extension in a separate process viaCEWSubprocess
, use"cew_subprocess_enabled=True|cew_subprocess_path=/path/to/python"
in the
rconf
object.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
-
AF
= 'af'¶ Afrikaans
-
AFR
= 'afr'¶ Afrikaans
-
AN
= 'an'¶ Aragonese (not tested)
-
ARG
= 'arg'¶ Aragonese (not tested)
-
BG
= 'bg'¶ Bulgarian
-
BOS
= 'bos'¶ Bosnian (not tested)
-
BS
= 'bs'¶ Bosnian (not tested)
-
BUL
= 'bul'¶ Bulgarian
-
CA
= 'ca'¶ Catalan
-
CAT
= 'cat'¶ Catalan
-
CES
= 'ces'¶ Czech
-
CMN
= 'cmn'¶ Mandarin Chinese (not tested)
-
CS
= 'cs'¶ Czech
-
CY
= 'cy'¶ Welsh
-
CYM
= 'cym'¶ Welsh
-
DA
= 'da'¶ Danish
-
DAN
= 'dan'¶ Danish
-
DE
= 'de'¶ German
-
DEU
= 'deu'¶ German
-
EL
= 'el'¶ Greek (Modern)
-
ELL
= 'ell'¶ Greek (Modern)
-
EN
= 'en'¶ English
-
ENG
= 'eng'¶ English
-
ENG_GBR
= 'eng-GBR'¶ English (GB)
-
ENG_SCT
= 'eng-SCT'¶ English (Scotland) (not tested)
-
ENG_USA
= 'eng-USA'¶ English (USA)
-
EN_GB
= 'en-gb'¶ English (GB)
-
EN_SC
= 'en-sc'¶ English (Scotland) (not tested)
-
EN_UK_NORTH
= 'en-uk-north'¶ English (Northern) (not tested)
-
EN_UK_RP
= 'en-uk-rp'¶ English (Received Pronunciation) (not tested)
-
EN_UK_WMIDS
= 'en-uk-wmids'¶ English (Midlands) (not tested)
-
EN_US
= 'en-us'¶ English (USA)
-
EN_WI
= 'en-wi'¶ English (West Indies) (not tested)
-
EO
= 'eo'¶ Esperanto (not tested)
-
EPO
= 'epo'¶ Esperanto (not tested)
-
ES
= 'es'¶ Spanish (Castillan)
-
EST
= 'est'¶ Estonian
-
ES_LA
= 'es-la'¶ Spanish (Latin America) (not tested)
-
ET
= 'et'¶ Estonian
-
FA
= 'fa'¶ Persian
-
FAS
= 'fas'¶ Persian
-
FA_PIN
= 'fa-pin'¶ Persian (Pinglish)
-
FI
= 'fi'¶ Finnish
-
FIN
= 'fin'¶ Finnish
-
FR
= 'fr'¶ French
-
FRA
= 'fra'¶ French
-
FRA_BEL
= 'fra-BEL'¶ French (Belgium) (not tested)
-
FRA_FRA
= 'fra-FRA'¶ French (France)
-
FR_BE
= 'fr-be'¶ French (Belgium) (not tested)
-
FR_FR
= 'fr-fr'¶ French (France)
-
GA
= 'ga'¶ Irish
-
GLE
= 'gle'¶ Irish
-
GRC
= 'grc'¶ Greek (Ancient)
-
HI
= 'hi'¶ Hindi (not tested)
-
HIN
= 'hin'¶ Hindi (not tested)
-
HR
= 'hr'¶ Croatian
-
HRV
= 'hrv'¶ Croatian
-
HU
= 'hu'¶ Hungarian
-
HUN
= 'hun'¶ Hungarian
-
HY
= 'hy'¶ Armenian (not tested)
-
HYE
= 'hye'¶ Armenian (not tested)
-
HY_WEST
= 'hy-west'¶ Armenian (West) (not tested)
-
ID
= 'id'¶ Indonesian (not tested)
-
IND
= 'ind'¶ Indonesian (not tested)
-
IS
= 'is'¶ Icelandic
-
ISL
= 'isl'¶ Icelandic
-
IT
= 'it'¶ Italian
-
ITA
= 'ita'¶ Italian
-
JBO
= 'jbo'¶ Lojban (not tested)
-
KA
= 'ka'¶ Georgian (not tested)
-
KAN
= 'kan'¶ Kannada (not tested)
-
KAT
= 'kat'¶ Georgian (not tested)
-
KN
= 'kn'¶ Kannada (not tested)
-
KU
= 'ku'¶ Kurdish (not tested)
-
KUR
= 'kur'¶ Kurdish (not tested)
-
LA
= 'la'¶ Latin
-
LAT
= 'lat'¶ Latin
-
LAV
= 'lav'¶ Latvian
-
LFN
= 'lfn'¶ Lingua Franca Nova (not tested)
-
LIT
= 'lit'¶ Lithuanian
-
LT
= 'lt'¶ Lithuanian
-
LV
= 'lv'¶ Latvian
-
MAL
= 'mal'¶ Malayalam (not tested)
-
MK
= 'mk'¶ Macedonian (not tested)
-
MKD
= 'mkd'¶ Macedonian (not tested)
-
ML
= 'ml'¶ Malayalam (not tested)
-
MS
= 'ms'¶ Malay (not tested)
-
MSA
= 'msa'¶ Malay (not tested)
-
NE
= 'ne'¶ Nepali (not tested)
-
NEP
= 'nep'¶ Nepali (not tested)
-
NL
= 'nl'¶ Dutch
-
NLD
= 'nld'¶ Dutch
-
NO
= 'no'¶ Norwegian
-
NOR
= 'nor'¶ Norwegian
-
PA
= 'pa'¶ Panjabi (not tested)
-
PAN
= 'pan'¶ Panjabi (not tested)
-
PL
= 'pl'¶ Polish
-
POL
= 'pol'¶ Polish
-
POR
= 'por'¶ Portuguese
-
POR_BRA
= 'por-bra'¶ Portuguese (Brazil) (not tested)
-
POR_PRT
= 'por-prt'¶ Portuguese (Portugal)
-
PT
= 'pt'¶ Portuguese
-
PT_BR
= 'pt-br'¶ Portuguese (Brazil) (not tested)
-
PT_PT
= 'pt-pt'¶ Portuguese (Portugal)
-
RO
= 'ro'¶ Romanian
-
RON
= 'ron'¶ Romanian
-
RU
= 'ru'¶ Russian
-
RUS
= 'rus'¶ Russian
-
SK
= 'sk'¶ Slovak
-
SLK
= 'slk'¶ Slovak
-
SPA
= 'spa'¶ Spanish
-
SPA_ESP
= 'spa-ESP'¶ Spanish (Castillan)
-
SQ
= 'sq'¶ Albanian (not tested)
-
SQI
= 'sqi'¶ Albanian (not tested)
-
SR
= 'sr'¶ Serbian
-
SRP
= 'srp'¶ Serbian
-
SV
= 'sv'¶ Swedish
-
SW
= 'sw'¶ Swahili
-
SWA
= 'swa'¶ Swahili
-
SWE
= 'swe'¶ Swedish
-
TA
= 'ta'¶ Tamil (not tested)
-
TAM
= 'tam'¶ Tamil (not tested)
-
TR
= 'tr'¶ Turkish
-
TUR
= 'tur'¶ Turkish
-
UK
= 'uk'¶ Ukrainian
-
UKR
= 'ukr'¶ Ukrainian
-
VI
= 'vi'¶ Vietnamese (not tested)
-
VIE
= 'vie'¶ Vietnamese (not tested)
-
VI_HUE
= 'vi-hue'¶ Vietnamese (hue) (not tested)
-
VI_SGN
= 'vi-sgn'¶ Vietnamese (sgn) (not tested)
-
YUE
= 'yue'¶ Yue Chinese (not tested)
-
ZH
= 'zh'¶ Mandarin Chinese (not tested)
-
ZHO
= 'zho'¶ Chinese (not tested)
-
ZH_YUE
= 'zh-yue'¶ Yue Chinese (not tested)
- rconf (