Commit 491194bc authored by ali's avatar ali

feat: 打包产生

parent 2a5e9aa6
......@@ -370,9 +370,9 @@ async function onAsr(question: string) {
isTime && console.time('sliceAnswer')
isTime = false
const textArr = text.split('');
const textArr = text.split('')
for (let i = 0; i < textArr.length; i++) {
const t = textArr[i];
const t = textArr[i]
sliceAnswer += t
if (/[。,?!;,.?!;]/.test(t) && sliceAnswer.length >= settings.llmToTTSSliceLength) {
console.timeEnd('sliceAnswer')
......
......@@ -328,9 +328,9 @@ async function onAsr(question: string) {
isTime && console.time('sliceAnswer')
isTime = false
const textArr = text.split('');
const textArr = text.split('')
for (let i = 0; i < textArr.length; i++) {
const t = textArr[i];
const t = textArr[i]
sliceAnswer += t
if (/[。,?!;,.?!;]/.test(t) && sliceAnswer.length >= settings.llmToTTSSliceLength) {
console.timeEnd('sliceAnswer')
......@@ -340,7 +340,6 @@ async function onAsr(question: string) {
isTime = true
}
}
} catch (error) {
console.log('返回答案错误 -----> ' + JSON.stringify(error))
microphoneState.value = 'input'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment