Project-OSmOSE / OSEkit

OSEkit is an open source suite of tools written in python and dedicated to the management and analysis of data in underwater passive acoustics.
https://osmose.ifremer.fr
Other
3 stars 0 forks source link

Generate spectrograms with wav shorter than desired duration #184

Open mathieudpnt opened 1 month ago

mathieudpnt commented 1 month ago

when generatin spectrograms, if several files are shorter than chosen duration, the code stops, it should be possible. We should pad the short files with zeros so the duration is the same than desired one

image

mathieudpnt commented 1 month ago

Just realized an issue in audio_reshaper, if a resampling and a segmentation are asked, during the segmentation, if a slice of audio is remaining, it is concatenated to the next audio file. However when it is concatenated, resampled data from first file is concatenated with next audio file withouth resampling !!!

image