Skip to content

Speech to text

Speech to text types what you say into the terminal, at the prompt, as if you had typed it. It never presses Enter: nothing runs until you have read the line and pressed Enter yourself. It needs Squeezed.

The speech is recognized on your device. ZestSSH asks the system for recognition on the device, and never receives the audio.

Device How to start it How long it listens
Android, iPhone and iPad The microphone key in the row of keys above the keyboard Until you pause
Windows and macOS (from 4.0) Speech to text in the Inspector’s Tools, Ctrl+Shift+Space, or Speech to text in the command palette Until you turn it off
A large tablet with the computer’s layout (from 4.0) The microphone key in its row of keys, or Speech to text in the Inspector’s Tools Until you pause
Linux Not available: there is no speech recognizer for ZestSSH to use there

From 4.0, Windows and macOS have speech to text in the terminal. It keeps listening until you turn it off, so you can say one command, pause, read it, and go on.

  1. Open a session to a host and click into its terminal.

  2. Start listening, one of three ways:

    • Press Ctrl+Shift+Space, which works from inside the terminal.
    • Open the Inspector from the session header, go to its Tools tab, and under Speech to text choose Start listening (see In the Inspector).
    • Open the command palette and choose Speech to text.
  3. Speak. Each phrase the recognizer finishes is typed at the prompt, after a space when it follows another one. Pauses and silences do not stop it: where the recognizer ends a listening by itself (a Mac’s does after a pause), ZestSSH starts the next one at once.

  4. Stop it when you are done:

    • Click the lit microphone in the session header, press Ctrl+Shift+Space again, or choose Stop listening in the Inspector.
    • Press Esc, from inside the terminal too. That one Esc stops speech to text and does not reach the terminal; the next one does.
    • It also stops by itself when its session ends, or when its session’s tab is no longer the tab in front.

    What the recognizer still had of what you were saying as you stopped is typed too.

  5. Read the line, change it if you need to, and press Enter.

What is heard is typed into the terminal you were typing in, or else the session in front. Inside tmux, it goes to the pane in front. A remote screen or a files-only session has no prompt, so it is not offered there.

It listens for one session at a time. While it listens, a lit microphone shows in the session header, beside Broadcast; click it to stop, or use the key or the Inspector.

Change the key in Settings > Keyboard and mouse, under Keyboard shortcuts, where it is listed as Speech to text with the other Terminal keys. On Linux it is not listed, and Ctrl+Shift+Space stays the terminal’s.

A screen reader hears “Speech to text is listening” and “Speech to text stopped”, whatever started or stopped it. The microphone is a toggle button, reached with Tab and pressed with Enter or Space.

The Inspector (in the session header) has a Tools tab, and on Windows, macOS and a large tablet its first part is Speech to text, for a session with a prompt:

  • Listening or Off, and the button Start listening or Stop listening. Its tooltip names the key.
  • Before you start: “What you say is typed at this session’s prompt. Nothing runs until you press Enter.”
  • While it listens: “Say something”, then Hearing: with what the recognizer is making out (in italics, as it can still change), then Typed: with what it typed last. A screen reader hears this line as it changes.
  • While it listens for another session: “Listening for another session”. The button stops it.
  • The language it listens in, for example “Language: English (United States)”, or “Language: the one set for speech on this computer” until the computer has named it.
  • “Recognised on this computer only: no sound is sent to any speech service.”
  • Windows listens in the language of Windows’ speech recognition, set in Windows Settings under Time and language.
  • macOS listens in your first preferred language, or in the recognizer’s own where that one cannot be used.

ZestSSH says why, and where that is changed:

  • Windows: “Speech to text is not available here. It needs a microphone and Windows’ speech recognition for your language (in Windows Settings, under Time and language).”
  • macOS: “Speech to text is not available here. Allow ZestSSH the microphone and speech recognition in System Settings, under Privacy and Security, and check that Dictation is set up for your language.” The first time, macOS asks whether ZestSSH may use the microphone and speech recognition.
  • With no terminal open: “Open a terminal to type into it by voice”.

If the recognizer can no longer listen while speech to text is on (the microphone is unplugged, or the permission is taken away), or keeps ending each listening as soon as it starts, speech to text stops and says why, once, with the same message.

A Mac that cannot recognize speech on the device does not send it elsewhere: speech to text is then not available.

  1. In a session, tap the microphone key in the row of keys above the keyboard.
  2. Speak. When you stop, what was heard is typed at the prompt, and listening ends.
  3. Press Enter to run it.

The microphone key always stays in the row, even when you customize it (see Keyboard).

A large tablet that shows the computer’s layout (from 4.0) has the microphone key in its row of keys, and the Inspector’s Speech to text too. It listens as a phone does: until you pause.

On Android 11 and later, ZestSSH 4.0 finds the phone’s speech recognizer, where earlier versions could miss it.

  • No Enter, ever. Speech is typed, not run.
  • No control characters. Anything in what was heard that is not plain text, a line break included, is taken out before it reaches the shell.
  • On the device. Recognition is asked for on the device; ZestSSH never receives or keeps the audio.

Speech to text needs Squeezed, on every device. Without it, the microphone, its key, the Inspector’s Start listening and the palette entry ask whether you want to upgrade. See Plans and limits.