espeakngttswrapper¶
This module contains the following classes:
ESPEAKNGTTSWrapper, a wrapper for theeSpeak-ngTTS engine.
Please refer to https://github.com/espeak-ng/espeak-ng/ for further details.
-
class
aeneas.ttswrappers.espeakngttswrapper.ESPEAKNGTTSWrapper(rconf=None, logger=None)[source]¶ A wrapper for the
eSpeak-ngTTS engine.This wrapper supports calling the TTS engine via
subprocess.Future support for calling via Python C extension is planned.
In abstract terms, it performs one or more calls like
$ espeak-ng -v voice_code -w /tmp/output_file.wav < text
To use this TTS engine, specify
"tts=espeak-ng"in the
RuntimeConfigurationobject. To execute from a non-default location:"tts=espeak-ng|tts_path=/path/to/espeak-ng"See
BaseTTSWrapperfor 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
-
AM= 'am'¶ Amharic (not tested)
-
AMH= 'amh'¶ Amharic (not tested)
-
AN= 'an'¶ Aragonese (not tested)
-
ARG= 'arg'¶ Aragonese (not tested)
-
AS= 'as'¶ Assamese (not tested)
-
ASM= 'asm'¶ Assamese (not tested)
-
AZ= 'az'¶ Azerbaijani (not tested)
-
AZE= 'aze'¶ Azerbaijani (not tested)
-
BEN= 'ben'¶ Bengali (not tested)
-
BG= 'bg'¶ Bulgarian
-
BN= 'bn'¶ Bengali (not tested)
-
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_029= 'en-029'¶ English (West Indies) (not tested)
-
EN_GB= 'en-gb'¶ English (GB)
-
EN_GB_SCOTLAND= 'en-gb-scotland'¶ English (Scotland) (not tested)
-
EN_GB_X_GBCLAN= 'en-gb-x-gbclan'¶ English (Northern) (not tested)
-
EN_GB_X_GBCWMD= 'en-gb-x-gbcwmd'¶ English (Midlands) (not tested)
-
EN_GB_X_RP= 'en-gb-x-rp'¶ English (Received Pronunciation) (not tested)
-
EN_US= 'en-us'¶ English (USA)
-
EO= 'eo'¶ Esperanto (not tested)
-
EPO= 'epo'¶ Esperanto (not tested)
-
ES= 'es'¶ Spanish (Castillan)
-
EST= 'est'¶ Estonian
-
ES_419= 'es-419'¶ Spanish (Latin America) (not tested)
-
ET= 'et'¶ Estonian
-
EU= 'eu'¶ Basque (not tested)
-
EUS= 'eus'¶ Basque (not tested)
-
FA= 'fa'¶ Persian
-
FAS= 'fas'¶ Persian
-
FA_LATN= 'fa-Latn'¶ 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
-
GD= 'gd'¶ Scottish Gaelic (not tested)
-
GLA= 'gla'¶ Scottish Gaelic (not tested)
-
GLE= 'gle'¶ Irish
-
GN= 'gn'¶ Guarani (not tested)
-
GRC= 'grc'¶ Greek (Ancient)
-
GRN= 'grn'¶ Guarani (not tested)
-
GU= 'gu'¶ Gujarati (not tested)
-
GUJ= 'guj'¶ Gujarati (not tested)
-
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_AREVMDA= 'hy-arevmda'¶ Armenian (West) (not tested)
-
IA= 'ia'¶ Interlingua (not tested)
-
ID= 'id'¶ Indonesian (not tested)
-
INA= 'ina'¶ Interlingua (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)
-
KAL= 'kal'¶ Greenlandic (not tested)
-
KAN= 'kan'¶ Kannada (not tested)
-
KAT= 'kat'¶ Georgian (not tested)
-
KIR= 'kir'¶ Kirghiz (not tested)
-
KL= 'kl'¶ Greenlandic (not tested)
-
KN= 'kn'¶ Kannada (not tested)
-
KU= 'ku'¶ Kurdish (not tested)
-
KUR= 'kur'¶ Kurdish (not tested)
-
KY= 'ky'¶ Kirghiz (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)
-
MAR= 'mar'¶ Marathi (not tested)
-
MK= 'mk'¶ Macedonian (not tested)
-
MKD= 'mkd'¶ Macedonian (not tested)
-
ML= 'ml'¶ Malayalam (not tested)
-
MLT= 'mlt'¶ Maltese (not tested)
-
MR= 'mr'¶ Marathi (not tested)
-
MS= 'ms'¶ Malay (not tested)
-
MSA= 'msa'¶ Malay (not tested)
-
MT= 'mt'¶ Maltese (not tested)
-
MY= 'my'¶ Burmese (not tested)
-
MYA= 'mya'¶ Burmese (not tested)
-
NAH= 'nah'¶ Nahuatl (not tested)
-
NCI= 'nci'¶ Nahuatl (not tested)
-
NE= 'ne'¶ Nepali (not tested)
-
NEP= 'nep'¶ Nepali (not tested)
-
NL= 'nl'¶ Dutch
-
NLD= 'nld'¶ Dutch
-
NO= 'no'¶ Norwegian
-
NOR= 'nor'¶ Norwegian
-
OM= 'om'¶ Oromo (not tested)
-
OR= 'or'¶ Oriya (not tested)
-
ORI= 'ori'¶ Oriya (not tested)
-
ORM= 'orm'¶ Oromo (not tested)
-
PA= 'pa'¶ Panjabi (not tested)
-
PAN= 'pan'¶ Panjabi (not tested)
-
PAP= 'pap'¶ Papiamento (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
-
SI= 'si'¶ Sinhala (not tested)
-
SIN= 'sin'¶ Sinhala (not tested)
-
SK= 'sk'¶ Slovak
-
SL= 'sl'¶ Slovenian (not tested)
-
SLK= 'slk'¶ Slovak
-
SLV= 'slv'¶ Slovenian (not tested)
-
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)
-
TAT= 'tat'¶ Tatar (not tested)
-
TE= 'te'¶ Telugu (not tested)
-
TEL= 'tel'¶ Telugu (not tested)
-
TN= 'tn'¶ Tswana (not tested)
-
TR= 'tr'¶ Turkish
-
TSN= 'tsn'¶ Tswana (not tested)
-
TT= 'tt'¶ Tatar (not tested)
-
TUR= 'tur'¶ Turkish
-
UK= 'uk'¶ Ukrainian
-
UKR= 'ukr'¶ Ukrainian
-
UR= 'ur'¶ Urdu (not tested)
-
URD= 'urd'¶ Urdu (not tested)
-
VI= 'vi'¶ Vietnamese (not tested)
-
VIE= 'vie'¶ Vietnamese (not tested)
-
VI_VN_X_CENTRAL= 'vi-vn-x-central'¶ Vietnamese (hue) (not tested)
-
VI_VN_X_SOUTH= 'vi-vn-x-south'¶ 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 (