script activated by specific sound

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
jekko1976
Posts: 97
Joined: 10 Oct 2014, 07:03

script activated by specific sound

Post by jekko1976 » 06 May 2021, 10:24

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 :lol:
Does someone have a suggestion (or maybe a ready_to_use snippet :shifty: )
Thank you so much!
User avatar
mikeyww
Posts: 26601
Joined: 09 Sep 2014, 18:38

Re: script activated by specific sound

Post by mikeyww » 06 May 2021, 10:46

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.
AHKStudent
Posts: 1472
Joined: 05 May 2018, 12:23

Re: script activated by specific sound

Post by AHKStudent » 06 May 2021, 12:16

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
malcev
Posts: 1769
Joined: 12 Aug 2014, 12:37

Re: script activated by specific sound

Post by malcev » 06 May 2021, 13:50

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
Post Reply

Return to “Ask for Help (v1)”