How to dictate a single ampersand for bitwise AND and references
Say “ampersand” to produce a single & spaced on both sides, so “flags ampersand mask” assembles as flags & mask. Saying it twice does not give you the logical operator: “ampersand ampersand” returns two spaced ampersands, and the && form needs its own phrase.
An eight-word bitmask test takes about 9.2 seconds on a keyboard and about 2.9 seconds aloud. (sources: Dhakal, Feit, Kristensson & Oulasvirta, “Observations on Typing from 136 Million Keystrokes”, CHI 2018, 168,000 participants, 136 million keystrokes; Yuan, Liberman & Cieri, “Towards an Integrated Understanding of Speaking Rate in Conversation”, Interspeech 2006, 2,438 American English telephone conversations (Switchboard corpus). The speech figure is conversational rate, not a measured dictation rate — no such measurement exists.)
if permissionBits & writeFlag {This tool runs entirely in your browser. Nothing you type is sent anywhere, stored, or logged.
Step by step
- 1
Say “ampersand” once for the bitwise operator
Speak the operands with the phrase between them. The character attaches on neither side, so the mask test comes out spaced like formatted source.
- 2
Say “double ampersand” for the logical operator
Use the dedicated phrase rather than repeating this one. Two consecutive VoiceGem lookups produce & & with a space between them, which is not the logical-and operator.
- 3
Reuse it for a Rust reference
Say “ampersand” before the type in a borrow. Expect a space after it, because the entry is spaced for the binary operator rather than for the prefix.
- 4
The keyboard route
Press Shift-7. It is a straightforward chord and, for a single character, quicker than three syllables.
Repeating a phrase does not build a doubled operator in VoiceGem
Each phrase is looked up independently and each result carries its own spacing, so saying a symbol twice gives two spaced characters rather than the doubled operator. “Ampersand ampersand” returns & &, “pipe pipe” returns | |, and “plus plus” returns + +.
Knowing the rule once covers every case. The Deterministic Pass has separate entries for the doubled operators that matter — double ampersand, double pipe, double equals, double colon — and repeating the single phrase never reaches them, because lookup happens per token rather than over a sequence.
Where the manual way breaks
Shift-7 is one chord and a single ampersand is not a dictation problem. The keyboard wins on the character.
Permission-bit tests are the line worth speaking. A mask check names two long constants and puts one operator between them, and the constants are the expensive part to type. Dictating it in VoiceGem builds both identifiers from casing commands and places the operator in the same pass.
Doing this somewhere else? the speech-to-code converter on this site, how the logical AND operator works, the logical OR operator, or what changes for the exclamation mark.
Common questions
Say “double ampersand” or “logical and”. Repeating the single phrase gives you two spaced ampersands instead, because each token is looked up independently.
Yes, with a space after the ampersand. The entry is spaced for the binary operator, so a reference type needs the gap closed afterwards.
No. The single ampersand is one of twelve characters in VoiceGem's table reached by exactly one spoken phrase.
Try saying a symbol twice and see what actually comes back.
Open the tool