Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def english(text_en, upload, VoiceMicrophone):
|
|
61 |
|
62 |
return "enhanced.wav"
|
63 |
|
64 |
-
def chinese(text_cn, upload1,
|
65 |
if upload1 is not None:
|
66 |
tts2.tts_with_vc_to_file(
|
67 |
text_cn + "γ",
|
@@ -72,7 +72,7 @@ def chinese(text_cn, upload1, VoiceMicrophone):
|
|
72 |
else:
|
73 |
tts2.tts_with_vc_to_file(
|
74 |
text_cn + "γ",
|
75 |
-
speaker_wav=
|
76 |
file_path="ouptut1.wav"
|
77 |
)
|
78 |
|
|
|
61 |
|
62 |
return "enhanced.wav"
|
63 |
|
64 |
+
def chinese(text_cn, upload1, VoiceMicrophone1):
|
65 |
if upload1 is not None:
|
66 |
tts2.tts_with_vc_to_file(
|
67 |
text_cn + "γ",
|
|
|
72 |
else:
|
73 |
tts2.tts_with_vc_to_file(
|
74 |
text_cn + "γ",
|
75 |
+
speaker_wav=VoiceMicrophone1,
|
76 |
file_path="ouptut1.wav"
|
77 |
)
|
78 |
|