Mercurial > hg > auditok
diff demos/audio_trim_demo.py @ 4:31c97510b16b
README.md, demos/audio_trim_demo.py updated
author | Amine Sehili <amine.sehili@gmail.com> |
---|---|
date | Tue, 22 Sep 2015 11:12:11 +0200 |
parents | 364eeb8e8bd2 |
children | 9be2d0ca4c00 |
line wrap: on
line diff
--- a/demos/audio_trim_demo.py Tue Sep 22 10:49:57 2015 +0200 +++ b/demos/audio_trim_demo.py Tue Sep 22 11:12:11 2015 +0200 @@ -67,9 +67,9 @@ validator = AudioEnergyValidator(sample_width=asource.get_sample_width(), energy_threshold=50) # Create a tokenizer with an unlimited token length and continuous silence within a token -# Note the DROP_TRAILING_SILENCE mode that will ensure removing tailing silence +# Note the DROP_TAILING_SILENCE mode that will ensure removing tailing silence trimmer = StreamTokenizer(validator, min_length = 20, max_length=99999999, - max_continuous_silence=9999999, mode=StreamTokenizer.DROP_TRAILING_SILENCE, init_min=3, init_max_silence=1) + max_continuous_silence=9999999, mode=StreamTokenizer.DROP_TAILING_SILENCE, init_min=3, init_max_silence=1) tokens = trimmer.tokenize(asource)