Closed jiawei-zhang-a closed 3 years ago
Hello, could you please share the code that gave you this error? Thanks.
Of course Sir! I tried python3.6 and python3.8, both of them do not work I also tried pip install auditok and pip install git+..... Both versions do not work
import auditok region = auditok.load("humming_vocals.wav") # returns an AudioRegion object regions = region.split_and_plot(...) # or just region.splitp()
Please share the full error message with line numbers so that I can figure out where the error originates from. Also it'd be very helpful if you can share an audio file that I can use to reproduce the error.
Sure sir! i am currently out of Office,and i will reply to you before Monday noon
(split_env) C:\Users\v_gejwzhang\ASR>python split_and_plot.py
Traceback (most recent call last):
File "split_and_plot.py", line 4, in
regions = region.split_and_plot(...) # or just region.splitp()`
https://github.com/jiaweioi/Auditok-Split_and_plot I have left the audio humming.wav in this link
Hi,
Just call the function without the 'ellipsis' (the ...
) and it should work. The ...
in the example means you should place the function parameters here.
regions = region.split_and_plot()
Oh my bad! I did not notice that. Thank you so much! It works now!
if min_dur <= 0: TypeError: '<=' not supported between instances of 'ellipsis' and 'int'