提交 a748dabc 作者: 王苏进

feat: fix

上级 9b19936f
...@@ -985,6 +985,9 @@ public class TtsNovelCenter implements SpeechEngine.SpeechListener { ...@@ -985,6 +985,9 @@ public class TtsNovelCenter implements SpeechEngine.SpeechListener {
// 在主线程中执行的方法 // 在主线程中执行的方法
mTtsPlayingProgress = 0.0; mTtsPlayingProgress = 0.0;
updateTtsResultText(data); updateTtsResultText(data);
Map<String, Object> map = new HashMap<>();
map.put("playWords", mTtsSynthesisText.get(mTtsSynthesisMap.get(data)));
_callback.onRevive(map);
} }
}); });
...@@ -1026,6 +1029,9 @@ public class TtsNovelCenter implements SpeechEngine.SpeechListener { ...@@ -1026,6 +1029,9 @@ public class TtsNovelCenter implements SpeechEngine.SpeechListener {
// } // }
mTtsSynthesisMap.remove(data); mTtsSynthesisMap.remove(data);
if(mTtsSynthesisMap.isEmpty()) { if(mTtsSynthesisMap.isEmpty()) {
Map<String, Object> map = new HashMap<>();
map.put("finish", true);
_callback.onRevive(map);
//告诉flutter播完了 //告诉flutter播完了
resetTtsContext(); resetTtsContext();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论