Dictate into the tell box
On the signed-in home, where the browser can turn speech into text, the tell box gains a button before Tell: Speak, with a line under the box that says "Speak sends your audio to your browser's maker to turn it into words." before you press it. It lets you say the line instead of typing it.
- How. Press Speak, say the line, press it again (or stop talking). The words fill the box;
you read them, edit them and press Tell yourself. Dictation never sends.
- What it says. A line under the box, read out by screen readers (
role="status"), says
"Listening. Press Speak again to stop.", then "Your words are in the box. Press Tell to send." A refused microphone says "Could not hear you. Check the microphone is allowed."; silence says "Heard nothing. Press Speak to try again."
- Which browsers. Only where the browser has
SpeechRecognition(or thewebkitprefixed
one), such as Chrome and Safari. Elsewhere nothing is added and the page is the one the server drew.
- Audio may leave your device. Most browsers send the audio to their maker's speech service to
turn it into text, so the line under the box says so before the first press, and the button's title repeats it. The visible label stays one word so the box still fits a 390 px phone. The forge itself never receives audio, only the text you send.
- Shape.
src/web/speak.tsbuilds the button and the status line in the tell box
(#tell-box, drawn by tellBox in src/web/studio/living.ts), with existing classes only
(.btn, .small .muted), and limits the text to the box's maxlength. It rides with the
home's script (src/web/pages/home_flow_client.ts). The box is a wrapping .bar, so on a phone
the button wraps to its own line and never pushes Tell off the screen.
- The terminal. It has no speech API, so there is no
src/tui/screen for this; the terminal's
tell is typed.
- Tests:
test/tell-speak.test.ts.