2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-11 01:10:31 +00:00
cheat.sheets/sheets/say
2018-07-20 11:19:28 -04:00

24 lines
533 B
Plaintext

# say
#
# Converts text to speech.
# Say a phrase aloud:
say "I like to ride my bike."
# Read a file aloud:
say -f filename.txt
# Say a phrase with a custom voice and speech rate:
say -v voice -r words_per_minute "I'm sorry Dave, I can't let you do that."
# List the available voices:
say -v ?
# Hear the available voices
say -v ? | awk '{ print $1 }' | while read v; do echo "$v is speaking..."; say -v $v "Hi, my name is $v"; done
# Create an audio file of the spoken text:
say -o filename.aiff "Here's to the Crazy Ones."