tldr/pages/osx/say.md

25 lines
488 B
Markdown
Raw Normal View History

# say
2016-01-28 22:33:21 +00:00
> Converts text to speech.
> More information: <https://ss64.com/osx/say.html>.
2016-02-12 23:05:17 +00:00
- Say a phrase aloud:
`say "{{I like to ride my bike.}}"`
2016-02-12 23:05:17 +00:00
- Read a file aloud:
2016-01-28 22:36:22 +00:00
`say -f {{filename.txt}}`
2016-02-12 23:05:17 +00:00
- Say a phrase with a custom voice and speech rate:
2014-02-17 16:16:23 +00:00
`say -v {{voice}} -r {{words_per_minute}} "{{I'm sorry Dave, I can't let you do that.}}"`
- List the available voices:
2020-04-25 13:08:12 +01:00
`say -v "?"`
2016-01-28 22:33:21 +00:00
- Create an audio file of the spoken text:
`say -o {{filename.aiff}} "{{Here's to the Crazy Ones.}}"`