mirror of
https://github.com/leon-ai/leon.git
synced 2024-11-28 04:04:58 +03:00
feat(python tcp server): add break after :
character on new TTS engine
This commit is contained in:
parent
fd36eafb91
commit
b25b82b9dc
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user