Android TTS在最新TTS更新后以特定语音合成文本时出错

Android TTS在最新TTS更新后以特定语音合成文本时出错,android,android-tts,Android,Android Tts,我使用TTS合成文本,使用android TTS,特别是语音。在我更新文本到语音应用程序之前,它工作正常。我使用了以下代码来设置声音。我已经调试了这个,它设置正确的声音 Voice voice = null; for (Voice tmpVoice : getInstance().mTTS.getVoices()) { if (tmpVoice.getName().toLowerCase().contains(languageCode.toLowerCase() + "-in")) {

我使用TTS合成文本,使用android TTS,特别是语音。在我更新文本到语音应用程序之前,它工作正常。我使用了以下代码来设置声音。我已经调试了这个,它设置正确的声音

Voice voice = null;

for (Voice tmpVoice : getInstance().mTTS.getVoices()) {
    if (tmpVoice.getName().toLowerCase().contains(languageCode.toLowerCase() + "-in")) {
        if (tmpVoice.getName().toLowerCase().contains("male")) {
            voice = tmpVoice;
            break;
        }
    }
}

if (voice != null) {
    mTTS.setVoice(voice);
}
这就是我在logcat中遇到的错误

2020-04-28 12:45:03.860 29833-30009/? E/native: vocaine.h:213 Morphing target `male_1` not found.
2020-04-28 12:45:03.860 29833-30009/? E/native: vocoding.h:309 Error: !(vocaine->SetMorphing(target.reference()))
2020-04-28 12:45:03.861 29833-30009/? E/native: vocoding.h:285 Error: !(SetMorphing(advanced.morphing(), vocaine))
2020-04-28 12:45:03.861 29833-30009/? E/native: vocoding.cc:135 Error: !(SetMorphing(utt, mcep_bandap_vocaine_.get()))
2020-04-28 12:45:03.861 29833-30009/? E/native: lstm_synthesizer_stream_base.cc:127 Error: !(algo_.RunOneFrame(utterance, frame.vocoder_param(), frame_index_, GetParent(frame), sample))
2020-04-28 12:45:03.861 29833-30009/? E/native: lstm_synthesizer_stream_base.cc:167 Error: !(SynthesizeWaveform(*output_, frame, &sample))
2020-04-28 12:45:03.861 29833-30009/? E/native: vocoding_stream.cc:163 Error: !(FillBuffer(&finished))
2020-04-28 12:45:03.861 29833-30009/? E/native: vocoding_stream.cc:221 Failed trying to do buffered synthesis.
2020-04-28 12:45:03.861 29833-30009/? E/native: utterance_streaming_stream.cc:155 Error: output == nullptr
2020-04-28 12:45:03.861 29833-30009/? E/native: sync_pipeline_runner.cc:71 Pipeline stream controller_events failed: UNKNOWN: output == nullptr [type.googleapis.com/util.ErrorSpacePayload='SpeechErrorSpace::SpeechError(-79201)']
2020-04-28 12:45:03.861 29833-30009/? E/native: tts_controller.cc:361 Read operation failed!
2020-04-28 12:45:03.861 29833-30009/? E/TTS.EventProcessor: readBuffered returned null, failing synthesis
2020-04-28 12:45:03.868 29833-30009/? E/TTS.LocalSynthesizer: synthesizeWithoutLoadingVoice() failed
2020-04-28 12:45:03.868 29833-30009/? E/TTS.GoogleTTSServiceImp: Synthesis failure with error status code: -3