[feat] oai tts

This commit is contained in:
kwaroran
2023-11-07 05:02:34 +09:00
parent 5e3781845c
commit 715f9ed46b
4 changed files with 59 additions and 4 deletions

View File

@@ -155,8 +155,5 @@ export async function translateVox(text:string) {
async function jaTrans(text:string) {
if(/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/.test(text)){
return text
}
return await runTranslator(text,false, 'en','ja')
}