Fix handle empty text input
This commit is contained in:
@@ -18,6 +18,10 @@ export async function sayTTS(character:character,text:string) {
|
|||||||
}
|
}
|
||||||
character = v
|
character = v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!text){
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
let db = get(DataBase)
|
let db = get(DataBase)
|
||||||
text = text.replace(/\*/g,'')
|
text = text.replace(/\*/g,'')
|
||||||
|
|||||||
Reference in New Issue
Block a user