Guest User

Untitled

a guest
Jul 6th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. myTTS.synthesizeToFile(text, null, file, null);
  2.  
  3. myTTS.setOnUtteranceProgressListener(new UtteranceProgressListener() {
  4. @Override
  5. public void onStart(String utteranceId) {
  6. System.out.println(".......START!!! ");
  7. }
  8.  
  9. @Override
  10. public void onDone(String utteranceId) {
  11. System.out.println("...........OK!!! ");
  12. }
  13.  
  14. @Override
  15. public void onError(String utteranceId) {
  16. Log.e(TAG, "Error while trying to synthesize sample text");
  17. }
  18. });
Add Comment
Please, Sign In to add comment