language¶
This module contains the following classes:
Language
, an enumeration of the supported languages.
-
class
aeneas.language.
Language
[source]¶ Enumeration of the supported languages.
A language is supported by
aeneas
if at least one of the built-in TTS engine wrappers supports it. Note that each TTS engine wrapper supports only a subset of the languages listed below.Consult the documentation of your TTS engine wrapper to see the list of languages supported by it:
Each language is indicated by its ISO 639-3 language code.
-
AFR
= 'afr'¶ Afrikaans
-
ALLOWED_VALUES
= ['afr', 'amh', 'ara', 'arg', 'asm', 'aze', 'ben', 'bos', 'bul', 'cat', 'ces', 'cmn', 'cym', 'dan', 'deu', 'ell', 'eng', 'epo', 'est', 'eus', 'fas', 'fin', 'fra', 'gla', 'gle', 'glg', 'grc', 'grn', 'guj', 'heb', 'hin', 'hrv', 'hun', 'hye', 'ina', 'ind', 'isl', 'ita', 'jbo', 'jpn', 'kal', 'kan', 'kat', 'kir', 'kor', 'kur', 'lat', 'lav', 'lfn', 'lit', 'mal', 'mar', 'mkd', 'mlt', 'msa', 'mya', 'nah', 'nep', 'nld', 'nor', 'ori', 'orm', 'pan', 'pap', 'pol', 'por', 'ron', 'rus', 'sin', 'slk', 'slv', 'spa', 'sqi', 'srp', 'swa', 'swe', 'tam', 'tat', 'tel', 'tha', 'tsn', 'tur', 'ukr', 'urd', 'vie', 'yue', 'zho']¶ List of all the allowed values
-
AMH
= 'amh'¶ Amharic
-
ARA
= 'ara'¶ Arabic
-
ARG
= 'arg'¶ Aragonese
-
ASM
= 'asm'¶ Assamese
-
AZE
= 'aze'¶ Azerbaijani
-
BEN
= 'ben'¶ Bengali
-
BOS
= 'bos'¶ Bosnian
-
BUL
= 'bul'¶ Bulgarian
-
CAT
= 'cat'¶ Catalan
-
CES
= 'ces'¶ Czech
-
CMN
= 'cmn'¶ Mandarin Chinese
-
CODE_TO_HUMAN
= {'hin': 'Hindi', 'isl': 'Icelandic', 'yue': 'Yue Chinese', 'ell': 'Greek (Modern)', 'swa': 'Swahili', 'hrv': 'Croatian', 'msa': 'Malay', 'nah': 'Nahuatl', 'aze': 'Azerbaijani', 'mya': 'Burmese', 'kal': 'Greenlandic', 'orm': 'Oromo', 'nor': 'Norwegian', 'eus': 'Basque', 'urd': 'Urdu', 'ara': 'Arabic', 'ben': 'Bengali', 'lfn': 'Lingua Franca Nova', 'nld': 'Dutch', 'cat': 'Catalan', 'tam': 'Tamil', 'slv': 'Slovenian', 'guj': 'Gujarati', 'hye': 'Armenian', 'ukr': 'Ukrainian', 'amh': 'Amharic', 'jbo': 'Lojban', 'tha': 'Thai', 'lav': 'Latvian', 'pan': 'Panjabi', 'mlt': 'Maltese', 'lat': 'Latin', 'jpn': 'Japanese', 'dan': 'Danish', 'sin': 'Sinhala', 'est': 'Estonian', 'glg': 'Galician', 'lit': 'Lithuanian', 'sqi': 'Albanian', 'kat': 'Georgian', 'cym': 'Welsh', 'deu': 'German', 'hun': 'Hungarian', 'kor': 'Korean', 'ron': 'Romanian', 'kur': 'Kurdish', 'fra': 'French', 'vie': 'Vietnamese', 'slk': 'Slovak', 'ina': 'Interlingua', 'tel': 'Telugu', 'spa': 'Spanish', 'ita': 'Italian', 'srp': 'Serbian', 'grc': 'Greek (Ancient)', 'cmn': 'Mandarin Chinese', 'eng': 'English', 'ind': 'Indonesian', 'asm': 'Assamese', 'heb': 'Hebrew', 'arg': 'Aragonese', 'mar': 'Marathi', 'ces': 'Czech', 'bul': 'Bulgarian', 'epo': 'Esperanto', 'bos': 'Bosnian', 'kir': 'Kirghiz', 'nep': 'Nepali', 'pol': 'Polish', 'tsn': 'Tswana', 'tat': 'Tatar', 'por': 'Portuguese', 'pap': 'Papiamento', 'zho': 'Chinese', 'swe': 'Swedish', 'afr': 'Afrikaans', 'gle': 'Irish', 'gla': 'Scottish Gaelic', 'rus': 'Russian', 'mkd': 'Macedonian', 'kan': 'Kannada', 'fas': 'Persian', 'grn': 'Guarani', 'ori': 'Oriya', 'tur': 'Turkish', 'fin': 'Finnish', 'mal': 'Malayalam'}¶ Map from language code to human-readable name
-
CODE_TO_HUMAN_LIST
= ['afr\tAfrikaans', 'amh\tAmharic', 'ara\tArabic', 'arg\tAragonese', 'asm\tAssamese', 'aze\tAzerbaijani', 'ben\tBengali', 'bos\tBosnian', 'bul\tBulgarian', 'cat\tCatalan', 'ces\tCzech', 'cmn\tMandarin Chinese', 'cym\tWelsh', 'dan\tDanish', 'deu\tGerman', 'ell\tGreek (Modern)', 'eng\tEnglish', 'epo\tEsperanto', 'est\tEstonian', 'eus\tBasque', 'fas\tPersian', 'fin\tFinnish', 'fra\tFrench', 'gla\tScottish Gaelic', 'gle\tIrish', 'glg\tGalician', 'grc\tGreek (Ancient)', 'grn\tGuarani', 'guj\tGujarati', 'heb\tHebrew', 'hin\tHindi', 'hrv\tCroatian', 'hun\tHungarian', 'hye\tArmenian', 'ina\tInterlingua', 'ind\tIndonesian', 'isl\tIcelandic', 'ita\tItalian', 'jbo\tLojban', 'jpn\tJapanese', 'kal\tGreenlandic', 'kan\tKannada', 'kat\tGeorgian', 'kir\tKirghiz', 'kor\tKorean', 'kur\tKurdish', 'lat\tLatin', 'lav\tLatvian', 'lfn\tLingua Franca Nova', 'lit\tLithuanian', 'mal\tMalayalam', 'mar\tMarathi', 'mkd\tMacedonian', 'mlt\tMaltese', 'msa\tMalay', 'mya\tBurmese', 'nah\tNahuatl', 'nep\tNepali', 'nld\tDutch', 'nor\tNorwegian', 'ori\tOriya', 'orm\tOromo', 'pan\tPanjabi', 'pap\tPapiamento', 'pol\tPolish', 'por\tPortuguese', 'ron\tRomanian', 'rus\tRussian', 'sin\tSinhala', 'slk\tSlovak', 'slv\tSlovenian', 'spa\tSpanish', 'sqi\tAlbanian', 'srp\tSerbian', 'swa\tSwahili', 'swe\tSwedish', 'tam\tTamil', 'tat\tTatar', 'tel\tTelugu', 'tha\tThai', 'tsn\tTswana', 'tur\tTurkish', 'ukr\tUkrainian', 'urd\tUrdu', 'vie\tVietnamese', 'yue\tYue Chinese', 'zho\tChinese']¶ List of all language codes with their human-readable names
-
CYM
= 'cym'¶ Welsh
-
DAN
= 'dan'¶ Danish
-
DEU
= 'deu'¶ German
-
ELL
= 'ell'¶ Greek (Modern)
-
ENG
= 'eng'¶ English
-
EPO
= 'epo'¶ Esperanto
-
EST
= 'est'¶ Estonian
-
EUS
= 'eus'¶ Basque
-
FAS
= 'fas'¶ Persian
-
FIN
= 'fin'¶ Finnish
-
FRA
= 'fra'¶ French
-
GLA
= 'gla'¶ Scottish Gaelic
-
GLE
= 'gle'¶ Irish
-
GLG
= 'glg'¶ Galician
-
GRC
= 'grc'¶ Greek (Ancient)
-
GRN
= 'grn'¶ Guarani
-
GUJ
= 'guj'¶ Gujarati
-
HEB
= 'heb'¶ Hebrew
-
HIN
= 'hin'¶ Hindi
-
HRV
= 'hrv'¶ Croatian
-
HUN
= 'hun'¶ Hungarian
-
HYE
= 'hye'¶ Armenian
-
INA
= 'ina'¶ Interlingua
-
IND
= 'ind'¶ Indonesian
-
ISL
= 'isl'¶ Icelandic
-
ITA
= 'ita'¶ Italian
-
JBO
= 'jbo'¶ Lojban
-
JPN
= 'jpn'¶ Japanese
-
KAL
= 'kal'¶ Greenlandic
-
KAN
= 'kan'¶ Kannada
-
KAT
= 'kat'¶ Georgian
-
KIR
= 'kir'¶ Kirghiz
-
KOR
= 'kor'¶ Korean
-
KUR
= 'kur'¶ Kurdish
-
LAT
= 'lat'¶ Latin
-
LAV
= 'lav'¶ Latvian
-
LFN
= 'lfn'¶ Lingua Franca Nova
-
LIT
= 'lit'¶ Lithuanian
-
MAL
= 'mal'¶ Malayalam
-
MAR
= 'mar'¶ Marathi
-
MKD
= 'mkd'¶ Macedonian
-
MLT
= 'mlt'¶ Maltese
-
MSA
= 'msa'¶ Malay
-
MYA
= 'mya'¶ Burmese
-
NAH
= 'nah'¶ Nahuatl
-
NEP
= 'nep'¶ Nepali
-
NLD
= 'nld'¶ Dutch
-
NOR
= 'nor'¶ Norwegian
-
ORI
= 'ori'¶ Oriya
-
ORM
= 'orm'¶ Oromo
-
PAN
= 'pan'¶ Panjabi
-
PAP
= 'pap'¶ Papiamento
-
POL
= 'pol'¶ Polish
-
POR
= 'por'¶ Portuguese
-
RON
= 'ron'¶ Romanian
-
RUS
= 'rus'¶ Russian
-
SIN
= 'sin'¶ Sinhala
-
SLK
= 'slk'¶ Slovak
-
SLV
= 'slv'¶ Slovenian
-
SPA
= 'spa'¶ Spanish
-
SQI
= 'sqi'¶ Albanian
-
SRP
= 'srp'¶ Serbian
-
SWA
= 'swa'¶ Swahili
-
SWE
= 'swe'¶ Swedish
-
TAM
= 'tam'¶ Tamil
-
TAT
= 'tat'¶ Tatar
-
TEL
= 'tel'¶ Telugu
-
THA
= 'tha'¶ Thai
-
TSN
= 'tsn'¶ Tswana
-
TUR
= 'tur'¶ Turkish
-
UKR
= 'ukr'¶ Ukrainian
-
URD
= 'urd'¶ Urdu
-
VIE
= 'vie'¶ Vietnamese
-
YUE
= 'yue'¶ Yue Chinese
-
ZHO
= 'zho'¶ Chinese
-