using shell to select a voice

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

using shell to select a voice

Post by scotttyang »

Been using the shell "say" to text-to-speech for Spanish. Some very beautiful new voices on the Mac Mountain lion.
Right now I have to preset the voice to eg. Paulina.

get shell("say" && "¿Cómo?")

works well

Is there a shell command way to change to voice to eg. Pablo or Javier as revSpeak doesn't work for languages with accents or upside down question marks?!

scott
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: using shell to select a voice

Post by Klaus »

Hi Scotty,

1 minute Google showed me this:
http://www.gabrielserafini.com/blog/200 ... y-command/
Basically its:
say -v Pablo "something spanish..."

And there is always the terminal: man say 8)


Best

Klaus
scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

Re: using shell to select a voice

Post by scotttyang »

works good!

get shell("say -v Paulina" && "hola")
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: using shell to select a voice

Post by Klaus »

Sure it does, muchacho! :D
Post Reply