Skip to main content

speech

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

What the screen reader says — VoiceOver on a real iPhone (iOS 27, a runner built by Xcode 27), TalkBack on Android. These call app_speech.

speech​

speech(options?: { target?: string; walk?: boolean; limit?: number; listen?: 'start' | 'stop' }): Promise<Data>

What the screen reader says; walk moves through the screen in its order.

Examples​

Say what the screen reader says about the element its cursor is on​

const said = await device.speech()
console.log(said.steps)

The same call from the command line, mobium speech, printed on an Android 15 emulator:

TalkBack says: "not checked. Pro. Radio button" — Pro (radio)

Walk the screen in the screen reader's order, each sentence beside its element​

const walk = await device.speech({ walk: true, limit: 20 })
console.log(walk.steps, walk.ended)

The same call from the command line, mobium speech --walk --limit 20, printed on an Android 15 emulator:

TalkBack says:
1. "not checked. Team. Radio button" — Team (radio)
2. "OFF. Dark mode. Switch" — Dark mode (switch)
3. "Dark mode, for the whole app" — Dark mode, for the whole app, not in map
4. "Read-only" — Read-only, not in map
5. "This field cannot be edited. Edit box. disabled"
6. "notify=false terms=false plan=free theme=light" — notify=false terms=false plan=free theme=light, not in map
7. (nothing)
8. "Back. Button" — Back (button)
9. "Form" — Form, not in map
10. "not checked. Email me. Check box" — Email me (checkbox)
11. "not checked. Accept terms. Check box" — Accept terms (checkbox)
12. "checked. Free. Radio button" — Free (radio)
13. "not checked. Pro. Radio button" — Pro (radio)
ended: the cursor came back round to the first element

Put the screen reader's cursor on an element, and hear what it says​

const said = await device.speech({ target: 'label=Pro' })
console.log(said.steps)

The same call from the command line, mobium speech label=Pro, printed on an Android 15 emulator:

TalkBack says: "not checked. Pro. Radio button" — Pro (radio)

mobium speech label=Pro on an Android 15 emulator

mobium speech label=Pro on an Android 15 emulator

Start listening to the screen reader, before an action​

await device.speech({ listen: 'start' })
await device.tap('testid=addLive')

The same call from the command line, mobium speech --listen start, printed on an Android 15 emulator:

listening to TalkBack — act, then stop it with listen stop

Stop listening, and hear what the action made it say​

const heard = await device.speech({ listen: 'stop' })
console.log(heard.steps)

The same call from the command line, mobium speech --listen stop, printed on an Android 15 emulator:

TalkBack said, since listening started: "Live cart: 1" — Live cart: 1, not in map [a change on screen]