mirror of
https://github.com/storytold/storyteller-ml.git
synced 2026-10-21 08:06:47 +00:00
Espeak phonemizer pipeline for spanish (and also english)
This commit is contained in:
@@ -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'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user