Skip to main content

Voice Commands & Keywords

Wake Word: "Okay Code"

SpokenCode includes a local wake word detector. Say "Okay Code" and recording starts automatically — no hotkey required.

What you sayWhat happens
"Okay Code"Recording starts immediately

To enable it, go to Settings → Voice Commands and turn on the toggle.

note

Requires Python 3.10+ installed on your machine. The trained model and listener script are bundled with the app — no internet connection needed for detection. See the Windows installation guide for setup.


Snippet Mode Keywords

Voice commands are for Snippet Mode only. When you record in Snippet Mode, SpokenCode listens to the first word(s) of your sentence to detect a keyword. The keyword tells SpokenCode what type of output to generate.

Rule: always start your sentence with the keyword.

Example:

  • You say: "javascript create a function that reverses a string"
  • SpokenCode detects keyword: javascript
  • It sends to AI: "create a function that reverses a string"
  • Output typed into your app: function reverseString(str) { return str.split('').reverse().join(''); }

command — Terminal / Bash Commands

Generates a shell command ready to paste in your terminal.

Trigger word: command

What you sayWhat gets typed
"command list all files including hidden"ls -la
"command find all JavaScript files"find . -name "*.js"
"command search for the word error in logs"grep -i "error" /var/log/*
"command show disk usage"df -h
"command kill process on port 3000"lsof -ti:3000 | xargs kill
tip

Use command when you want a quick shell command without having to remember the exact syntax.


javascript or code — JavaScript Code

Generates a JavaScript snippet.

Trigger words: javascript, code

What you sayWhat gets typed
"javascript create a function that calculates the factorial"function factorial(n) { return n <= 1 ? 1 : n * factorial(n-1); }
"javascript if user id exists then log user logged in"if(user.id) { console.log('user logged in'); }
"javascript create variable is active set to true"const isActive = true;
"code fetch data from an API and return JSON"const res = await fetch(url); return await res.json();

typescript — TypeScript Code

Generates TypeScript code with type annotations.

Trigger word: typescript

What you sayWhat gets typed
"typescript create an interface for a user with name and email"interface User { name: string; email: string; }
"typescript function get user by id returning user"function getUserById(id: number): User { ... }
"typescript define an enum for user roles"enum UserRole { Admin, User, Guest }

python — Python Code

Generates Python code.

Trigger word: python

What you sayWhat gets typed
"python print hello world"print('hello world')
"python create a function to calculate fibonacci"def fibonacci(n): ...
"python if user id exists print user logged in"if user.id:\n print('user logged in')
"python read a JSON file and parse it"import json\nwith open('file.json') as f:\n data = json.load(f)

hotkeys — Simulate Keyboard Shortcuts

Tells SpokenCode to physically press a keyboard shortcut on the currently focused window. Nothing is typed — the key combination is actually pressed.

Trigger words: hotkeys, keyboard shortcut, shortcut, press, pressing

What you sayWhat happens
"hotkeys control shift f"Presses Ctrl + Shift + F (e.g. global search in VS Code)
"press control z"Presses Ctrl + Z (undo)
"shortcut control s"Presses Ctrl + S (save)
"hotkeys alt tab"Presses Alt + Tab (switch window)
note

Context capture is not available for the hotkeys keyword — it is the only keyword that cannot use selected text as context.

warning

Say key names clearly and spell them out. For example: "control", "shift", "alt", "tab", "escape", "enter".


translate — Text Translation

Translates a word or phrase to another language.

Trigger word: translate

What you sayWhat gets typed
"translate cat to German"Katze
"translate good morning to French"Bonjour
"translate I love programming to Spanish"Me encanta programar

help — General AI Assistant

Asks the AI a free-form question. The answer is typed directly into your focused application.

Trigger words: help, help me, assistance, question

What you sayWhat gets typed
"help what is the height of the Eiffel Tower?""The Eiffel Tower is approximately 330 meters (1,083 feet) tall."
"help me explain what a closure is in JavaScript"A plain-English explanation of closures
"question what does the HTTP 429 status code mean""HTTP 429 Too Many Requests means..."
tip

Use this as a quick inline assistant — ask a question while coding and get the answer typed right where your cursor is.


Tips & Rules

  • The keyword must be at the start of your sentence — saying "I need a javascript function" will not trigger the JavaScript keyword

Keywords by Language

Voice command keywords change based on your Interface Language setting in Settings. If you speak Portuguese or Spanish, make sure to set the matching language so the correct keywords are recognized.

EnglishPortuguese (pt-BR)Spanish
commandcomandocomando
javascriptjavascriptjavascript
typescripttypescripttypescript
pythonpythonpython
hotkeysatalhosatajos
translatetraduzirtraducir
helpajudaayuda