Speech Recognition

Speech Recognition

Downloads › NABU Internet Adapter

Talk to your NABU. With speech recognition turned on, the Internet Adapter listens to your computer’s microphone and tells NABU programs what you said: fly a starship by name, shout spells at a wizard, or just say “next”.

What you need

The Internet Adapter 2026.11.29.02 or newer running on Windows, and a microphone. Programs that use voice also work with the keyboard, so nobody is left out on a Mac, Linux or without a microphone.

Try It

Starship NABU in orbit around a program

Starship NABU

A headless menu disguised as a space game. Say the name of any category or program and your ship flies there, then say “engage” to land and load it.

Spell Shout: a fireball flies at the Frost Witch

Spell Shout

A wizard duel you play with your voice. Shout the opposite element to block spells and bounce them back.

RetroNET Voice Test after saying purple

RetroNET Voice Test

Say a colour to paint the screen, ask for a tune, and watch the microphone meter. A good first test.

Set It Up

1. Check Windows can hear you

Make sure your microphone is the default recording device (Windows Settings › System › Sound › Input), and that apps are allowed to use it (Windows Settings › Privacy & security › Microphone › Let desktop apps access your microphone).

2. Turn it on in the adapter

Open Settings, go to the Speech tab, tick Enable speech recognition and press Save.

The Speech tab of the Internet Adapter settings
Settings › Speech. The ? beside Minimum confidence and the More Info button open help.

3. Test it and set your minimum confidence

Press Test Speech and Confidence… and read some of the words in the list out loud. See the next section for what the numbers mean.

4. Load a voice program

Start one of the programs above. If it says speech is off, or that your adapter needs updating, it tells you what to do.

Minimum Confidence

Every time you speak, the recognizer says how sure it is (0–100%) that you said one of the program’s words. Anything below the minimum confidence is ignored.

  • Too low: background noise, the TV, or other words can trigger commands.
  • Too high: you have to repeat yourself before anything happens.

It depends on your voice, your microphone and your room, not on the program, so it’s one setting in the adapter that every program uses. Programs can’t change it.

The Speech Test window
The Speech Test: each word shows its last and best confidence, and whether it would be accepted. After 7 different words it suggests a minimum.
  1. In the test, say words from the list at your normal distance and volume. Each one shows LAST (the latest confidence), BEST, and ACCEPTED or IGNORED.
  2. After 7 different words, the test suggests a minimum: a little below what most of your words got. Press Use It to take it.
  3. Say a word that isn’t in the list. It should come out IGNORED or “Not sure”. If it’s accepted, raise the minimum with +.
  4. Press Close, then Save in Settings.

Most people end up between 40% and 70%. You can change it any time, even while a program is running.

How It Works

  1. The program asks. A NABU program tells the adapter it wants speech and sends the words and phrases it understands, like “fire|shoot|bang” or the names of every program in a category (up to 250).
  2. The adapter listens. It loads those phrases into the Windows speech recognizer and listens to the default microphone. Only these phrases count, which makes recognition fast and accurate.
  3. You speak. The recognizer picks the phrase that matches best and how sure it is.
  4. The adapter decides. If it’s at least your minimum confidence, the adapter remembers which phrase it was.
  5. The NABU acts. The program checks a few times a second, gets the phrase, and acts on it. Each phrase is reported once.

Programs can also pause listening (for example while the NABU talks, so it doesn’t hear itself), and turn on dictation to get whatever you said as text.

Privacy

  • Speech recognition is off until you turn it on.
  • The microphone is only open while a NABU program is using speech, and it’s released when the NABU resets or the program stops.
  • Audio stays on your computer: the Windows desktop recognizer works offline.
  • With Verbose log on, the log shows everything that was heard.

Troubleshooting

The program says speech is turned off

Tick Enable speech recognition on the Speech tab of Settings, press Save, then restart the program.

The program says to update my Internet Adapter

Voice programs need adapter 2026.11.29.01 or newer. Download the latest version.

“No speech recognizer installed”

Windows needs a speech recognizer for your language. Add one in Windows Settings › Time & language › Speech (or Language & region: add the language and its speech features), then run the Test again.

“No microphone found”, or the microphone meter never moves

Check the microphone is plugged in, is the default recording device, and that desktop apps may use it (Windows Settings › Privacy & security › Microphone). The Test’s Microphone bar should move when you talk.

It doesn’t understand me, or I have to repeat myself

Run the Test and lower the minimum confidence a little. Speak at a normal pace, keep game sound down, and keep the microphone away from the TV speaker.

Things happen when I didn’t say anything

Background noise or the game’s own sound is being matched. Raise the minimum confidence, turn the game volume down, or move the microphone away from the speakers.

Does it work on a Mac or Linux?

Not yet: it uses the Windows speech recognizer. Voice programs still work with the keyboard on every system.

For Developers

Add voice control to your own programs with RetroNET-Speech.h in NABU-LIB. Every call is answered straight from the adapter’s memory, so polling is cheap.

#include "NABU-LIB.h"
#include "RetroNET-Speech.h"

if (!sr_isSupported())            // ALWAYS first: an old adapter never answers
  ... tell the user to update their adapter

if (sr_init() != SR_OK)           // SR_ERR_DISABLED, SR_ERR_UNSUPPORTED, ...
  ... sr_getLastError(text) has a readable reason; fall back to keys

uint8_t jump = sr_addPhrase("jump");
uint8_t fire = sr_addPhrase("fire|shoot|bang");  // '|' = ways to say the same thing

while (playing) {

  uint8_t heard = sr_getPhrase();   // SR_NO_PHRASE (0xff) when nothing new

  if (heard == jump) ...
  if (heard == fire) ...
}
FunctionUse
sr_isSupported()Checks the adapter version. Call it before anything else.
sr_init() / sr_stop()Start and stop. The adapter also stops when the NABU resets.
sr_addPhrase() / sr_addPhrases() / sr_clearPhrases()Manage up to 250 phrases. Indexes are given out in order from 0.
sr_getPhrase()The most recent phrase heard, once.
sr_getLastResult()The words heard and how confident the recognizer was.
sr_setListening()Pause while the NABU makes sound of its own.
sr_setDictation()Free-form speech, reported as SR_DICTATION with the text in sr_getLastResult().
sr_getStatus()State, microphone level, “someone is talking” and the user’s minimum confidence, for meters and indicators.
  • Poll every few frames rather than every frame: each call is a round trip over the serial line.
  • Don’t set the minimum confidence: it’s the user’s setting. sr_setMinConfidence() is ignored.
  • Always offer keys or a joystick too, for players without Windows or a microphone.
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.