indiejoseph commited on
Commit
76282ae
1 Parent(s): cf05cbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -122,7 +122,7 @@ async def text_to_speech(text, sid=0, language="YUE"):
122
  return None, gr.Warning("Please enter text to convert.")
123
  en_bert, yue_bert, x, tone, language = get_text(text, language)
124
  sid = np.array([sid])
125
- audio = Session(x, tone, language, en_bert, yue_bert, sid)
126
 
127
  return audio[0][0]
128
 
 
122
  return None, gr.Warning("Please enter text to convert.")
123
  en_bert, yue_bert, x, tone, language = get_text(text, language)
124
  sid = np.array([sid])
125
+ audio = Session(x, tone, language, en_bert, yue_bert, sid, sdp_ratio=0.4)
126
 
127
  return audio[0][0]
128