gengx
This commit is contained in:
parent
afe1c7a6e2
commit
4428fdd00f
3
index.js
3
index.js
|
@ -214,8 +214,7 @@ function RecordXunfei() {
|
|||
|
||||
// 重新录制
|
||||
function reRecordXunfei() {
|
||||
if (btnStatus === 'CONNECTING' || btnStatus === 'OPEN') {
|
||||
console.log('重新录制')
|
||||
|
||||
connectWebSocket()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in New Issue