Record audio when sound is detected, like “motion” does for video












5















For those not familiar with the "motion" project it monitors your camera and when enough motion is detected in the video field of view it records that to a video file. The project website is here What I'm looking for is something like that but for audio, does anyone know of any Linux apps that can accomplish this?










share|improve this question



























    5















    For those not familiar with the "motion" project it monitors your camera and when enough motion is detected in the video field of view it records that to a video file. The project website is here What I'm looking for is something like that but for audio, does anyone know of any Linux apps that can accomplish this?










    share|improve this question

























      5












      5








      5


      2






      For those not familiar with the "motion" project it monitors your camera and when enough motion is detected in the video field of view it records that to a video file. The project website is here What I'm looking for is something like that but for audio, does anyone know of any Linux apps that can accomplish this?










      share|improve this question














      For those not familiar with the "motion" project it monitors your camera and when enough motion is detected in the video field of view it records that to a video file. The project website is here What I'm looking for is something like that but for audio, does anyone know of any Linux apps that can accomplish this?







      linux audio






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 1 '11 at 14:20









      GekitsuuGekitsuu

      3515




      3515






















          2 Answers
          2






          active

          oldest

          votes


















          7














          SoX's rec with the silence predicate can mimic this.






          share|improve this answer
























          • I think this is the second time you've given me a great answer to a question I posted, thanks X2. Taking a look at SoX now.

            – Gekitsuu
            Jul 1 '11 at 14:32











          • @Gekitsuu: then be thankful, and mark the answer as accepted :). That's how this community works.

            – Sunny
            Jul 1 '11 at 14:43






          • 1





            @Sunny I just wanted to verify that it did what I needed before I accepted it :P

            – Gekitsuu
            Jul 1 '11 at 16:01











          • The problem is we won't know when the recorded sounds occured, right?

            – unfa
            Nov 17 '17 at 12:25











          • @unfa: SoX is patient.

            – Ignacio Vazquez-Abrams
            Nov 17 '17 at 16:37



















          0














          Indeed : rec ~/tmp/sound.wav silence 1 0.1 2% 1 3.0 2% : newfile : restart
          By looping the recording process between silences, will also tell you when the sounds occurred.
          see : https://digitalcardboard.com/blog/2009/08/25/the-sox-of-silence/comment-page-2/






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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%2fsuperuser.com%2fquestions%2f305007%2frecord-audio-when-sound-is-detected-like-motion-does-for-video%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            7














            SoX's rec with the silence predicate can mimic this.






            share|improve this answer
























            • I think this is the second time you've given me a great answer to a question I posted, thanks X2. Taking a look at SoX now.

              – Gekitsuu
              Jul 1 '11 at 14:32











            • @Gekitsuu: then be thankful, and mark the answer as accepted :). That's how this community works.

              – Sunny
              Jul 1 '11 at 14:43






            • 1





              @Sunny I just wanted to verify that it did what I needed before I accepted it :P

              – Gekitsuu
              Jul 1 '11 at 16:01











            • The problem is we won't know when the recorded sounds occured, right?

              – unfa
              Nov 17 '17 at 12:25











            • @unfa: SoX is patient.

              – Ignacio Vazquez-Abrams
              Nov 17 '17 at 16:37
















            7














            SoX's rec with the silence predicate can mimic this.






            share|improve this answer
























            • I think this is the second time you've given me a great answer to a question I posted, thanks X2. Taking a look at SoX now.

              – Gekitsuu
              Jul 1 '11 at 14:32











            • @Gekitsuu: then be thankful, and mark the answer as accepted :). That's how this community works.

              – Sunny
              Jul 1 '11 at 14:43






            • 1





              @Sunny I just wanted to verify that it did what I needed before I accepted it :P

              – Gekitsuu
              Jul 1 '11 at 16:01











            • The problem is we won't know when the recorded sounds occured, right?

              – unfa
              Nov 17 '17 at 12:25











            • @unfa: SoX is patient.

              – Ignacio Vazquez-Abrams
              Nov 17 '17 at 16:37














            7












            7








            7







            SoX's rec with the silence predicate can mimic this.






            share|improve this answer













            SoX's rec with the silence predicate can mimic this.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jul 1 '11 at 14:22









            Ignacio Vazquez-AbramsIgnacio Vazquez-Abrams

            96k6155211




            96k6155211













            • I think this is the second time you've given me a great answer to a question I posted, thanks X2. Taking a look at SoX now.

              – Gekitsuu
              Jul 1 '11 at 14:32











            • @Gekitsuu: then be thankful, and mark the answer as accepted :). That's how this community works.

              – Sunny
              Jul 1 '11 at 14:43






            • 1





              @Sunny I just wanted to verify that it did what I needed before I accepted it :P

              – Gekitsuu
              Jul 1 '11 at 16:01











            • The problem is we won't know when the recorded sounds occured, right?

              – unfa
              Nov 17 '17 at 12:25











            • @unfa: SoX is patient.

              – Ignacio Vazquez-Abrams
              Nov 17 '17 at 16:37



















            • I think this is the second time you've given me a great answer to a question I posted, thanks X2. Taking a look at SoX now.

              – Gekitsuu
              Jul 1 '11 at 14:32











            • @Gekitsuu: then be thankful, and mark the answer as accepted :). That's how this community works.

              – Sunny
              Jul 1 '11 at 14:43






            • 1





              @Sunny I just wanted to verify that it did what I needed before I accepted it :P

              – Gekitsuu
              Jul 1 '11 at 16:01











            • The problem is we won't know when the recorded sounds occured, right?

              – unfa
              Nov 17 '17 at 12:25











            • @unfa: SoX is patient.

              – Ignacio Vazquez-Abrams
              Nov 17 '17 at 16:37

















            I think this is the second time you've given me a great answer to a question I posted, thanks X2. Taking a look at SoX now.

            – Gekitsuu
            Jul 1 '11 at 14:32





            I think this is the second time you've given me a great answer to a question I posted, thanks X2. Taking a look at SoX now.

            – Gekitsuu
            Jul 1 '11 at 14:32













            @Gekitsuu: then be thankful, and mark the answer as accepted :). That's how this community works.

            – Sunny
            Jul 1 '11 at 14:43





            @Gekitsuu: then be thankful, and mark the answer as accepted :). That's how this community works.

            – Sunny
            Jul 1 '11 at 14:43




            1




            1





            @Sunny I just wanted to verify that it did what I needed before I accepted it :P

            – Gekitsuu
            Jul 1 '11 at 16:01





            @Sunny I just wanted to verify that it did what I needed before I accepted it :P

            – Gekitsuu
            Jul 1 '11 at 16:01













            The problem is we won't know when the recorded sounds occured, right?

            – unfa
            Nov 17 '17 at 12:25





            The problem is we won't know when the recorded sounds occured, right?

            – unfa
            Nov 17 '17 at 12:25













            @unfa: SoX is patient.

            – Ignacio Vazquez-Abrams
            Nov 17 '17 at 16:37





            @unfa: SoX is patient.

            – Ignacio Vazquez-Abrams
            Nov 17 '17 at 16:37













            0














            Indeed : rec ~/tmp/sound.wav silence 1 0.1 2% 1 3.0 2% : newfile : restart
            By looping the recording process between silences, will also tell you when the sounds occurred.
            see : https://digitalcardboard.com/blog/2009/08/25/the-sox-of-silence/comment-page-2/






            share|improve this answer




























              0














              Indeed : rec ~/tmp/sound.wav silence 1 0.1 2% 1 3.0 2% : newfile : restart
              By looping the recording process between silences, will also tell you when the sounds occurred.
              see : https://digitalcardboard.com/blog/2009/08/25/the-sox-of-silence/comment-page-2/






              share|improve this answer


























                0












                0








                0







                Indeed : rec ~/tmp/sound.wav silence 1 0.1 2% 1 3.0 2% : newfile : restart
                By looping the recording process between silences, will also tell you when the sounds occurred.
                see : https://digitalcardboard.com/blog/2009/08/25/the-sox-of-silence/comment-page-2/






                share|improve this answer













                Indeed : rec ~/tmp/sound.wav silence 1 0.1 2% 1 3.0 2% : newfile : restart
                By looping the recording process between silences, will also tell you when the sounds occurred.
                see : https://digitalcardboard.com/blog/2009/08/25/the-sox-of-silence/comment-page-2/







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 7 at 21:18









                Gheeyom ThorGheeyom Thor

                1




                1






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f305007%2frecord-audio-when-sound-is-detected-like-motion-does-for-video%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







                    Popular posts from this blog

                    Plaza Victoria

                    Brian Clough

                    Cáceres