mitudesk commited on
Commit
e0932c4
1 Parent(s): 1bfd34f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -36,6 +36,9 @@ limitation = os.getenv("SYSTEM") == "spaces" # limit text and audio length in h
36
 
37
  def create_tts_fn(model, hps, speaker_ids):
38
  def tts_fn(text, speaker, language, speed, is_symbol):
 
 
 
39
  is_symbol=False
40
  if limitation:
41
  text_len = len(re.sub("\[([A-Z]{2})\]", "", text))
 
36
 
37
  def create_tts_fn(model, hps, speaker_ids):
38
  def tts_fn(text, speaker, language, speed, is_symbol):
39
+ text='你好'
40
+ speaker='草上飞 Grass Wonder (Umamusume Pretty Derby)'
41
+ speed='简体中文'
42
  is_symbol=False
43
  if limitation:
44
  text_len = len(re.sub("\[([A-Z]{2})\]", "", text))