Skip to content

Instantly share code, notes, and snippets.

@ltddev
Created March 27, 2014 19:53
Show Gist options
  • Save ltddev/9816736 to your computer and use it in GitHub Desktop.
Save ltddev/9816736 to your computer and use it in GitHub Desktop.
Text2Speech
import console
import speech
title = "Text 2 Speech"
message1 = 'This Text to Speech application will speak the words you enter.'
speech.say(message1, "en-US", 0.2)
message2 = "Enter the text you want me to say, then click the 'Speak it!' button"
speech.say(message2, "en-US", 0.2)
textToSpeak = console.input_alert(title, message2,"Hello!","Speak it!")
speech.say(textToSpeak, "en-US", 0.2)
@ltddev
Copy link
Author

ltddev commented Apr 15, 2014

I successfully turned this app into a .ipa file (by exporting the Pythonista project for Xcode and then building the app in Xcode) that I installed on my jailbroken iPad 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment