Open up the terminal (Applications -- Utilities -- Terminal
) and type:
say hello World!
As you can see this is an extremely easy way to convert text to speech. You can also have the computer say something after completing a command to notify you when the command has been completed.
For example:
ls *.jpg; say finished listing jpeg images
You can also speak the contents of a file by using the -f
switch:
say -f text_file
You can also specify different voices by using the -v
switch:
say -v Rahlph Hi, my name is Donald
There’s a whole list of available voices in the Text to Speech preferences (System Preferences -- Speech -- Text to Speech -- System Voice
).
No comments:
Post a Comment