Skip to content

Commit

Permalink
update text to speech tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
x4nth055 committed Dec 17, 2020
1 parent 04a4f79 commit fbab745
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Binary file modified machine-learning/text-to-speech/hello.mp3
Binary file not shown.
Binary file modified machine-learning/text-to-speech/hola.mp3
Binary file not shown.
Binary file added machine-learning/text-to-speech/python.mp3
Binary file not shown.
4 changes: 4 additions & 0 deletions machine-learning/text-to-speech/tts_pyttsx3.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@
engine.setProperty("voice", voices[1].id)
engine.say(text)
engine.runAndWait()

# saving speech audio into a file
engine.save_to_file(text, "python.mp3")
engine.runAndWait()

0 comments on commit fbab745

Please sign in to comment.