Hello,
I would like to trigger some function not by an hotkey but by a sound (not voice) that hears the microphone.
I googled around but I didn't find anything that could resolve my problem.
I suppose that I should record my sound to a WAV, then put the AHK in a sort of "listening mode" and when it detect a sound, the script should compare it with the WAV that I have recorded.
In other words, I have no idea about how to reach my goal
Does someone have a suggestion (or maybe a ready_to_use snippet )
Thank you so much!
script activated by specific sound
Re: script activated by specific sound
There are some MIDI scripts posted that can use MIDI as triggers. I do not know whether some of them might be adapted to meet your need.
-
- Posts: 1472
- Joined: 05 May 2018, 12:23
Re: script activated by specific sound
its called audio fingerprinting (think Shazam) its been done in Python so maybe you could use a python script to detect the audio and then trigger your ahk script
https://github.com/itspoma/audio-fingerprint-identifying-python
https://github.com/itspoma/audio-fingerprint-identifying-python
Re: script activated by specific sound
I think that this python code is not for this task.
When I was interested with this question I found only this code
https://www.3delite.hu/Object%20Pascal%20Developer%20Resources/bassaudiorecognitionlibrary.html
When I was interested with this question I found only this code
https://www.3delite.hu/Object%20Pascal%20Developer%20Resources/bassaudiorecognitionlibrary.html