lmzjms commited on
Commit
a481abb
·
1 Parent(s): 814753b

Update audio_foundation_models.py

Browse files
Files changed (1) hide show
  1. audio_foundation_models.py +3 -2
audio_foundation_models.py CHANGED
@@ -978,9 +978,10 @@ class Speech_Enh_SC:
978
  "representing the audio_path. ")
979
  def inference(self, speech_path, ref_channel=0):
980
  speech, sr = soundfile.read(speech_path)
 
981
  print(speech)
982
- speech = speech[:, ref_channel]
983
- print(speech)
984
  enh_speech = self.separate_speech(speech[None, ...], fs=sr)
985
  audio_filename = os.path.join('audio', str(uuid.uuid4())[0:8] + ".wav")
986
  soundfile.write(audio_filename, enh_speech[0].squeeze(), samplerate=sr)
 
978
  "representing the audio_path. ")
979
  def inference(self, speech_path, ref_channel=0):
980
  speech, sr = soundfile.read(speech_path)
981
+ print("###")
982
  print(speech)
983
+ # speech = speech[:, ref_channel]
984
+ # print(speech)
985
  enh_speech = self.separate_speech(speech[None, ...], fs=sr)
986
  audio_filename = os.path.join('audio', str(uuid.uuid4())[0:8] + ".wav")
987
  soundfile.write(audio_filename, enh_speech[0].squeeze(), samplerate=sr)