# Extend Silences

**URL:** <https://forum.audacityteam.org/t/extend-silences/34612>\
**Category:** New Plug-Ins\
**Created:** [June 27, 2014, 11:40am UTC](https://forum.audacityteam.org/t/extend-silences/34612 "2014-06-27T11:40:05Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![uvhwpevx](https://forum.audacityteam.org/letter_avatar_proxy/v4/letter/u/a183cd/32.png) [@uvhwpevx](https://forum.audacityteam.org/u/uvhwpevx)\
**Post date:** [August 7, 2015, 12:32pm UTC](https://forum.audacityteam.org/t/extend-silences/34612/10 "2015-08-07T12:32:37Z")

</div>

> where silences to insert: at begins, \> MIDDLES \> or ends of detected silences

To cut them into silence pieces at any % as wanted, I just replaced:

1. That line:

```plaintext
;control add-snd-pc "Add % of previous sound duration" real "" 0 0 100

```

by this:

```plaintext
;control add-snd-pc "Add % of previous sound duration" real "" 0 0 100
;control ins-pos-pc "Insert at % of detected silence piece" real "" 100 0 100

```

1. That line:

```plaintext
(setq snd-ratio (/ (constrain add-snd-pc 0 1000) 100.0))

```

by this:

```plaintext
(setq snd-ratio (/ (constrain add-snd-pc 0 1000) 100.0))
(setq pos-ratio (- 1 (/ (constrain ins-pos-pc 0 1000) 100.0)))

```

1. And that line:

```plaintext
(push (list (/ count lo-rate) (/ sil-count lo-rate)) sil-list))

```

by this:

```plaintext
(push (list (- (/ count lo-rate) (* (/ sil-count lo-rate) pos-ratio)) (/ sil-count lo-rate)) sil-list))

```

---

_[View the full topic](https://forum.audacityteam.org/t/extend-silences/34612)._
