I am using split_on_silence function with parameters as shown in below method in python.
I am not getting any single chunk in return. chunks length is 0.
what wrong am I doing?
from pydub import AudioSegment
from pydub.silence import split_on_silence
song = AudioSegment.from_wav(my_file)
# split track where silence is 0.5 seconds
# or more and get chunks
chunks = split_on_silence(song,
# must be silent for at least 0.5 seconds
# or 500 ms. adjust this value based on user
# requirement. if the speaker stays silent for
# longer, increase this value. else, decrease it.
min_silence_len = 500,
# consider it silent if quieter than -16 dBFS
# adjust this per requirement
silence_thresh = -16
)