Thursday, April 05, 2012

Speaking of Siri, Now You Can Get Her On Your Mac!

How To Get the Siri Voice & Make Her Say Whatever You Want [Mac]


Sent to you by Chris Hunter via Google Reader:


via MakeUseOf by James Bruce on 4/4/12

Whether you're creating audio clips for your own weekly technology podcast, or looking to write your own Siri spoof videos – having the Siri voice on your Mac is awesome. Let me show you how to get the voice, and then how to both make her say whatever you want, and how to record that to file.

Download The Siri Voice

First things first, let's get the real Siri voice, though technically her name is Samantha. Voice recognition and text-to-speech – both of which are built into the core OSX – can all be found in System Preferences -> Voice.

On the text-to-speech tab, you'll see that a voice is already selected – Victoria on mine. Click Play to preview that voice.

As you can tell, this isn't Siri. To get the Siri (Samantha) voice – or even any number of other available voices – click on the System Voice selection box, and choose Customize. Scroll down to English (United States) – Female, and tick Samantha. If you click OK, it'll prompt you to download the required files which are about 300-400MB per voice. I believe Daniel is the official Siri voice of the UK, but I must say the other language voices are quite impressive too, so I took the opportunity to grab Ting Ting and Kyoko too.

Wait for the download to complete, then choose Samantha from the drop down.

Get Her To Say What You Want

The Terminal / Command Line is the easiest way to do this. Find it under Applications -> Utilities -> Terminal. Type in the following command, replacing the text in quotes with whatever you want Siri to say!

say "Master, my name is Siri. I am here to serve your every desire"

Save The Output

To use the synthesised speech in our project, we need to output it to a file. To do this, add the -o switch the command, followed by a file name.

say -o "filenameGoesHere" "Master, my name is Siri"

Note that when you run this, it will not play the voice – only save to the file. It's an .aiff file – and by default, it's going to save in the root of your users' home directory. To save to the desktop, just issue this command first:

cd Desktop

which will change the current directory to the desktop.

A few more tips – if you have a large amount of text you want to read, save it to the same directory as a plain text file, and instead of specifying the text to say, add the -f switch and the filename of your text file, like this:

say -o "outputFile" -f "inputFile"

To change the voice being used without having to go into System Preferences every time, use the -v switch:

say -v "Daniel" "I am Daniel, the voice of iPhone 4S in Britain"

So, how awesome is this? Very, is the response you're looking for I believe. If you enjoyed this, please consider sharing the article using the buttons below. If you have any more tips or would like to show off your Siri project in the comments, then go ahead, I'm looking forward to checking them out. Don't forget to check out all our other Siri related articles too.


Things you can do from here:


No comments:

Post a Comment