1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-11-27 16:16:48 +03:00

feat(python tcp server): add break after : character on new TTS engine

This commit is contained in:
louistiti 2024-05-18 22:42:48 +08:00
parent fd36eafb91
commit b25b82b9dc
No known key found for this signature in database
GPG Key ID: 92CD6A2E497E1669

View File

@ -115,7 +115,7 @@ class TCPServer:
output_path = os.path.join(TMP_PATH, output_file_name)
speed = 0.88
formatted_speech = speech.replace(' - ', '.').replace(',', '.')
formatted_speech = speech.replace(' - ', '.').replace(',', '.').replace(': ', '. ')
# Clean up emojis
formatted_speech = re.sub(r'[\U00010000-\U0010ffff]', '', formatted_speech)
formatted_speech = formatted_speech.strip()