In the input and output directories in the py file, there are backslashes which cause a syntax error. I fixed this by changing them to forward slashes. Making it raw didn't work for some reason.
Hi, I'm working with audio slicing recently. I always tried to use amplitude to slice the audio. Your idea is wonderful that energy is be used to slice audio. However, there are some mistakes made me a little confused.
There is a function naming GetTime() but not defined and a variable cut_samples be used before definition.
It is very kind of you to check it again, and it would help me a lot. Thank you!
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'.