refactor : 重构TTS的文字分割方式,队列请求/播放方式, fix : asr录制音频的音量波纹显示

This commit is contained in:
2025-12-29 10:08:20 +08:00
parent f6b7755e32
commit 9769f486f0
4 changed files with 1224 additions and 568 deletions

View File

@@ -742,15 +742,15 @@ function readMarkdown(value, index) {
speak(value);
return;
}
if (isPaused.value) {
resume();
resume();
} else {
// console.log(value, speechIndex.value, index, isPaused.value)
speak(value);
pause();
}
}
function stopMarkdown(value, index) {
pause(value);
pause()
speechIndex.value = index;
}
function refreshMarkdown(index) {