duongthienz commited on
Commit
e5e4040
·
verified ·
1 Parent(s): 6812b0d

Update sonogram_utility.py

Browse files
Files changed (1) hide show
  1. sonogram_utility.py +1 -1
sonogram_utility.py CHANGED
@@ -159,7 +159,7 @@ def loadAudioCSV(sampleCSV):
159
 
160
  def splitIntoTimeSegments(testFile,maxDurationInSeconds=60):
161
 
162
- waveform, sample_rate = torchaudio.load(testFile)
163
  audioSegments = []
164
 
165
  outOfBoundsIndex = waveform.shape[-1]
 
159
 
160
  def splitIntoTimeSegments(testFile,maxDurationInSeconds=60):
161
 
162
+ waveform, sample_rate = torchaudio.load(testFile, backend="soundfile")
163
  audioSegments = []
164
 
165
  outOfBoundsIndex = waveform.shape[-1]