为什么我的.speak会在Android中被截断?

时间:2015-04-06 15:14:07

标签: java android

为什么说话会被截断?

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

0 个答案:

没有答案