ruslanmv commited on
Commit
05856e5
1 Parent(s): 819f1a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -94,12 +94,14 @@ def compute_embedding(in_fpath):
94
 
95
  # Get the wav from the disk. We take the wav with the vocoder/synthesizer format for
96
  # playback, so as to have a fair comparison with the generated audio
 
97
  wav = Synthesizer.load_preprocess_wav(in_fpath)
98
 
99
  # important: there is preprocessing that must be applied.
100
 
101
  # The following two methods are equivalent:
102
  # - Directly load from the filepath:
 
103
  preprocessed_wav = encoder.preprocess_wav(wav)
104
 
105
  # - If the wav is already loaded:
@@ -107,6 +109,7 @@ def compute_embedding(in_fpath):
107
  #preprocessed_wav = encoder.preprocess_wav(original_wav, sampling_rate)
108
 
109
  # Compute the embedding
 
110
  embed, partial_embeds, _ = encoder.embed_utterance(preprocessed_wav, return_partials=True)
111
 
112
 
 
94
 
95
  # Get the wav from the disk. We take the wav with the vocoder/synthesizer format for
96
  # playback, so as to have a fair comparison with the generated audio
97
+ print("Step 1- load_preprocess_wav")
98
  wav = Synthesizer.load_preprocess_wav(in_fpath)
99
 
100
  # important: there is preprocessing that must be applied.
101
 
102
  # The following two methods are equivalent:
103
  # - Directly load from the filepath:
104
+ print("Step 2- preprocess_wav")
105
  preprocessed_wav = encoder.preprocess_wav(wav)
106
 
107
  # - If the wav is already loaded:
 
109
  #preprocessed_wav = encoder.preprocess_wav(original_wav, sampling_rate)
110
 
111
  # Compute the embedding
112
+ print("Step 3- embed_utterance")
113
  embed, partial_embeds, _ = encoder.embed_utterance(preprocessed_wav, return_partials=True)
114
 
115