Skip to content

Commit

Permalink
small bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
RF5 authored Nov 30, 2021
1 parent 5a9586d commit a474a57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ge2e_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def melspec_from_file(self, x):
""" Convert file path `x` to a [n_frames, n_mels] shape mel-spectrogram tensor """
return self.melspec_tfm.from_file(x).T

def melspec_from_array(self, x):
def melspec_from_array(self, x, sr):
""" Convert a 1D torch tensor in to a [n_frames, n_mels] shape mel-spectrogram tensor """
return self.melspec_tfm.from_array(x).T
return self.melspec_tfm.from_array(x, sr).T

def print_hparams(self):
for key in self.hparams.__dict__():
Expand Down

0 comments on commit a474a57

Please sign in to comment.