3820cdcc95 | ||
---|---|---|
build | ||
src | ||
.eslintrc.yml | ||
.gitignore | ||
.travis.yml | ||
CODE_OF_CONDUCT.md | ||
LICENSE | ||
README.md | ||
index.html | ||
package-lock.json | ||
package.json | ||
test.html |
README.md
SpeakToMe API
JavaScript module for Mozilla's SpeakToMe API.
Installation
Browser
Install and use by directly including the browser files:
<head>
<title>My Speech-enabled Web Page</title>
<script src="stm_web.min.js"></script>
</head>
<body>
<script>
var stm = SpeakToMe({
listener: listener
});
function listener(msg) {
console.log('listener', msg);
}
stm.listen();
</script>
</body>