[#304] Rewrite Picovoice integrations #385

Merged
blacklight merged 36 commits from 304-new-picovoice-integration into master 2024-05-02 02:50:51 +02:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 71e32e4775 - Show all commits

View File

@ -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):