Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActionScript/Flex - Stop recording on silence

Is there a way to start recording (writing sample data to a ByteArray) when there's activity (by activity I mean anything but silence), and stop recording when there's one second of silence?

Any guidelines on how to approach this would be extremely appreciated.

(Sorry if part or all of the above sounds stupid, this is my first-ever ActionScript application; I'm building it because I need microphone access in a Web app).

like image 810
Chris Avatar asked Dec 29 '25 17:12

Chris


1 Answers

in Microphone there is 'silenceLevel' property and 'setSilenceLevel()' method. This method specified microphone signal level after which dispatching activity event. Microphone#setSilenceLevel() method reference

like image 133
Pavel Shirobok Avatar answered Jan 01 '26 12:01

Pavel Shirobok



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!