
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
js-speech-rekognition
Advanced tools
Usage:
import {Rekognition} from 'js-speech-rekognition';
const r = new Rekognition();
r.setParams({
lang: 'en-US',
interimResults: false,
continuous: false,
matchThreshold: 0.8,
grammar: [{
phrase_id: 1,
phrase: 'hello',
aliases: ['hi there', 'wassup']
},{
phrase_id: 2,
phrase: 'green',
aliases: ['color']
}, {
phrase_id: 3,
phrase: 'blue',
aliases: ['color']
}, {
phrase_id: 4,
phrase: 'red',
aliases: ['color']
}, {
phrase_id: 5,
phrase: 'yellow',
aliases: ['color']
}]
});
To enable debugging call:
r.debugOn();
To disable debugging call:
r.debugOff();
The service supports for the following custom events:
match - When the spoken command matches with the phrases in the grammarerror - When there's an error with the SpeechAPIstart - When speech rekognition service startsstop - When speech rekognition service stopspartial_speech - When partial speech is detectedcomplete_speech - When final speech results are receivedAttach event listeners as follow:
r.on('match', e => {
// do something
});
r.on('error', e => {
// error occured
});
To start the recognition service:
r.startRekognition();
To stop the recognition service:
r.stopRekognition();
To remove all listeners:
r.removeListeners();
To reset all commands:
r.reset();
FAQs
### Usage
We found that js-speech-rekognition demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.