sox-users@lists.sourceforge.net unofficial mirror
 help / color / Atom feed
From: Mikko Olkkonen <molkko@gmail.com>
To: sox-users@lists.sourceforge.net
Subject: Re: Split audio at silence into several files and remove all silence
Date: Sat, 18 May 2019 13:37:21 +0300
Message-ID: <CANWtmUBdFCnPk1eZDm9MSNs-2Y82Ac2sxoeMkXVaMHJW6dVakQ@mail.gmail.com> (raw)
In-Reply-To: <FDFD19C4-9B01-465D-8A4E-90E99BBF7C94@icloud.com>

[-- Attachment #1.1: Type: text/plain, Size: 921 bytes --]

Hi, In my case, this effect removes the silence from the end as well:
silence 1 1 0.1% 1 1 0.1% reverse silence 1 1 0.1% 1 1 0.1% reverse :
newfile : restart
By the way, how much silence you have at the end of each output file when
using your version of the effect (=without using the reversing trick above)?
regards, Mikko


On Sat, May 18, 2019 at 6:34 AM Florian Zand via Sox-users <
sox-users@lists.sourceforge.net> wrote:

> Hi,
>
> I want to split an audio file at silence into several files and remove all
> silence.
>
> I found:
>
> sox input.wav output.wav silence 1 X 0.1% 1 X 0.1% : newfile : restart
>
> Which creates perfect splits. However at the end of each output file there
> is still silence.
>
> Thanks for the help!
>
> Florian Zand
> _______________________________________________
> Sox-users mailing list
> Sox-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sox-users
>

[-- Attachment #1.2: Type: text/html, Size: 3445 bytes --]

<div dir="ltr"><div>Hi, In my case, this effect removes the silence from the end as well:  silence 1 1 0.1% 1 1 0.1% reverse silence 1 1 0.1% 1 1 0.1% reverse : newfile : restart</div><div>By the way, how much silence you have at the end of each output file when using your version of the effect (=without using the reversing trick above)?<br></div><div>regards, Mikko</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 18, 2019 at 6:34 AM Florian Zand via Sox-users &lt;<a href="mailto:sox-users@lists.sourceforge.net">sox-users@lists.sourceforge.net</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><p style="margin:0px 0px 1em;padding:0px;border:0px none;font-family:Arial,&quot;Helvetica Neue&quot;,Helvetica,sans-serif;font-stretch:inherit;line-height:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)">Hi,</p><p style="margin:0px 0px 1em;padding:0px;border:0px none;font-family:Arial,&quot;Helvetica Neue&quot;,Helvetica,sans-serif;font-stretch:inherit;line-height:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)">I want to split an audio file at silence into several files and remove all silence.</p><p style="margin:0px 0px 1em;padding:0px;border:0px none;font-family:Arial,&quot;Helvetica Neue&quot;,Helvetica,sans-serif;font-stretch:inherit;line-height:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)">I found:</p><pre style="margin-top:0px;margin-bottom:1em;padding:12px 8px;border:0px none;font-family:Consolas,Menlo,Monaco,&quot;Lucida Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier New&quot;,monospace,sans-serif;font-stretch:inherit;line-height:inherit;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;background-color:rgb(239,240,241);border-radius:3px;color:rgb(36,39,41)"><code style="margin:0px;padding:0px;border:0px none;font-family:Consolas,Menlo,Monaco,&quot;Lucida Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier New&quot;,monospace,sans-serif;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;white-space:inherit">sox input.wav output.wav silence 1 X 0.1% 1 X 0.1% : newfile : restart
</code></pre><p style="margin:0px 0px 1em;padding:0px;border:0px none;font-family:Arial,&quot;Helvetica Neue&quot;,Helvetica,sans-serif;font-stretch:inherit;line-height:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)">Which creates perfect splits. However at the end of each output file there is still silence.</p><div><br></div><div>Thanks for the help!</div><div><br></div><div>Florian Zand</div></div>_______________________________________________<br>
Sox-users mailing list<br>
<a href="mailto:Sox-users@lists.sourceforge.net" target="_blank">Sox-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/sox-users" rel="noreferrer" target="_blank">https://lists.sourceforge.net/lists/listinfo/sox-users</a><br>
</blockquote></div>

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

  reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-18  3:33 Florian Zand via Sox-users
2019-05-18 10:37 ` Mikko Olkkonen [this message]
2019-05-18 10:56 ` Jeremy Nicoll - ml sox users

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-users

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CANWtmUBdFCnPk1eZDm9MSNs-2Y82Ac2sxoeMkXVaMHJW6dVakQ@mail.gmail.com \
    --to=sox-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

sox-users@lists.sourceforge.net unofficial mirror

Archives are clonable: git clone --mirror https://public-inbox.org/sox-users

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.audio.sox
	nntp://ou63pmih66umazou.onion/inbox.comp.audio.sox
	nntp://news.gmane.org/gmane.comp.audio.sox

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox