I don’t have a lot of extra play time at the moment, but I wanted to quickly throw something together to try annyang.
Putting them together
Combining annyang.js and speak.js seemed like fun, so I created a little demo. Annyang.js listens to what you say, and speak.js repeats it back to you.
In the above example, we begin by checking to see if annyang will work in this browser. If so, we define a function called
sayThis that takes the output from our wildcard variable in annyong called
*repeat and uses the speak.js function
speak() to output a .wav file to