1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/osx/say.md

25 lines
523 B
Markdown
Raw Normal View History

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