We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5428cc6 commit 53c5b3eCopy full SHA for 53c5b3e
utils/utils.py
@@ -13,7 +13,7 @@ def read_wav_np(wavpath):
13
file_format = wavpath.split('.')[-1]
14
audio = AudioSegment.from_file(wavpath, file_format)
15
data = audio.raw_data
16
- wav = np.frombuffer(data, dtype=np.uint16)
+ wav = np.frombuffer(data, dtype=np.int16)
17
18
if len(wav.shape) == 2:
19
wav = wav[:, 0]
0 commit comments