Skip to content

Commit fbab745

Browse files
committed
update text to speech tutorial
1 parent 04a4f79 commit fbab745

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed
-192 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
202 KB
Binary file not shown.

machine-learning/text-to-speech/tts_pyttsx3.py

+4
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@
3030
engine.setProperty("voice", voices[1].id)
3131
engine.say(text)
3232
engine.runAndWait()
33+
34+
# saving speech audio into a file
35+
engine.save_to_file(text, "python.mp3")
36+
engine.runAndWait()

0 commit comments

Comments
 (0)