fix: print text to speak

This commit is contained in:
Jan Häusler 2025-07-03 01:39:50 +02:00
parent 740f3a1e1b
commit b185ac664b

View file

@ -209,6 +209,8 @@ class SpeechToText:
if not pygame.get_init(): if not pygame.get_init():
pygame.mixer.init(frequency=self.rate, channels=self.channels) pygame.mixer.init(frequency=self.rate, channels=self.channels)
print("speaking text: ", text)
print("Converting text to speech...") print("Converting text to speech...")
# Create a temporary file to store the TTS audio # Create a temporary file to store the TTS audio
with tempfile.NamedTemporaryFile(suffix='.mp3', delete=False) as temp_file: with tempfile.NamedTemporaryFile(suffix='.mp3', delete=False) as temp_file: