fix: use english filename

This commit is contained in:
lanvent
2023-04-02 16:50:11 +08:00
parent 388058467c
commit 49ba278316
4 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ class GoogleVoice(Voice):
return reply
def textToVoice(self, text):
try:
mp3File = TmpDir().path() + '语音回复_' + str(int(time.time())) + '.mp3'
mp3File = TmpDir().path() + 'reply-' + str(int(time.time())) + '.mp3'
tts = gTTS(text=text, lang='zh')
tts.save(mp3File)
logger.info(