Skip to content

Instantly share code, notes, and snippets.

Created Mar 31, 2019
What would you like to do?
async function run() {
recognizer = speechCommands.create('BROWSER_FFT', 'directional4w');
await recognizer.ensureModelLoaded();
var canvas = document.getElementById("canvas");
var contex = canvas.getContext("2d");
contex.lineWidth = 10;
contex.lineJoin = 'round';
var positionx = 400;
var positiony = 500;
predict(contex, positionx, positiony);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment