为什么说话会被截断?
private void speakOut() {
String text = txtText.getText().toString();
if (result != tts.setLanguage(Locale.US)) {
Toast.makeText(getApplicationContext(), "Enter right Words...... ", Toast.LENGTH_LONG).show();
} else {
// speak given text
tts.s-p-e-a-k(text, TextToSpeech.QUEUE_FLUSH, null);
}
}
说:
'speak(java.lang.String,int,java.util.HashMap java.lang.String,java.lang.string>)' is deprecated