Spaces:
Paused
Paused
Update ms_tts.py
Browse files
ms_tts.py
CHANGED
@@ -61,7 +61,7 @@ import azure.cognitiveservices.speech as speechsdk
|
|
61 |
def ms_tts_gen(text, audio_path):
|
62 |
# 创建 Speech 配置
|
63 |
# speech_config = speechsdk.SpeechConfig(subscription="b45d4ca1f5eb4c96950666eb97b9be60", region="eastasia")
|
64 |
-
speech_config = speechsdk.SpeechConfig(subscription="
|
65 |
speech_config.speech_synthesis_voice_name = 'zh-HK-HiuGaaiNeural' # 粤语女声
|
66 |
|
67 |
# 配置音频输出为 MP3 格式
|
|
|
61 |
def ms_tts_gen(text, audio_path):
|
62 |
# 创建 Speech 配置
|
63 |
# speech_config = speechsdk.SpeechConfig(subscription="b45d4ca1f5eb4c96950666eb97b9be60", region="eastasia")
|
64 |
+
speech_config = speechsdk.SpeechConfig(subscription="ef47bc3073b74e4e9837e886be2fb6f7", region="eastasia")
|
65 |
speech_config.speech_synthesis_voice_name = 'zh-HK-HiuGaaiNeural' # 粤语女声
|
66 |
|
67 |
# 配置音频输出为 MP3 格式
|