Back to Browse

macOS Terminal - say

396 views
May 17, 2023
5:56

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.

Download

0 formats

No download links available.

macOS Terminal - say | NatokHD