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
+1 -1
View File
@@ -54,7 +54,7 @@ class AzureVoice(Voice):
return reply
def textToVoice(self, text):
fileName = TmpDir().path() + '语音回复_' + str(int(time.time())) + '.wav'
fileName = TmpDir().path() + 'reply-' + str(int(time.time())) + '.wav'
audio_config = speechsdk.AudioConfig(filename=fileName)
speech_synthesizer = speechsdk.SpeechSynthesizer(speech_config=self.speech_config, audio_config=audio_config)
result = speech_synthesizer.speak_text(text)