Update app.py
Browse files
app.py
CHANGED
@@ -38,19 +38,15 @@ def generate_speech(voice_choice, microphone, text):
|
|
38 |
|
39 |
tts.tts_to_file(text=text,
|
40 |
file_path=config['inference']['file_path'],
|
41 |
-
speaker_wav=
|
42 |
language=config['inference']['language'])
|
43 |
return config['inference']['file_path']
|
44 |
|
45 |
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
###################################### main ######################################
|
50 |
def main(config):
|
51 |
|
52 |
# gradio elements
|
53 |
-
|
54 |
voice_choice = gr.Radio(label="Record or skip to use predefined voice.",
|
55 |
choices=["Record", "Predefined (Nancy)"],
|
56 |
value="Record")
|
|
|
38 |
|
39 |
tts.tts_to_file(text=text,
|
40 |
file_path=config['inference']['file_path'],
|
41 |
+
speaker_wav=speaker,
|
42 |
language=config['inference']['language'])
|
43 |
return config['inference']['file_path']
|
44 |
|
45 |
|
|
|
|
|
|
|
46 |
###################################### main ######################################
|
47 |
def main(config):
|
48 |
|
49 |
# gradio elements
|
|
|
50 |
voice_choice = gr.Radio(label="Record or skip to use predefined voice.",
|
51 |
choices=["Record", "Predefined (Nancy)"],
|
52 |
value="Record")
|