DiamondYin commited on
Commit
70b74ac
1 Parent(s): 736c5c5

Update app_utils.py

Browse files
Files changed (1) hide show
  1. app_utils.py +4 -2
app_utils.py CHANGED
@@ -65,9 +65,11 @@ def text_to_speech_gen(answer): #文字转语音
65
 
66
  response = polly.synthesize_speech(
67
  Text=answer,
68
- VoiceId='Matthew',
 
69
  OutputFormat='mp3',
70
- Engine = "neural")
 
71
 
72
  audio_stream = response['AudioStream'].read()
73
  audio_html = audio_to_html(audio_stream)
 
65
 
66
  response = polly.synthesize_speech(
67
  Text=answer,
68
+ #VoiceId='Matthew',
69
+ VoiceId='Zhiyu',
70
  OutputFormat='mp3',
71
+ #Engine = "neural"
72
+ Engine = "standard")
73
 
74
  audio_stream = response['AudioStream'].read()
75
  audio_html = audio_to_html(audio_stream)