Two Ways to do Text to Speech on a Mac

Speak Text
say "This is a test"
Speak Text in the Clipboard
pbpaste | say
Speak Text in the Clipboard using Voice “Samantha”
pbpaste | say -v Samantha
List All Voices
say -v ?
Highlight Text while Speaking
pbpaste | say -v Samantha -i
Slow Down Speech Rate
say -i -r 60 "This is a text"
Speed Up Speech Rate
say -i -r 360 "This is a text"
Speak Text in File
say -i -r 360 -f Declaration.txt
Save Spoken Audio to File
say -r 360 -f Declaration.txt -o declaration.aiff

Leave a comment

Your email address will not be published. Required fields are marked *