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