ZiyuG commited on
Commit
57489b3
1 Parent(s): 09fcd9c

Update ms_tts.py

Browse files
Files changed (1) hide show
  1. ms_tts.py +2 -1
ms_tts.py CHANGED
@@ -60,7 +60,8 @@ import azure.cognitiveservices.speech as speechsdk
60
 
61
  def ms_tts_gen(text, audio_path):
62
  # 创建 Speech 配置
63
- speech_config = speechsdk.SpeechConfig(subscription="b45d4ca1f5eb4c96950666eb97b9be60", region="eastasia")
 
64
  speech_config.speech_synthesis_voice_name = 'zh-HK-HiuGaaiNeural' # 粤语女声
65
 
66
  # 配置音频输出为 MP3 格式
 
60
 
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="909fbaca5eb646c2bda91204e5bef075", region="eastasia")
65
  speech_config.speech_synthesis_voice_name = 'zh-HK-HiuGaaiNeural' # 粤语女声
66
 
67
  # 配置音频输出为 MP3 格式