StormblessedKal commited on
Commit
0951938
1 Parent(s): 5f8297f

test fixes

Browse files
src/__pycache__/predict.cpython-310.pyc CHANGED
Binary files a/src/__pycache__/predict.cpython-310.pyc and b/src/__pycache__/predict.cpython-310.pyc differ
 
src/predict.py CHANGED
@@ -265,7 +265,8 @@ class Predictor:
265
  return {"voice_clone_1":f"https://demovidelyusergenerations.s3.amazonaws.com/{gen_id}-voice-clone-1.mp3",
266
  "voice_clone_2":f"https://demovidelyusergenerations.s3.amazonaws.com/{gen_id}-voice-clone-2.mp3"
267
  }
268
- if method_type == 'voice_clone_with_emotions':
 
269
  base_speaker_tts,tone_color_converter = self.base_speaker_tts,self.tone_color_converter
270
  reference_speaker = local_file_path
271
  target_se, audio_name = se_extractor.get_se(reference_speaker, tone_color_converter, target_dir=openvoice_dir, vad=False)
@@ -287,6 +288,7 @@ class Predictor:
287
  }
288
 
289
  if method_type == 'voice_clone_with_multi_lang':
 
290
  #voice clone with multi-lingugal
291
  _,tone_color_converter = self.base_speaker_tts,self.tone_color_converter
292
  reference_speaker = local_file_path
 
265
  return {"voice_clone_1":f"https://demovidelyusergenerations.s3.amazonaws.com/{gen_id}-voice-clone-1.mp3",
266
  "voice_clone_2":f"https://demovidelyusergenerations.s3.amazonaws.com/{gen_id}-voice-clone-2.mp3"
267
  }
268
+ if method_type == 'voice_clone_with_emotions':
269
+ print("INSIDE emotions")
270
  base_speaker_tts,tone_color_converter = self.base_speaker_tts,self.tone_color_converter
271
  reference_speaker = local_file_path
272
  target_se, audio_name = se_extractor.get_se(reference_speaker, tone_color_converter, target_dir=openvoice_dir, vad=False)
 
288
  }
289
 
290
  if method_type == 'voice_clone_with_multi_lang':
291
+ print("Inside multilang")
292
  #voice clone with multi-lingugal
293
  _,tone_color_converter = self.base_speaker_tts,self.tone_color_converter
294
  reference_speaker = local_file_path
src/rp_handler.py CHANGED
@@ -22,6 +22,7 @@ MODEL.setup()
22
  def run_voice_clone_job(job):
23
  job_input = job['input']
24
  method_type = job_input.get('method_type')
 
25
 
26
  if method_type not in ["create_voice","voice_clone","voice_clone_with_emotions","voice_clone_with_multi_lang"]:
27
  return {"error":"Please set method_type: available options, create_voice, voice_clone, voice_clone_with_emotions,voice_clone_with_multi_lang"}
 
22
  def run_voice_clone_job(job):
23
  job_input = job['input']
24
  method_type = job_input.get('method_type')
25
+ print(method_type)
26
 
27
  if method_type not in ["create_voice","voice_clone","voice_clone_with_emotions","voice_clone_with_multi_lang"]:
28
  return {"error":"Please set method_type: available options, create_voice, voice_clone, voice_clone_with_emotions,voice_clone_with_multi_lang"}