Kevin676 commited on
Commit
c921881
β€’
1 Parent(s): 22c3d58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, VoiceMicrophone):
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=upload1,
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