fix: print text to speak
This commit is contained in:
parent
740f3a1e1b
commit
b185ac664b
1 changed files with 2 additions and 0 deletions
|
|
@ -208,6 +208,8 @@ class SpeechToText:
|
||||||
# Initialize pygame mixer if not already done
|
# Initialize pygame mixer if not already done
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue