forked from platypush/platypush
[tts.picovoice] Convert digits before replacing other substrings.
This commit is contained in:
parent
4734909912
commit
1192782729
1 changed files with 3 additions and 1 deletions
|
@ -59,10 +59,12 @@ class TextConversionUtils:
|
|||
|
||||
@classmethod
|
||||
def convert(cls, text: str) -> str:
|
||||
text = cls._convert_digits(text)
|
||||
|
||||
for pattern, replacement in TextConversionUtils._conversions_map:
|
||||
text = pattern.sub(replacement, text)
|
||||
|
||||
return cls._convert_digits(text)
|
||||
return text
|
||||
|
||||
|
||||
class TtsPicovoicePlugin(TtsPlugin):
|
||||
|
|
Loading…
Reference in a new issue