tracek / Ornithokrites

Automatic identification of kiwi calls from audio recordings
GNU General Public License v3.0
51 stars 15 forks source link

Storing silence (noise-only) intervals in a dictionary may lead to a lost segment #5

Closed tracek closed 10 years ago

tracek commented 10 years ago

Silence intervals (i.e. noise-only areas) are stored as a dictionary in segmentation.py:

silence_intervals = {} 

which is not the smartest idea since in case two areas of the same length are present, then one will be lost. Since length is at least 4 digits long, then chance for this bug emerging is very small. On the other hand, if one processes hundreds of thousands of files, then what can happen will eventually happen.