sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
* How to get list of time marks for silence?
@ 2018-09-25 22:47 Albert Berger
  0 siblings, 0 replies; only message in thread
From: Albert Berger @ 2018-09-25 22:47 UTC (permalink / raw)
  To: sox-users

Hello,

could someone advise please if there exists a fast way to get a list of time 
labels for all periods of silence in an audio file? 

I can get such list in a "long way" with a command:

play someFile.mp3 silence -l 0 1 0.26t -54d : restart

And wait till the whole file will be played at normal speed to get the
needed information:

In:0.04% 00:00:00.74 [00:29:29.08] Out:14.5k [      |      ]        Clip:0
In:0.88% 00:00:15.60 [00:29:14.22] Out:341k  [      |      ]        Clip:0
In:0.90% 00:00:15.98 [00:29:13.84] Out:349k  [      |      ]        Clip:0
In:0.92% 00:00:16.35 [00:29:13.47] Out:356k  [      |      ]        Clip:0
In:0.94% 00:00:16.72 [00:29:13.10] Out:363k  [      |      ]        Clip:0
In:0.97% 00:00:17.09 [00:29:12.73] Out:369k  [      |      ]        Clip:0
In:1.03% 00:00:18.20 [00:29:11.62] Out:400k  [      |      ]        Clip:0

Is there some way to get this sort of information fast? (I tried to
look into 'stat' effect, but could not figure out how to use it for
this task.)

Thanks.
/Al


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-25 22:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-25 22:47 How to get list of time marks for silence? Albert Berger

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).