talater / annyang Goto Github PK
View Code? Open in Web Editor NEW:speech_balloon: Speech recognition for your site
Home Page: https://www.talater.com/annyang/
License: MIT License
:speech_balloon: Speech recognition for your site
Home Page: https://www.talater.com/annyang/
License: MIT License
Allows adding additional voice commands after init.
e.g.
var commands = {
'show||display tps report': function() { $('#tpsreport').show(); }
};
For example
annyang.addNavigation({
'apple tv': 'http://store.apple.com/us/ipod/ipod-accessories/apple-tv',
'ipod nano': 'http://store.apple.com/us/buy-ipod/ipod-nano',
'monitors': 'http://store.apple.com/us/mac/mac-accessories/displays'
});
Should also be able to get multiple phrases for one url.
e.g.
var commands = {
/^Hello number \d*$/: greetPrisoner
};
Copy all commands to a phonetic alphabet "translation"
I'm just learning node-webkit and also just found this library today. It works great in the chrome browser, and I am able to get a audio stream in my hello world node-webkit application via the webkitGetUserMedia plugin. But annyang doesn't seem to be working. No errors, just not doing anything.
By the way, just testing with a simple command:
var commands = {
'go away': function() {
window.close();
}
};
annyang.init(commands);
annyang.start();
Consider raising maxAlternatives when having trouble understanding current user.
As suggested by @rx
For example:
annyang.setPrefix('OK, glass');
Now only sentences beggining with "OK, glass" will be parsed.
annyang already supports receiving commands in any language.
Just call:
// choose language
annyang.setLanguage('it-IT');
// define commands in that language
annyang.init({
'mi chiamo *name': sayHello
});
Need to add support for defining rules in multiple languages, and then a user should be able to just change the language without redefining rules:
// choose language
annyang.setLanguage('it-IT');
// define commands in that language
annyang.init(
'it-IT': {
'mi chiamo *name': sayHello
},
'en' : {
'my name is *name': sayHello
}
});
annyang.setLanguage('en');
// now annyag recognizes English
annyang.setLanguage('it-IT');
// now annyag recognizes Italian
See how this can be added without breaking existing code (can define either multiple languages, or one)
I didn't have any luck using it with Backbonejs, the permission dialog keeps showing up, as if in loop, doesn't matter if i authorize or not. Here's the code, the annyang call is on line 118. And here's the app running
Show visual cue to user that he needs to approve use of mic.
Perhaps an overlay on the page that draws attention to the notice. This can have an optional text message.
Consider building as an optional external component, plugin.
@TalAter I consider that it might be useful to add a link to this GitHub repo on the site. "Let's get started!" doesn't work for a good portion of the people visiting your website, portion from which a few would also be interested in the implementation/issues regarding the library.
Will cause it to stop listening.
I have tried to get it working and have had no luck. Any plans to make this possible in the future. I have a project that would really benefit from this!
Explore SpeechGrammar support
Consider using Blobs (see http://stackoverflow.com/questions/9848979/html5-speech-recognition-is-there-a-way-to-set-what-the-user-is-expected-to/15102039#15102039)
Add interface to let user add grammar and words.
Hi,
When I open two tab or more with annyang the last tab works but the other crach are they anyway to avoid these (like do not load annayang if annayang is used by another tab) ?
init()
start()
abort()
debug()
setLanguage()
addCommands()
addCallback()
e.g.
var commands = {
'show (me) tps report': function() { $('#tpsreport').show(); }
};
User can determine the language to use.
annyang.debug() or annyang.debug(true) should turn on debug mode which will output more data to console. including recognized text, and more.
Pass it back what you thought might've been said
Perhaps restart onEnd?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.