我使用的服务是:语音合成 离在线融合SDK 2.3.0
调用的接口是:SpeechSynthesizer.initTts(TtsMode.MIX)
参数设置情况:
mSpeechSynthesizer = SpeechSynthesizer.getInstance();mSpeechSynthesizer.setContext(Configs.APP_CONTEXT);
mSpeechSynthesizer.setSpeechSynthesizerListener(this);
mSpeechSynthesizer.setAppId(Configs.APP_ID);
mSpeechSynthesizer.setApiKey(Configs.API_KEY, Configs.SECRET_KEY);
mSpeechSynthesizer.setParam(PARAM_MIX_MODE, Configs.MIX_MODE);
mSpeechSynthesizer.setParam(PARAM_SPEAKER, Configs.SPEAKER);
mSpeechSynthesizer.setParam(PARAM_SPEED, Configs.SPEED);
mSpeechSynthesizer.setParam(PARAM_PITCH, Configs.PITCH);
mSpeechSynthesizer.setParam(PARAM_VOLUME, Configs.VOLUME);
mSpeechSynthesizer.setParam(PARAM_VOCODER_OPTIM_LEVEL, "0");
mSpeechSynthesizer.setParam(PARAM_TTS_TEXT_MODEL_FILE, Configs.DIR_BAIDU_SPEECH + "bd_etts_text.dat");
mSpeechSynthesizer.setParam(PARAM_TTS_SPEECH_MODEL_FILE, Configs.DIR_BAIDU_SPEECH + "bd_etts_speech_female.dat");
mSpeechSynthesizer.initTts(TtsMode.MIX);
开发平台和机型:华为p9,其CPU是麒麟955,android 6.0
复现步骤、现象及其他描述:
在华为p9上调用SpeechSynthesizer.initTts(TtsMode.MIX),应用无响应,也无任何日志打印,initTts方法始终没有返回任何值,卡在了方法里面。你们做SDK怎么能在这个方法里加入可能一直阻塞的操作?
收藏
点赞
0
个赞
请登录后评论
TOP
切换版块
请您测试下官方的demo,谢谢