macOS Terminal - say

Опубликовано: 01 Апрель 2026
на канале: Jbyte
346
1

Today we talk about say command in a macOS Terminal.

Commands used:

say hello

say Hi, my name is pytugu.

say
This is great
I love my voice
Or not

CTRL + C to leave

say -v ?

say -v Jester please, please, stop tickling me.

Bash script quiz.sh:

#!/bin/bash

quiz() {
echo "...Starting quiz..."
echo "What is my favourite color?"
read response
if [[ "$response" == red ]]
then
echo "You are absolutely right!"
say "You are absolutely right!"
else
echo "You are absolutely wrong."
say -v Jester "You are absolutely wrong"
fi
}

quiz

sh quiz.sh

say -v Jester Seeeeeeee yooooooou.