• 🌙 Community Spirit

    Ramadan Mubarak! To honor this month, Crax has paused NSFW categories. Wishing you peace and growth!

Hotword detection with Python (1 Viewer)

Currently reading:
 Hotword detection with Python (1 Viewer)

Recently searched:

m3uZael

Member
LV
0
Joined
Jan 25, 2024
Threads
11
Likes
0
Awards
2
Credits
965©
Cash
0$
Python:
from snowboy import snowboydecoder
def detected_callback():
    print ("hotword detected")

    # do your task here or call other program.
detector = snowboydecoder.HotwordDetector("hotword.pmdl",
                    sensitivity = 0.5, audio_gain = 1)

detector.start(detected_callback)
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Tips
Recently searched:

Similar threads

Users who are viewing this thread

Top Bottom