Advertisement
Python253

iTalkDroid.py

Mar 6th, 2018
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.24 KB | None | 0 0
  1. #!/usr/bin/env python3.2.2
  2. ## -*- coding: utf-8 -*-
  3. # This Script Allows Users To Input Text And
  4. # Have The Built-in Tts-Speech Read It Out loud.
  5.  
  6. __file_name__ = 'iTalkDroid.py'
  7. __author__ = 'Dan Evans'
  8. __copyright__ = 'Copyright 2012©, Coding With Py'
  9. __credits__ = 'Dan Evans'
  10. __dct_url__ = 'http://purl.org/dc/terms/'
  11. __license__ = 'Creative Commons'
  12. __rel_url__ = 'http://creativecommons.org/licenses/by-nc/4.0/'
  13. __version__ = 'CC-by-nc/4.0/'
  14. __maintainer__ = 'Dan(Python253)Evans'
  15. __email__ = 'Python253@gmail.com'
  16.  
  17. print('\n','','iTalkDroid.py is licensed under',
  18.     'The Creative Commons Attribution-NonCommercial 4.0 International License',
  19.     '\n'*2,'File Name: '+__file_name__,'\n','Author: '+__author__,
  20.     '\n','Copyright: '+__copyright__,'\n','Credits: '+__credits__,
  21.     '\n','DCT URL: ','\n',__dct_url__,'\n','License: '+__license__,
  22.     '\n','Release URL: ','\n',__rel_url__,'\n','Version: '+__version__,
  23.     '\n','Maintainer: '+__maintainer__,'\n','Email: '+__email__,'\n')
  24.  
  25. import android as a
  26. droid = a.Android()
  27. d = droid
  28. speech = d.recognizeSpeech("Talk Now", None, None)
  29. print = speech[1]
  30. d.ttsSpeak(speech[1])
  31. ##If Speech Recognition Is OFF, An Alert Prompt Appears For You To Turn Speech Recognition ON.
  32. #End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement