This commit is contained in:
shengchanzhe 2023-10-16 09:52:48 +08:00
parent afe1c7a6e2
commit 4428fdd00f
2 changed files with 8 additions and 10 deletions

View File

@ -214,8 +214,7 @@ function RecordXunfei() {
// 重新录制 // 重新录制
function reRecordXunfei() { function reRecordXunfei() {
if (btnStatus === 'CONNECTING' || btnStatus === 'OPEN') { console.log('重新录制')
console.log('重新录制')
connectWebSocket() connectWebSocket()
}
} }

View File

@ -165,12 +165,11 @@ const watchTTS = watch(() => props.tts, async (n: any, o: any) => {
// //
const stopPlay = () => { const stopPlay = () => {
console.log('停止播放音频') console.log('停止播放音频')
watchTTS() pauseIndex = -1
audioElements.forEach((item: any) => { playStatus.value = 'end'
item.pause() emit('changeNowStatus', 'input')
item.currentTime = 0 for (let i = 0; i < audioElements.length; i++)
}) audioElements[i].pause()
// audioElements.length = 0
} }
onUpdated(() => { onUpdated(() => {