Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved Recognize windows sound

    General and Desktop
    2
    6
    100
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      shokarta last edited by shokarta

      Hello,
      Im wondering if its possible that application will recognize a specific sound.
      Lets say I have sound "something.wav" and once any standard/nonstandard windows aplication will play this sound, it would be recognized by QT and will trigger something.

      PS: the note can be affected by an overloading sound....

      Scenario: I have a specific sound "something.wav" and will play a movie in VLC/mediaplayer/etc and if something in the movie sound similar to "something.wav" it would trigger...

      • scenario is just an example, the sound can come from any application
      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        You would need to tap into your OS audio system to spy on the various audio sources.

        That's something that is highly low level and OS specific. Might not be possible on all systems.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        S 1 Reply Last reply Reply Quote 0
        • S
          shokarta @SGaist last edited by

          @SGaist said in Recognize windows sound:

          That's something that is highly low level

          what doesit mean? low level?

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Meaning that you won't have a ready made solution. You'll have to dig into your OS API to see if you can access the audio output of other application the way you want it.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • S
              shokarta last edited by

              lets say i will use some tool which will create virtual microphone device which will be listening to windows sounds... then I only need to compare the sounds to my *.wav file...
              Can I kindly ask you only point me out what to roughly do? then ill do the reserch myself to make it work...

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                You'll have to monitor the audio stream continuously until you get a sample that matches your reference closely enough.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post