/speaktome-web

JavaScript modules for Mozilla's cloud speech recognition API.

Primary LanguageJavaScriptMozilla Public License 2.0MPL-2.0

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.min.js"></script>
  <script src="webrtc_vad.js"></script>
</head>

<body>
<script>
var stm = SpeakToMe({
  listener: listener
});

function listener(msg) {
	console.log('listener', msg);---------------------------------------------------------------------
}

stm.listen();

</script>
</body>