mrfakename commited on
Commit
730aa5f
β€’
1 Parent(s): 1241f18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ models = {
14
  'KR': TTS(language='KR', device=device),
15
  }
16
  speaker_ids = models['EN'].hps.data.spk2id
17
- def synthesize(speaker, text, speed=1.0, language, progress=gr.Progress()):
18
  bio = io.BytesIO()
19
  models[language].tts_to_file(text, speaker_ids[speaker], bio, speed=speed, pbar=progress.tqdm, format='wav')
20
  return bio.getvalue()
 
14
  'KR': TTS(language='KR', device=device),
15
  }
16
  speaker_ids = models['EN'].hps.data.spk2id
17
+ def synthesize(speaker, text, speed, language, progress=gr.Progress()):
18
  bio = io.BytesIO()
19
  models[language].tts_to_file(text, speaker_ids[speaker], bio, speed=speed, pbar=progress.tqdm, format='wav')
20
  return bio.getvalue()