2025-03-14 21:59:59 -06:00
|
|
|
# say
|
|
|
|
|
|
|
|
|
|
> Convert text to speech.
|
|
|
|
|
> More information: <https://keith.github.io/xcode-man-pages/say.1.html>.
|
|
|
|
|
|
|
|
|
|
- Say a phrase aloud:
|
|
|
|
|
|
|
|
|
|
`say "{{I like to ride my bike.}}"`
|
|
|
|
|
|
|
|
|
|
- Read a file aloud:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`say --input-file {{filename.txt}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Say a phrase with a custom voice and speech rate:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`say --voice {{voice}} --rate {{words_per_minute}} "{{I'm sorry Dave, I can't let you do that.}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List the available voices (different voices speak in different languages):
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`say --voice "?"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Say something in Polish:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`say --voice {{Zosia}} "{{Litwo, ojczyzno moja!}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create an audio file of the spoken text:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`say --output-file {{filename.aiff}} "{{Here's to the Crazy Ones.}}"`
|