Node Overview
Spokestack can be integrated in Node (and the browser).
Integrations by Feature
Add speech recognition, language understanding, and text-to-speech to your app with one simple API.
Select a specific feature you’d like to integrate with for more details:
try {
await startPipeline({
profile: PipelineProfile.Wakeword,
baseUrls: {
wakeword: 'https://s.spokestack.io/u/hgmYb/js'
},
onEvent: (event) => {
switch (event.type) {
case SpeechEventType.Activate:
console.log('Wake word activated!')
break
// ..
}
}
})
} catch (e) {
console.error(e)
}
TypeScript
Try a Wake Word in Your Browser
Test a wake word model by pressing “Start test,” then saying “Spokestack”. Wait a few seconds for results. This browser tester is experimental.
Say “Spokestack” when testing
Instructions
- Test a model by pressing "start test" above
- Then, try saying any of the utterances listed above. Wait a few seconds after saying an utterance for a confirmation to appear.
Spokestack Node SDK
Spokestack manages voice interactions and delivers actionable user commands with just a few lines of code.
For step-by-step instructions on how to use
node-spokestack
check out our Getting Started Guide.