-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
detect_silence combines continuous silent ranges on-the-fly
Previously, detect_silence would collect all slices of min_silence_len in a list, then processed that list to merge subsequent slices into continuous silent ranges. This change performs the merging immediately when silence is detected for a slice, eliminating the need for a second pass over and the memory overhead associated with the internal list of silent slices.
- Loading branch information
Showing
1 changed file
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters