Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voice Recognition/Fuzzy Logic stuff #660

Merged
merged 2 commits into from
Jan 8, 2017
Merged

Voice Recognition/Fuzzy Logic stuff #660

merged 2 commits into from
Jan 8, 2017

Conversation

klier
Copy link
Contributor

@klier klier commented Jan 7, 2017

Both of these pieces of code are originally by Bruce Winter, I've modified them to make them a little more accurate on fuzzy logic.

I use these with IFTTT and the Maker module to run commands based on Google Assistant input, but I figured they would be useful enough for others to use in their IFTTT applets as well. Set appropriate security through password_allow to make this less or more safe, depending on your use.

Example:
http://1.2.3.4:8080/bin/runit.pl?Goodnight

would run the voice command "Goodnight". If "Goodnight" isn't found, the closest voice command using fuzzy logic (Levenshtein distance) is run instead.

klier added 2 commits January 7, 2017 13:28
Do fuzzy logic matches with voice commands send by URL and run them.  Originally by Bruce Winter.  I added commands to strip out some articles and verbs that made the fuzzy logic less accurate.
vr_match.pl: Subroutine for fuzzy logic using Levenshtein distance.  By: Bruce Winter, used by /web/bin/runit.pl
@hollie
Copy link
Owner

hollie commented Jan 8, 2017

Hello Brian,

I was using this code from Bruce also in my 'local' code folder. Solid plan to add it to the codebase like this.

Thanks!

@hollie hollie merged commit d39ca9a into hollie:master Jan 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants