ashishbajaj99 / mic

A simple stream wrapper for arecord (Linux (including Raspbian)) and sox (Mac, Windows). Returns a Passthrough stream object so that stream control like pause(), resume(), pipe(), etc. are all available.
MIT License
103 stars 61 forks source link

Detect sounds #31

Closed Sharcoux closed 5 years ago

Sharcoux commented 5 years ago

Would it be possible to detect sounds and emit a 'sound' event accordingly?

My use case is that, after receiving 'slience', I need to know the time that elapsed before a new sound occured. I don't see how to do that with the current API.

This is great work otherwise!

ashishbajaj99 commented 5 years ago

Thank you for the PR.