[3.2.0][Fix]解决首次安装Tts不播报的问题

This commit is contained in:
chenfufeng
2023-05-24 15:16:06 +08:00
parent 1b14e63b02
commit ac85e36fc5
3 changed files with 15 additions and 8 deletions

View File

@@ -82,8 +82,11 @@ public class AIAssist {
* 重新初始化Tts(首次sn获取比较慢而TTS初始化比较早会拿不到授权)
*/
public void initTtsAgain(String sn) {
CallerLogger.INSTANCE.d(TAG, "网络获取SN后重新初始化Tts!");
if (mTTS != null) {
mTTS.initTts(sn);
} else {
CallerLogger.INSTANCE.d(TAG, "TTS对象创建失败!");
}
}