Commit e2f963e4 authored by xuanweiace's avatar xuanweiace

1 把界面里的语言统一成中文 2 更新了语音合成接口的秘钥

parent 2ca94fa3
......@@ -16,7 +16,7 @@ class Detect_Dialog(QDialog, Ui_Dialog):
super(Detect_Dialog, self).__init__()
self.setupUi(self)
self.setWindowTitle("检测")
self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setText("start detect")
self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setText("开始检测")
self.pushButton.clicked.connect(self.openFile)
self.pushButton_2.clicked.connect(self.openTableFile)
self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).clicked.connect(self.start_detect)
......
......@@ -91,7 +91,7 @@ def speech_synthesis(text: str, output_file: str, speaker: Speaker, speed: float
"""
audio_path = tmp_file
speech_config = SpeechConfig(
subscription="ffa331815f0f4c7fa418bb6c2e1c4e17", region="eastus")
subscription="db34d38d2d3447d482e0f977c66bd624", region="eastus")
speech_config.speech_synthesis_language = "zh-CN"
speech_config.speech_synthesis_voice_name = speaker.speaker_code
......
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