macOS Terminal - say

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024
  • 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.

ความคิดเห็น •