kira4424 commited on
Commit
838317c
1 Parent(s): fe227c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -72,8 +72,8 @@ def greet(audio, text, voice=None):
72
  return output_file, voice
73
 
74
  def new_greet(audio, text):
75
- print(f"Log print: audio name=[{audio.name}], text=[{text}]")
76
- voice.setVoice(audio.name)
77
  wav, sample_rate = voice.say(text)
78
 
79
  output_file = "".join( random.sample(string.ascii_lowercase + string.digits, 11) ) + ".wav"
 
72
  return output_file, voice
73
 
74
  def new_greet(audio, text):
75
+ print(f"Log print: audio name=[{audio}], text=[{text}]")
76
+ voice.setVoice(audio)
77
  wav, sample_rate = voice.say(text)
78
 
79
  output_file = "".join( random.sample(string.ascii_lowercase + string.digits, 11) ) + ".wav"