Skip to content

Commit

Permalink
Created textToSpeech.py which uses speech() to read out given string.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonGaudert committed Feb 17, 2018
1 parent 660e1d0 commit 399d3fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
8 changes: 8 additions & 0 deletions textToSpeech.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#In main .py file type "from textToSpeech import speech" then pass a string to the speech() function
#This solution will only work with linux machines

import os

def speech(text):
os.system("say " + text)

0 comments on commit 399d3fb

Please sign in to comment.