small fixes

This commit is contained in:
Looki2000
2023-12-04 23:07:43 +01:00
parent 345de72aa1
commit 20238a31bf
4 changed files with 49 additions and 17 deletions

View File

@@ -78,9 +78,6 @@ class TTSStream:
def tts_speak(self, text):
self.play_buffer_size = 512
# separate long sequences of numbers in text string (for example 123456789) into packets of 3 (123 456 789)
text = re.sub(r"(\d{3})(?=\d)", r"\1 ", text)
# open pyaudio stream
p = pyaudio.PyAudio()