Programming naming conventions are one of the biggest barriers to voice coding. Standard dictation tools have no concept of camelCase, snake_case, or CONSTANT_CASE. They just produce space-separated words with default capitalization.
Whisperer's Code Mode solves this with simple voice commands.
The Casing Commands#
Code Mode recognizes four casing commands. Say the command followed by the words you want converted:
camelCase#
“"camel case get user profile"”
getUserProfileThe first word is lowercase, subsequent words are capitalized, no spaces.
snake_case#
“"snake case get user profile"”
get_user_profileAll lowercase, separated by underscores.
PascalCase#
“"pascal case user service"”
UserServiceEach word capitalized, no spaces. Used for class names in most languages.
CONSTANT_CASE#
“"constant case max retry count"”
MAX_RETRY_COUNTAll uppercase, separated by underscores. Used for constants.
Real-World Examples#
JavaScript / TypeScript#
“"const camel case is loading equals false semicolon"”
const isLoading = false;“"function camel case handle submit open paren event colon pascal case form event close paren"”
function handleSubmit(event: FormEvent)Python#
“"def snake case calculate total price open paren items colon list comma tax rate colon float close paren arrow float colon"”
def calculate_total_price(items: list, tax_rate: float) -> float:Combining Casing with Symbols#
“"if camel case is valid open paren camel case user input close paren open brace"”
if isValid(userInput) {“"self dot snake case api client dot snake case send request open paren url close paren"”
self.api_client.send_request(url)Tips for Natural Flow#
Continuous Application
The casing command applies to the following words until a symbol or new casing command interrupts it.
No Pausing Needed
You don't need to pause between the casing command and the words — speak naturally.
Numbers Work Too
"camel case get user two" produces getUser2.
Personal Dictionary
Add common identifiers you use frequently for even faster recognition.
When to Use Each Convention#
| Convention | When to Use | Languages |
|---|---|---|
| camelCase | Variables, functions | JavaScript, TypeScript, Java |
| snake_case | Variables, functions | Python, Rust, Ruby |
| PascalCase | Classes, types | Most languages |
| CONSTANT_CASE | Constants, env vars | All languages |
Practice Exercise#
Try dictating these common patterns by voice. Within an hour of practice, they become second nature.
“"const camel case fetch user data equals async open paren close paren fat arrow open brace"”
const fetchUserData = async () => {“"def snake case create new account open paren email colon str close paren colon"”
def create_new_account(email: str):“"class pascal case user auth service open brace"”
class UserAuthService {“"constant case max retry attempts equals three"”
MAX_RETRY_ATTEMPTS = 3Related: How to Dictate Code on Mac, Code Mode, Voice Coding Guide, Voice to Text for Developers. See pricing.
Ready to try voice dictation on your Mac?
Free download. No account required. 100% offline.
Download on the Mac App Store