Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.

Clap on / Clap off #30

Open
trevor-clarke opened this issue Nov 9, 2016 · 9 comments
Open

Clap on / Clap off #30

trevor-clarke opened this issue Nov 9, 2016 · 9 comments
Assignees
Labels
feature request A feature is a functionnality that doesn't exists in the app.

Comments

@trevor-clarke
Copy link

Just a simple clap on clap off feature ... would be helpful if you werent at your keyboard for whatever reason.

@Hyrules Hyrules added the feature request A feature is a functionnality that doesn't exists in the app. label Nov 9, 2016
@Hyrules
Copy link
Owner

Hyrules commented Nov 9, 2016

Hmmm i have to look into this because I have no clue how to implement this...

@Hyrules
Copy link
Owner

Hyrules commented Nov 10, 2016

I have found a way to do this. I will try to implement it in the next version as a tool.

@Hyrules Hyrules added this to the beta_23 milestone Nov 10, 2016
@Hyrules Hyrules self-assigned this Nov 10, 2016
@Hyrules Hyrules removed this from the beta_23 milestone Nov 11, 2016
@Hyrules
Copy link
Owner

Hyrules commented Nov 11, 2016

I played around with this and it's not as easy at is seems. I might not have it in the next version. I will try but no promises. Interfacing the microphone is easy. Analyzing the samples and finding the clap is another thing. I have a piece of code that does it but it's rather weak. One clap can end in 8 or 9 trigger of a clap depending on the sample. I'm not an audio expert.

@trevor-clarke
Copy link
Author

Sounds good!

@trevor-clarke
Copy link
Author

@Hyrules Why not just make it so you can only toggle it once every few seconds? That would solve the multiple triggering problem.

@pleg
Copy link

pleg commented Oct 8, 2017

you can use this method: https://github.com/tom-s/clap-detector/blob/master/index.js
its using the silence detection of SOX, see the manual: http://sox.sourceforge.net/sox.html
silence [−l] above-periods [duration threshold[d|%] [below-periods duration threshold[d|%]] Removes silence from the beginning, middle, or end of the audio. ‘Silence’ is determined by a specified threshold.

@Hyrules
Copy link
Owner

Hyrules commented Oct 8, 2017

Both links gives a 404...

@pleg
Copy link

pleg commented Oct 8, 2017

links fixed

@riahc3
Copy link

riahc3 commented Feb 10, 2019

Maybe you can use the Microsoft Speech API for this? (Just a suggestion, it might not have anything to do with it)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature request A feature is a functionnality that doesn't exists in the app.
Projects
None yet
Development

No branches or pull requests

4 participants