Skip to content

Commit 53c5b3e

Browse files
author
Rick-McCoy
committed
dtype error in numpy
1 parent 5428cc6 commit 53c5b3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def read_wav_np(wavpath):
1313
file_format = wavpath.split('.')[-1]
1414
audio = AudioSegment.from_file(wavpath, file_format)
1515
data = audio.raw_data
16-
wav = np.frombuffer(data, dtype=np.uint16)
16+
wav = np.frombuffer(data, dtype=np.int16)
1717

1818
if len(wav.shape) == 2:
1919
wav = wav[:, 0]

0 commit comments

Comments
 (0)