Spaces:
Runtime error
Runtime error
mrfakename
commited on
Commit
β’
730aa5f
1
Parent(s):
1241f18
Update app.py
Browse files
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
|
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()
|