質問

When splitting an audio file at silence e.g.

sox input.wav output.wav silence 1 0.5 1% 1 3.0 1% : newfile : restart

the multiple output files have filenames like output001.wav, output002.wav, …

Is it possible to instead append the start time of segment within input file? I.e. if a file has periods of non-silence starting at 1200ms and another at 5000ms, output file names could be something like output1200.wav, output5000.wav.

役に立ちましたか?

解決

Unfortunately, it is not possible without modifying SoX. The silence effect does not report in any way at which points it switches from trimming to copying or the other way round.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top