Skip to content

aos say

Speak text aloud with the machine’s built-in voices, shown as a subtitle while it plays

4 commands. Run aos say --help for the same list from the binary, or see every group.

Speak text aloud (or render it to an mp3/wav/aiff); –async returns at once

darwin · windows only

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos say <text...> [--voice=<name>] [--rate=<words per minute>] [--out=<file.mp3|.wav|.aiff>] [--no-subtitle] [--async] [--json] [-- <command...> [--then-wait=false]] [any `subtitle show` style flag: --position --size --color --bg --font --weight --align --max-width --margin --app/--title ...]
flag values meaning
<text...> Required positional argument
<command...> Optional positional argument
--voice <name> Optional
--rate <words per minute> Optional
--out file.mp3, .wav, .aiff Optional
--no-subtitle Optional
--async Optional
--json Optional
-- Optional
--then-wait <false> Optional
--position Optional
--size Optional
--color Optional
--bg Optional
--font Optional
--weight Optional
--align Optional
--max-width Optional
--margin Optional
--app Optional
--title Optional
Terminal window
aos say "Now I open Notepad and type the note" -- aos key type --app=Notepad "hello" # speak AND act, wait for both
aos say "build finished"
aos say "Hello there" --voice=Samantha --rate=190
aos say "welcome to the demo" --out=~/Desktop/welcome.mp3
aos say "now I open the settings" --async # keeps talking while the script goes on
aos say wait
# the text is shown as a subtitle while it is spoken, cleared when it ends; --no-subtitle turns that off
aos say "Saving the report now" --position=top-center --size=L --app=Notepad # caption style: the subtitle show flags
# long text is captioned a sentence (or clause, ~2 lines) at a time, each timed to its own audio

Stop speaking now and drop anything queued

darwin · windows only

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos say stop
Terminal window
aos say stop

List the installed voices

darwin · windows only

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos say voices [--json]
flag values meaning
--json Optional
Terminal window
aos say voices
aos say voices --json

Block until every queued and playing say --async has finished

darwin · windows only

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos say wait [--timeout=<seconds>]
flag values meaning
--timeout <seconds> Optional
Terminal window
aos say wait
aos say wait --timeout=30