View Full Version : I need to realize 1 "cut audio"!
Matrixbob
22nd May 2007, 21:54
[NB]
I'm a italian boy and i don' know if my english is understable. :(
---
I need to realize 1 "cut audio".
That is to find when in a speech there is 1 pause of silence (or next noise to the silence) to interrupt the track of the file audio.
While for the "video cut" it is been worth the changes of brightness, what I could here use in order to determine where it releases the cut audio?!
I had thought about the + simple of the euristiche, that is: "After 1 certain value considers all 1 cut audio".
http://img523.imageshack.us/img523/6153/cutaudioengta9.png
Someone can given me 1 hand to obtain 1 good script AVISynth PLZ?
TNX!
foxyshadis
23rd May 2007, 18:04
You could do overlapped ffts and look for segments with minimum energy in the 100-2000Hz range, where human speech mainly lies. Or you can do it the simpler way, looking for segments where the two extremes don't differ by more than x units within y samples. The x will depend on bit depth, if you decide that -40dB is a fair cutoff, you have to convert that into 16-bit samples to find the maximum distance indicating silence. A noise gate filter can do this automatically. But be warned, soundtracks usually have a lot of dead air, splitting on it can be problematic. Concert videos less so, naturally.
tranfa
23rd May 2007, 23:05
You could do overlapped ffts and look for segments with minimum energy in the 100-2000Hz range, where human speech mainly lies. Or you can do it the simpler way, looking for segments where the two extremes don't differ by more than x units within y samples. The x will depend on bit depth, if you decide that -40dB is a fair cutoff, you have to convert that into 16-bit samples to find the maximum distance indicating silence. A noise gate filter can do this automatically. But be warned, soundtracks usually have a lot of dead air, splitting on it can be problematic. Concert videos less so, naturally.
Hi foxyshadis, could you please mention one or two names of noise gate filters that we might use within an Avisynth script?
Thanks in advance!
Tranfa
tranfa
29th May 2007, 11:07
Hi foxyshadis, could you please mention one or two names of noise gate filters that we might use within an Avisynth script?
Thanks in advance!
Tranfa
Hi Foxyshadis, maybe you've missed this post...:)
foxyshadis
3rd June 2007, 17:12
Sorry, I missed the reply.
It would have to be implemented as a new plugin; I thought you were looking to write your own code, sorry. I could probably try to make one, but I can't promise much, since I'm not really clear on converting dB to amplitude in samples.
tranfa
3rd June 2007, 19:14
Sorry, I missed the reply.
It would have to be implemented as a new plugin; I thought you were looking to write your own code, sorry. I could probably try to make one, but I can't promise much, since I'm not really clear on converting dB to amplitude in samples.
Thank you very much for the reply, foxyshadis.
I thought that something similar already existed, and it was me not knowing where to find it.
Unfortunately, I'm not sure I'm able to code....at least now...
:thanks:
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.