sox-users@lists.sourceforge.net unofficial mirror
 help / color / Atom feed
From: Florian Zand via Sox-users <sox-users@lists.sourceforge.net>
To: sox-users@lists.sourceforge.net
Cc: Florian Zand <spamammo@icloud.com>
Subject: Split audio at silence into several files and remove all silence
Date: Sat, 18 May 2019 05:33:49 +0200
Message-ID: <FDFD19C4-9B01-465D-8A4E-90E99BBF7C94@icloud.com> (raw)

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

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

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

<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; 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; caret-color: rgb(36, 39, 41); color: rgb(36, 39, 41);" class="">Hi,</p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; 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; caret-color: rgb(36, 39, 41); color: rgb(36, 39, 41);" class="">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; 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; caret-color: rgb(36, 39, 41); color: rgb(36, 39, 41);" class="">I found:</p><pre style="margin-top: 0px; margin-bottom: 1em; padding: 12px 8px; border: 0px; 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-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-wrap: normal; caret-color: rgb(36, 39, 41); color: rgb(36, 39, 41);" class=""><code style="margin: 0px; padding: 0px; border: 0px; 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;" class="">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; 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; caret-color: rgb(36, 39, 41); color: rgb(36, 39, 41);" class="">Which creates perfect splits. However at the end of each output file there is still silence.</p><div class=""><br class=""></div><div class="">Thanks for the help!</div><div class=""><br class=""></div><div class="">Florian Zand</div></body></html>

[-- 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 [this message]
2019-05-18 10:37 ` Mikko Olkkonen
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=FDFD19C4-9B01-465D-8A4E-90E99BBF7C94@icloud.com \
    --to=sox-users@lists.sourceforge.net \
    --cc=spamammo@icloud.com \
    /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.git