0

using the script in this answer, silence at the beginning of the recording is not clipped.

fwiw, im using python3.

as ive actually slightly tweaked the script, heres my copy: https://wtools.io/paste-code/b2tk

  • Maybe I'm wrong, but this seems to me like it would belong better if you asked this in a comment on the answer you linked. Or can you maybe try to ask it in a more generally useful way that is less tied to fixing a specific script? – E. T. Oct 22 '20 at 22:38
  • 1
    agreed. but this site wont let me comment on it. :( – Antioch Technologies Oct 22 '20 at 22:59
  • Ah, yeah, might be due to this "reputation" concept StackOverflow uses. I forwarded your remark in a comment for you, maybe someone will see it and respond to it. – E. T. Oct 23 '20 at 13:39
  • it appears the mic makes a slight click when it's activated, tripping up the beginning silence trim. now i'm just trying to figure out how to dump the opening moments of audio so the trim works correctly... – Antioch Technologies Nov 21 '20 at 16:45

1 Answers1

0

the issue was due to a quick, inaudible flash of sound when the mic was started. adding del r[0:8000] before r = normalize(r) eliminated the first moments of audio containing the inaudible sound data, solving my issue.