# How to automatically truncate silence-like parts?

**URL:** <https://forum.audacityteam.org/t/how-to-automatically-truncate-silence-like-parts/46787>\
**Category:** GNU/Linux\
**Created:** [September 16, 2017, 8:27am UTC](https://forum.audacityteam.org/t/how-to-automatically-truncate-silence-like-parts/46787 "2017-09-16T08:27:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vitaly-zdanevich](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/vitaly-zdanevich/32/33174_2.png) [@vitaly-zdanevich](https://forum.audacityteam.org/u/vitaly-zdanevich)\
**Post date:** [September 16, 2017, 8:27am UTC](https://forum.audacityteam.org/t/how-to-automatically-truncate-silence-like-parts/46787/1 "2017-09-16T08:27:27Z")

</div>

Good day to everyone. I use Audacity pretty often - mainly for clearing/adjusting of my recorded lectures. With my last record I faced with a problem that this six hours file has many little silence-like parts. On parts that larger than 100ms I can use `Silence Finder` and manually delete it. But what about smaller parts and that not exactly pure silence? I believe that such parts can be algorithmically identified. Maybe exists some plugin for such task or I can write myself? Thank you for support.  
 ![audacity-silence-waveform-db.png](https://forum.audacityteam.org/uploads/default/original/2X/8/8a00ca29b345761133175728d5c4819f674159db.png)  
 ![audacity-silence-waveform.png](https://forum.audacityteam.org/uploads/default/original/2X/5/51da677833c7d4492c9219aad284918074e13d06.png)  
 ![audacity-silence-waveform-db.png](https://forum.audacityteam.org/uploads/default/original/2X/8/8a00ca29b345761133175728d5c4819f674159db.png)  
 ![audacity-silence-spectral.png](https://forum.audacityteam.org/uploads/default/original/2X/5/54ea760c0d48fee41683fa753c6ae19952b8f1e3.png)

---

<div class="post-metadata">

**Author:** ![Trebor](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/trebor/32/45854_2.png) [@Trebor](https://forum.audacityteam.org/u/Trebor)\
**Post date:** [September 16, 2017, 4:38pm UTC](https://forum.audacityteam.org/t/how-to-automatically-truncate-silence-like-parts/46787/2 "2017-09-16T16:38:46Z")

</div>

> [@vitaly-zdanevich](#):
>
> I faced with a problem that this six hours file has many little silence-like parts.

aka Skips … [FAQ:Recording - Troubleshooting - Audacity Manual](http://manual.audacityteam.org/man/faq_recording_troubleshooting.html#How_can_I_record_without_small_skips_or_duplications.3F)

> [@vitaly-zdanevich](#):
>
> Maybe exists some plugin for such task

It’s built-in … [Truncate silence](http://manual.audacityteam.org/man/truncate_silence.html)

There will probably be clicks where the silences have been removed : you may need a [DeClicker plugin](https://forum.audacityteam.org/t/updated-de-clicker-and-new-de-esser-for-speech/34283/1).

---

<div class="post-metadata">

**Author:** ![vitaly-zdanevich](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/vitaly-zdanevich/32/33174_2.png) [@vitaly-zdanevich](https://forum.audacityteam.org/u/vitaly-zdanevich)\
**Post date:** [September 17, 2017, 8:06am UTC](https://forum.audacityteam.org/t/how-to-automatically-truncate-silence-like-parts/46787/3 "2017-09-17T08:06:04Z")

</div>

`Truncate Silence` is not an option for such case - because as you can see on the screenshots - this `silence-like` parts in reality a noise-like parts - that is not more quiet than some natural correct silence. Maybe exists some plugin with functionality like inside Noise Reduction - where I can take `profile` (example) and take next actions with such example in mind?

---

<div class="post-metadata">

**Author:** ![Trebor](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/trebor/32/45854_2.png) [@Trebor](https://forum.audacityteam.org/u/Trebor)\
**Post date:** [September 17, 2017, 1:50pm UTC](https://forum.audacityteam.org/t/how-to-automatically-truncate-silence-like-parts/46787/4 "2017-09-17T13:50:27Z")

</div>

> [@vitaly-zdanevich](#):
>
> `Truncate Silence` is not an option for such case - because as you can see on the screenshots - this `silence-like` parts in reality a noise-like parts …

“Truncate silence” doesn’t just work on true flat-line silence.  
You set a threshold on “Truncate silence” : anything below that threshold will be treated as silence.

Before you use “Truncate silence” use “[Normalize](http://manual.audacityteam.org/man/normalize.html)” to remove the small DC offset you’ve got …

 ![flat-line is not on zero = 'DC offset'.png](https://forum.audacityteam.org/uploads/default/original/2X/0/01ed380861a9415f461dc66fdf628075ef76a7da.png)

---

<div class="post-metadata">

**Author:** ![vitaly-zdanevich](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/vitaly-zdanevich/32/33174_2.png) [@vitaly-zdanevich](https://forum.audacityteam.org/u/vitaly-zdanevich)\
**Post date:** [September 24, 2017, 7:45am UTC](https://forum.audacityteam.org/t/how-to-automatically-truncate-silence-like-parts/46787/5 "2017-09-24T07:45:34Z")

</div>

Thank you!

I found that normalize with removing of DC offset just increase DC offset, so I search the web about how to fix DC offset and found a solution - High Pass Filter (90Hz, Rolloff: 6dB) that remove low-frequency noise (so as I understand - on my screenshots was not a DC offset but that noise). And after that **Truncate Silence** - works like a magic. For the last week I lost few hours for manually removing of that silence and after that - manually removing of new clicks using selection in spectral view.

Thank you again!
