Menu

Add Simple Offline Voice Commands with One Multi-Keyword Model
📰

Add Simple Offline Voice Commands with One Multi-Keyword Model

DEV Community: machinelearning·voicute·10 days ago
#788vvg8r
Long article (1144 words) — no AI summary yet.
Reading 0:00
15s threshold

You do not always need a full speech-to-text service to add voice control to a project.

If your app, robot, web tool, or small device only needs commands such as:

turn on the light turn off the light next previous stop

Enter fullscreen mode

Exit fullscreen mode

then a small keyword-spotting model can be a practical starting point. It listens for a known vocabulary, returns a command label, and lets your application decide what to do next.

This article shows the complete shape of that workflow: define a command list, generate one multi-keyword model, run it locally, and map the result to safe application actions.

KWS or ASR?

Keyword spotting (KWS) and automatic speech recognition (ASR) solve different problems.

What your project needs A sensible first choice

Detect one wake phrase Single-keyword KWS

Recognize 2–10 known commands Multi-keyword KWS

Transcribe arbitrary speech ASR

Understand open-ended intent ASR plus intent parsing

Verify who is speaking Speaker verification

KWS does not try to…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.