Espeak phonemizer pipeline for spanish (and also english)

This commit is contained in:
Mathias Gatti
2022-07-14 22:14:32 -03:00
parent 2e6be74403
commit 840a97e70e
13 changed files with 491 additions and 15 deletions
@@ -0,0 +1,32 @@
import re
ZERO_DOLLARS = "zero dollars"
CENT_SINGULAR = "cent"
CENT_PLURAL = "cents"
DOLLAR_SINGULAR = "dollar"
DOLLAR_PLURAL = "dollars"
FLOAT_COMMA = "point"
EUROS_PLURAL = "euros"
_ordinal_re = re.compile(r'[0-9]+(st|nd|rd|th)')
_abbreviations_list = [
('mrs', 'misess'),
('mr', 'mister'),
('dr', 'doctor'),
('st', 'saint'),
('co', 'company'),
('jr', 'junior'),
('maj', 'major'),
('gen', 'general'),
('drs', 'doctors'),
('rev', 'reverend'),
('lt', 'lieutenant'),
('hon', 'honorable'),
('sgt', 'sergeant'),
('capt', 'captain'),
('esq', 'esquire'),
('ltd', 'limited'),
('col', 'colonel'),
('ft', 'fort'),
]
@@ -0,0 +1,20 @@
import re
ZERO_DOLLARS = "cero dólares"
CENT_SINGULAR = "centavo"
CENT_PLURAL = "centavos"
DOLLAR_SINGULAR = "dólar"
DOLLAR_PLURAL = "dólares"
FLOAT_COMMA = "coma"
EUROS_PLURAL = "euros"
_ordinal_re = re.compile(r'[0-9]+(\º|\ª|er|do|os|as)')
_abbreviations_list = [
('srs', 'señores'),
('sr', 'señor'),
('dr', 'doctor'),
('drs', 'doctores'),
('jr', 'yunior'),
]