C#.NET Determine blow sound using microphone












-3














I am working on a UWP app which needs to keep listening to the sound and recognize a hammering sound.
For every blow of hammer strike I need to save the system time.



I have looked at few algorithms like
Clap sound detection in C#



but none-of-them are close to what I am looking for.



Here is the flow:




  1. on my UWP I click on a button "Listen Audio"

  2. That will start hearing to the sound

  3. When there is sudden spike in sound wave, which is like a big hammer strike, my code should trigger an event

  4. That event will capture information related to the hammer striking (mostly timestamp)


Any suggestions for coming up with a good algorithm is appreciated.










share|improve this question




















  • 3




    Hi welcome to StackOverflow, can I ask you what you already tried doing? I also recommend reading this stackoverflow.com/help/mcve on creating Minimal, Complete, and Verifiable examples
    – MindSwipe
    Nov 12 '18 at 14:38












  • This goes partially into AI development. I am actually unsure how they pull that off on a Smartphones hardware. Maybe they are fudging it, by applying the sampling Theorem? en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem Practically the "hammering" is just a low frequency signal. And if you pick the sampling rate so low you can barely still sample it, you got all the data you need to figure out the Blows/minute.
    – Christopher
    Nov 12 '18 at 14:47












  • Thanks Christopher
    – Rana Ranjeet Singh
    Nov 13 '18 at 10:16










  • Please see this url (piledrivingapp.com/screenshots) also.
    – Rana Ranjeet Singh
    Nov 13 '18 at 10:17


















-3














I am working on a UWP app which needs to keep listening to the sound and recognize a hammering sound.
For every blow of hammer strike I need to save the system time.



I have looked at few algorithms like
Clap sound detection in C#



but none-of-them are close to what I am looking for.



Here is the flow:




  1. on my UWP I click on a button "Listen Audio"

  2. That will start hearing to the sound

  3. When there is sudden spike in sound wave, which is like a big hammer strike, my code should trigger an event

  4. That event will capture information related to the hammer striking (mostly timestamp)


Any suggestions for coming up with a good algorithm is appreciated.










share|improve this question




















  • 3




    Hi welcome to StackOverflow, can I ask you what you already tried doing? I also recommend reading this stackoverflow.com/help/mcve on creating Minimal, Complete, and Verifiable examples
    – MindSwipe
    Nov 12 '18 at 14:38












  • This goes partially into AI development. I am actually unsure how they pull that off on a Smartphones hardware. Maybe they are fudging it, by applying the sampling Theorem? en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem Practically the "hammering" is just a low frequency signal. And if you pick the sampling rate so low you can barely still sample it, you got all the data you need to figure out the Blows/minute.
    – Christopher
    Nov 12 '18 at 14:47












  • Thanks Christopher
    – Rana Ranjeet Singh
    Nov 13 '18 at 10:16










  • Please see this url (piledrivingapp.com/screenshots) also.
    – Rana Ranjeet Singh
    Nov 13 '18 at 10:17
















-3












-3








-3







I am working on a UWP app which needs to keep listening to the sound and recognize a hammering sound.
For every blow of hammer strike I need to save the system time.



I have looked at few algorithms like
Clap sound detection in C#



but none-of-them are close to what I am looking for.



Here is the flow:




  1. on my UWP I click on a button "Listen Audio"

  2. That will start hearing to the sound

  3. When there is sudden spike in sound wave, which is like a big hammer strike, my code should trigger an event

  4. That event will capture information related to the hammer striking (mostly timestamp)


Any suggestions for coming up with a good algorithm is appreciated.










share|improve this question















I am working on a UWP app which needs to keep listening to the sound and recognize a hammering sound.
For every blow of hammer strike I need to save the system time.



I have looked at few algorithms like
Clap sound detection in C#



but none-of-them are close to what I am looking for.



Here is the flow:




  1. on my UWP I click on a button "Listen Audio"

  2. That will start hearing to the sound

  3. When there is sudden spike in sound wave, which is like a big hammer strike, my code should trigger an event

  4. That event will capture information related to the hammer striking (mostly timestamp)


Any suggestions for coming up with a good algorithm is appreciated.







c# uwp soundpool






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 13 '18 at 10:57









HaBo

6,7272686165




6,7272686165










asked Nov 12 '18 at 14:34









Rana Ranjeet Singh

1




1








  • 3




    Hi welcome to StackOverflow, can I ask you what you already tried doing? I also recommend reading this stackoverflow.com/help/mcve on creating Minimal, Complete, and Verifiable examples
    – MindSwipe
    Nov 12 '18 at 14:38












  • This goes partially into AI development. I am actually unsure how they pull that off on a Smartphones hardware. Maybe they are fudging it, by applying the sampling Theorem? en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem Practically the "hammering" is just a low frequency signal. And if you pick the sampling rate so low you can barely still sample it, you got all the data you need to figure out the Blows/minute.
    – Christopher
    Nov 12 '18 at 14:47












  • Thanks Christopher
    – Rana Ranjeet Singh
    Nov 13 '18 at 10:16










  • Please see this url (piledrivingapp.com/screenshots) also.
    – Rana Ranjeet Singh
    Nov 13 '18 at 10:17
















  • 3




    Hi welcome to StackOverflow, can I ask you what you already tried doing? I also recommend reading this stackoverflow.com/help/mcve on creating Minimal, Complete, and Verifiable examples
    – MindSwipe
    Nov 12 '18 at 14:38












  • This goes partially into AI development. I am actually unsure how they pull that off on a Smartphones hardware. Maybe they are fudging it, by applying the sampling Theorem? en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem Practically the "hammering" is just a low frequency signal. And if you pick the sampling rate so low you can barely still sample it, you got all the data you need to figure out the Blows/minute.
    – Christopher
    Nov 12 '18 at 14:47












  • Thanks Christopher
    – Rana Ranjeet Singh
    Nov 13 '18 at 10:16










  • Please see this url (piledrivingapp.com/screenshots) also.
    – Rana Ranjeet Singh
    Nov 13 '18 at 10:17










3




3




Hi welcome to StackOverflow, can I ask you what you already tried doing? I also recommend reading this stackoverflow.com/help/mcve on creating Minimal, Complete, and Verifiable examples
– MindSwipe
Nov 12 '18 at 14:38






Hi welcome to StackOverflow, can I ask you what you already tried doing? I also recommend reading this stackoverflow.com/help/mcve on creating Minimal, Complete, and Verifiable examples
– MindSwipe
Nov 12 '18 at 14:38














This goes partially into AI development. I am actually unsure how they pull that off on a Smartphones hardware. Maybe they are fudging it, by applying the sampling Theorem? en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem Practically the "hammering" is just a low frequency signal. And if you pick the sampling rate so low you can barely still sample it, you got all the data you need to figure out the Blows/minute.
– Christopher
Nov 12 '18 at 14:47






This goes partially into AI development. I am actually unsure how they pull that off on a Smartphones hardware. Maybe they are fudging it, by applying the sampling Theorem? en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem Practically the "hammering" is just a low frequency signal. And if you pick the sampling rate so low you can barely still sample it, you got all the data you need to figure out the Blows/minute.
– Christopher
Nov 12 '18 at 14:47














Thanks Christopher
– Rana Ranjeet Singh
Nov 13 '18 at 10:16




Thanks Christopher
– Rana Ranjeet Singh
Nov 13 '18 at 10:16












Please see this url (piledrivingapp.com/screenshots) also.
– Rana Ranjeet Singh
Nov 13 '18 at 10:17






Please see this url (piledrivingapp.com/screenshots) also.
– Rana Ranjeet Singh
Nov 13 '18 at 10:17














1 Answer
1






active

oldest

votes


















0














Based on your requirement this answer gives you what you need.



Link to product Info Page http://www.zonetrigger.com/sound-detection/



Demo link: http://www.zonetrigger.com/sound-detection/azt-demo.html



Audio Zone Trigger — $24.95
Audio Zone Trigger is very easy to use: you put triggers on the sound wave, and when the waves go beyond the thresholds, they perform the actions that you have selected. The software was designed with the following purposes in mind: Security, Computer Remote Control and Monitoring. However, because the software can perform any action that you want, you are free to use it in any creative way you can think!



If you don't want to user 3rd party tools and develop your own solution, then you can try this approach numerical integration






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53264367%2fc-net-determine-blow-sound-using-microphone%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Based on your requirement this answer gives you what you need.



    Link to product Info Page http://www.zonetrigger.com/sound-detection/



    Demo link: http://www.zonetrigger.com/sound-detection/azt-demo.html



    Audio Zone Trigger — $24.95
    Audio Zone Trigger is very easy to use: you put triggers on the sound wave, and when the waves go beyond the thresholds, they perform the actions that you have selected. The software was designed with the following purposes in mind: Security, Computer Remote Control and Monitoring. However, because the software can perform any action that you want, you are free to use it in any creative way you can think!



    If you don't want to user 3rd party tools and develop your own solution, then you can try this approach numerical integration






    share|improve this answer


























      0














      Based on your requirement this answer gives you what you need.



      Link to product Info Page http://www.zonetrigger.com/sound-detection/



      Demo link: http://www.zonetrigger.com/sound-detection/azt-demo.html



      Audio Zone Trigger — $24.95
      Audio Zone Trigger is very easy to use: you put triggers on the sound wave, and when the waves go beyond the thresholds, they perform the actions that you have selected. The software was designed with the following purposes in mind: Security, Computer Remote Control and Monitoring. However, because the software can perform any action that you want, you are free to use it in any creative way you can think!



      If you don't want to user 3rd party tools and develop your own solution, then you can try this approach numerical integration






      share|improve this answer
























        0












        0








        0






        Based on your requirement this answer gives you what you need.



        Link to product Info Page http://www.zonetrigger.com/sound-detection/



        Demo link: http://www.zonetrigger.com/sound-detection/azt-demo.html



        Audio Zone Trigger — $24.95
        Audio Zone Trigger is very easy to use: you put triggers on the sound wave, and when the waves go beyond the thresholds, they perform the actions that you have selected. The software was designed with the following purposes in mind: Security, Computer Remote Control and Monitoring. However, because the software can perform any action that you want, you are free to use it in any creative way you can think!



        If you don't want to user 3rd party tools and develop your own solution, then you can try this approach numerical integration






        share|improve this answer












        Based on your requirement this answer gives you what you need.



        Link to product Info Page http://www.zonetrigger.com/sound-detection/



        Demo link: http://www.zonetrigger.com/sound-detection/azt-demo.html



        Audio Zone Trigger — $24.95
        Audio Zone Trigger is very easy to use: you put triggers on the sound wave, and when the waves go beyond the thresholds, they perform the actions that you have selected. The software was designed with the following purposes in mind: Security, Computer Remote Control and Monitoring. However, because the software can perform any action that you want, you are free to use it in any creative way you can think!



        If you don't want to user 3rd party tools and develop your own solution, then you can try this approach numerical integration







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 14 '18 at 7:51









        HaBo

        6,7272686165




        6,7272686165






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53264367%2fc-net-determine-blow-sound-using-microphone%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            Xamarin.form Move up view when keyboard appear

            Post-Redirect-Get with Spring WebFlux and Thymeleaf

            Anylogic : not able to use stopDelay()