From cd921e15405e4d0f88d8f41f17215d3a7b686b74 Mon Sep 17 00:00:00 2001 From: Cosmo Date: Tue, 14 Apr 2026 15:26:21 +0000 Subject: [PATCH] fix: strip emoji from TTS text in clean_for_speech --- satellite/text.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/satellite/text.py b/satellite/text.py index 951138d..faa8320 100644 --- a/satellite/text.py +++ b/satellite/text.py @@ -88,6 +88,8 @@ UNIT_SLASH = [ def clean_for_speech(text: str) -> str: + # убрать эмодзи + text = re.sub(r'[𐀀-􏿿☀-➿🌀-🧿]', '', text, flags=re.UNICODE) text = re.sub(r'\*+', '', text) # убрать **жирный** text = re.sub(r'#+\s', '', text) # убрать ## заголовки text = re.sub(r'- ', '', text) # убрать тире списков