You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can someone point me to the documentation on thresholds?
I am trying to get a recording to stop after a (configurable) moment of silence (say 2 seconds). I don't see any example of this, but it appears that it is possible with "endOnSilence" and thresholds.
Here's a bit of code that I would have thought would start after some 0.5 threshold (whatever that means) and ends after 1 second of silence meeting a thresholdEnd of 0.2 (whatever that means). But it just records forever.
What changes to this code would I have to make to have the recording stop when it detects silence?
UPDATE: I played with the thresholds and a different microphone and it seems to work. I would still like to see some docs on thresholds as I'm guessing what they do and I'd rather not guess. Is it also possible that 'rec' ignores thresholds and 'sox' implements them?
Thanks
+Eric
The text was updated successfully, but these errors were encountered:
Can someone point me to the documentation on thresholds?
I am trying to get a recording to stop after a (configurable) moment of silence (say 2 seconds). I don't see any example of this, but it appears that it is possible with "endOnSilence" and thresholds.
Here's a bit of code that I would have thought would start after some 0.5 threshold (whatever that means) and ends after 1 second of silence meeting a thresholdEnd of 0.2 (whatever that means). But it just records forever.
What changes to this code would I have to make to have the recording stop when it detects silence?
UPDATE: I played with the thresholds and a different microphone and it seems to work. I would still like to see some docs on thresholds as I'm guessing what they do and I'd rather not guess. Is it also possible that 'rec' ignores thresholds and 'sox' implements them?
Thanks
+Eric
The text was updated successfully, but these errors were encountered: