fix: print text to speak
This commit is contained in:
parent
740f3a1e1b
commit
b185ac664b
1 changed files with 2 additions and 0 deletions
|
|
@ -209,6 +209,8 @@ class SpeechToText:
|
|||
if not pygame.get_init():
|
||||
pygame.mixer.init(frequency=self.rate, channels=self.channels)
|
||||
|
||||
print("speaking text: ", text)
|
||||
|
||||
print("Converting text to speech...")
|
||||
# Create a temporary file to store the TTS audio
|
||||
with tempfile.NamedTemporaryFile(suffix='.mp3', delete=False) as temp_file:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue