SohomToom commited on
Commit
36d3482
·
verified ·
1 Parent(s): 672e6e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -58,7 +58,7 @@ def clone_and_speak(text, speaker_wav):
58
 
59
  # Generate base TTS voice
60
  speed = 1.0
61
- source_se = torch.load(f'checkpoints/base_speakers/EN/{speaker_key}.pth', map_location=device)
62
  model.tts_to_file(text, speaker_id, tmp_melo_path,speed=speed)
63
 
64
  # Use speaker_wav as reference to extract style embedding
@@ -68,7 +68,7 @@ def clone_and_speak(text, speaker_wav):
68
  # Run the tone conversion
69
  tone_color_converter.convert(
70
  audio_src_path=tmp_melo_path,
71
- src_se=source_se,
72
  tgt_se=ref_se,
73
  output_path=final_output_path,
74
  message="@HuggingFace",
 
58
 
59
  # Generate base TTS voice
60
  speed = 1.0
61
+ #source_se = torch.load(f'checkpoints/base_speakers/EN/{speaker_key}.pth', map_location=device)
62
  model.tts_to_file(text, speaker_id, tmp_melo_path,speed=speed)
63
 
64
  # Use speaker_wav as reference to extract style embedding
 
68
  # Run the tone conversion
69
  tone_color_converter.convert(
70
  audio_src_path=tmp_melo_path,
71
+ src_se=ref_se,
72
  tgt_se=ref_se,
73
  output_path=final_output_path,
74
  message="@HuggingFace",