jlnichols
2017-06-27 00:07:31 UTC
i have stereo wav files, which each channel is different speakers in a
conversation. trying to figure out how best to split a stereo file by both
its channel and silence, but still know the order the files should be played
in to hear the conversation has a whole. i don't want to merge the 2
channels because often 1 channel has more background noise then the other
and sometime speakers will speak over each other and keeping them separate
will make it easier to understand them.
what i currently have
sox stereo.wav L.wav remix 1
sox stereo.wav R.wav remix 2
sox R.wav R..wav silence 1 0.05 0.2% 1 0.8 0.2% pad 0.5 : newfile :
restart
sox L.wav L..wav silence 1 0.05 0.2% 1 0.8 0.2% pad 0.5 : newfile :
restart
this gets me
R.001.wav
R.002.wav
...
R.020.wav
L.001.wav
L.002.wav
...
L.024.wav
the problem is, for play back sometimes i should play multiple R.###.wav
files in a row, or multi L.###.wav files and i have no way of knowing when i
should do this with my current setup.
instead of just having an increment counter for the name, is there a way to
have have it use the starting time( in seconds or whatever) for that segment
of the file? that way i'd have the below files and could just sort by the
number for the play order.
R.000.wav
L.030.wav
L.043.wav
R.078.wav
...
if not any other suggestions?
thanks for the help
--
View this message in context: http://sox.10957.n7.nabble.com/split-stereo-by-channel-and-silence-tp6063.html
Sent from the SoX mailing list archive at Nabble.com.
conversation. trying to figure out how best to split a stereo file by both
its channel and silence, but still know the order the files should be played
in to hear the conversation has a whole. i don't want to merge the 2
channels because often 1 channel has more background noise then the other
and sometime speakers will speak over each other and keeping them separate
will make it easier to understand them.
what i currently have
sox stereo.wav L.wav remix 1
sox stereo.wav R.wav remix 2
sox R.wav R..wav silence 1 0.05 0.2% 1 0.8 0.2% pad 0.5 : newfile :
restart
sox L.wav L..wav silence 1 0.05 0.2% 1 0.8 0.2% pad 0.5 : newfile :
restart
this gets me
R.001.wav
R.002.wav
...
R.020.wav
L.001.wav
L.002.wav
...
L.024.wav
the problem is, for play back sometimes i should play multiple R.###.wav
files in a row, or multi L.###.wav files and i have no way of knowing when i
should do this with my current setup.
instead of just having an increment counter for the name, is there a way to
have have it use the starting time( in seconds or whatever) for that segment
of the file? that way i'd have the below files and could just sort by the
number for the play order.
R.000.wav
L.030.wav
L.043.wav
R.078.wav
...
if not any other suggestions?
thanks for the help
--
View this message in context: http://sox.10957.n7.nabble.com/split-stereo-by-channel-and-silence-tp6063.html
Sent from the SoX mailing list archive at Nabble.com.