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() {
if (btnStatus === 'CONNECTING' || btnStatus === 'OPEN') {
console.log('重新录制')
connectWebSocket()
}
console.log('重新录制')
connectWebSocket()
}

View File

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