Permalink
Browse files

Update tts.py

Allows the text to be inputted via Terminal input instead of via editting tts.py itself.
  • Loading branch information...
LaurenHarriman committed May 4, 2017
1 parent 62f0611 commit b1f2d1f1923c4b069522a647dbe42c3c11191a9e
Showing with 7 additions and 2 deletions.
  1. +7 −2 python/text_to_speech/tts.py
@@ -21,8 +21,13 @@ def main():
password=os.environ.get("TTS_PASSWORD"),
x_watson_learning_opt_out=True) # Optional flag

text = "Watson loves galvanize and Seattle"
#Customize the text using input from Terminal
text = input("What should I say? ")
convert_to_audio(tts, text)

#Print in Terminal what Watson's going to say
print("Watson is going to say: '%s'" % text)


if __name__ == '__main__':
main()
main()

0 comments on commit b1f2d1f

Please sign in to comment.