Skip to content

Commit

Permalink
allowed stt.
Browse files Browse the repository at this point in the history
  • Loading branch information
tikismoke committed Aug 1, 2015
1 parent 920fb3c commit 22a0df5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/mq/Speaker.java
Expand Up @@ -51,10 +51,12 @@ public void speak(String text){
// and the user has allowed speech

if(ready && allowed) {
HashMap<String, String> hash = new HashMap<String,String>();
hash.put(TextToSpeech.Engine.KEY_PARAM_STREAM,
String.valueOf(AudioManager.STREAM_NOTIFICATION));
tts.speak(text, TextToSpeech.QUEUE_ADD, hash);
// Log.e(this.getClass().getSimpleName(),"Try tts "+text);
// HashMap<String, String> hash = new HashMap<String,String>();
// hash.put(TextToSpeech.Engine.KEY_PARAM_STREAM,
// String.valueOf(AudioManager.STREAM_NOTIFICATION));
//tts.speak(text, TextToSpeech.QUEUE_ADD, hash);
tts.speak(text, TextToSpeech.QUEUE_ADD, null);
}
}

Expand Down

0 comments on commit 22a0df5

Please sign in to comment.