kira4424 commited on
Commit
f954003
·
1 Parent(s): 58a5d8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -72,8 +72,9 @@ 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
+ audio_path = audio
76
+ print(f"Log print: audio name=[{audio_path}], text=[{text}]")
77
+ voice.setVoice(audio_path)
78
  wav, sample_rate = voice.say(text)
79
 
80
  output_file = "".join( random.sample(string.ascii_lowercase + string.digits, 11) ) + ".wav"