henrymaas / AudioSlicer

Audio Slicer that uses silence detection to split .wav audio files into multiple .wav samples.
291 stars 59 forks source link

Error #9

Open slim1592 opened 1 year ago

slim1592 commented 1 year ago

Splitting C:\Users\Slim\Desktop\vocals\blabla.wav where energy is below 0.01% for longer than 0.6s. Traceback (most recent call last): File "C:\Users\Slim\AudioSlicer\AudioSeg.py", line 93, in max_amplitude = np.iinfo(samples.dtype).max ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Slim\anaconda3\envs\audioslicer\Lib\site-packages\numpy\core\getlimits.py", line 677, in init raise ValueError("Invalid integer data type %r." % (self.kind,)) ValueError: Invalid integer data type 'f'.

henrymaas commented 1 year ago

It seems that the algorithm is unable to process the file correctly. Was this audio file previously converted? The variety of issues that might occur can depend on the specific piece of audio provided. Therefore, I can only provide you with assistance if I have the file at hand. I would suggest trying another audio file to see if this problem occurs frequently.

Please let me know if there is anything else I can do to assist you.

arunk140 commented 1 year ago

samples.dtype is probably a Float. and np.iinfo expects dtype to be ints

rajatdb commented 1 year ago

replace np.iinfo(samples.dtype).max to np.finfo(samples.dtype).max

henrymaas commented 10 months ago

Try to export your Wav file in int16 format