This tutorial is how to set up a Siri-like Server on your Windows machine. I am using Windows 7 and it works fine. This Server uses the free Siri-like server created by Eichhoernchen over at
Eichhoernchen/SiriServer - GitHub
This Siri Server doesn't need 4S keys! It has nothing to do with Apple. It uses
Google's text to speech API and uses various APIs to get information. It is not
as powerful as Siri, but it is free.
Here are the list of commands that can be done so far
Call "Contact Name"
What is the weather like?
What's the weather like in "City, State , Country"
set an alarm for HH AM/PM <[word 1] [word 2] [word 3]>
Set timer for ** Hrs/Mins/Secs
Reset timer
Pause Timer
Show Timer
What Time is it
What time is it in "Location, City"
Define "word"
What is the date today?
Ask Wolfram a Question
Ask wolfram questions using:
What is/Who is/Who's/How long/What's/How far/When is/Show me/How high/How deep.
Note: This server setup
is not for
N00bs! If you don't have any patience and want to try it out for free , you can try it out here:
GRWH siriServer - How to Connect
Before starting, you will need to download a few things:
Windows (duh)
internet connection
cygwin - go to cygwin.com - click on the 'setup.exe' link and DO NOT INSTALL yet
APIs
You will need to sign up for a few
FREE APIs to get things working.
Wordnik - go to wordnik.com and sign up for an account first. Then go
to developer.wordnik.com to get the API key. I just said I am using it for a
script on my PC
Wunderground - go to wunderground.com/weather/api/ to get an account and a
free API.
WolfRam | Alpha - go to products.wolframalpha.com/api/ click on sign up to get a free account and API
Note: If you are stuck at these steps. Then this setup is NOT FOR YOU.
On your Iphone you need
Spire.
E-mail set up.
You could also get 'SiriLaunch' in Cydia if you wish.
You will also need this file here.
ez_setup.zip
Download and save it.
Now for the installation of cygwin:
Run setup.exe that you downloaded earlier.
1. Click 'Next'
2. Choose 'Install from Internet'. Click Next
3. Enter the Root Install Directory. Click Next
(Choose whatever you wish. I used C:\Cygwin. Write it down since you
will need to use this information later)
4. Enter the Package Directory. Click Next
( I used C:\Cygwin\Downloads. You can use whatever you wish)
5. Select Direct connection. Click Next
6. Choose a Download Site. Click Next.
7. Select Packages.
DO NOT CLICK NEXT
8. Double Click on the word 'Default' , next to the word 'Python' until it changes
into the word 'Install' like in the picture below
9. Do not click Next. Enter the text 'openssl' in the search box
10. Click on the word 'Default' next to the word 'All' until it says 'Install'
11. Follow step number 9. again. You need to search for and install:
openssl , speex , flac , swig , gcc
12. You will need to install just the
Devel package for the gcc compiler.
(I just installed everything from gcc, you don't have to but you could if you wanted. What matters is that you just have the C compiler)
13. Now click Next. You will be asked to
Resolve Dependencies. Make sure the checkbox for 'Select required packages (RECOMMENDED) is checked. Click Next.
14. Go take a coffee break. This took about 30 minutes for me. It is going to download cygwin, and the other packages and install them.
15. Click on finish. Open 'Cygwin Terminal'
(It should be on the desktop or the start menu)
It uses your windows username as the cygwin username. For example, if my windows username is 'grogtgs' and I installed cywin in C:\cygwin , my
home directory would be c:\cygwin\home\grogtgs
16. In the terminal window, type this command
mkdir SiriServer (press Enter)
(you could also do this using windows explorer)
17. Go to
Eichhoernchen/SiriServer - GitHub Click on the button that
says 'ZIP' near the top to download the files. Unzip these files and put the files in the SiriServer folder
18. Type
cd SiriServer (press Enter)
19. Unzip the file ez_setup.zip to the SiriServer folder also
( If you type 'ls' , you should see the list of your files. These files should be in the SiriServer folder )
Commands to type:
20. ./ez_setup.py (press Enter)
21. easy_install biplist (press Enter )
22. easy_install M2Crypto ( press Enter)
23. easy_install jsonrpclib ( press Enter)
24. easy_install wordnik ( press Enter)
25. cd gen_certs ( press Enter )
26. ./gen_certs.sh XXX.XXX.XXX
(
XXX.XXX.XXX is the ip address of the computer that will be running the server)
27. cd .. ( press Enter )
28. A file called 'ca.pem' should be in the SiriServer folder. E-mail that to your
iphone.
29. When you open the file in your e-mail on your iphone, you should tap on
ca.pem and install the profile
30. You need to go to settings in Spire and add the ip address of your computer.
You should also turn on Siri in the settings. I rebooted my iphone after turning on
Siri.
31. While your phone reboots, you need to edit the file: apiKeys.conf
in the folder SiriServer. You can use notepad
The file looks like this
# this file defines all commonly used api keys for plugins
# you must define a api like this:
# apiName="APIKEY"
wolframalpha = ""
wordnik = ""
wundergrounds = ""
after you are finished, it should look like this:
# this file defines all commonly used api keys for plugins
# you must define a api like this:
# apiName="APIKEY"
wolframalpha = "AOIDFSOI-132WERASD"
wordnik = "c5be46fe31e10b2fb11111600c677f6349b43c3b872e02"
wundergrounds = "15445A865D"
Of course those are not real API keys. You have to use your own. They are Free.
32. Type ./siriServer.py --port 443 (Press enter)
Windows Firewall may pop up but you should allow it access.
It has worked for me. Just press the home button and Start Siri on your iphone.
Remember the commands above that you can ask it. Right now, there is a time
limit on the command. It has to be ten seconds or less. You can also use
text to speech on your keyboard now.
There are always other plug ins being developed. If you know how to program
in Python, you should be able to make one just by looking at the examples in
the plugins folder. Right now, the developer has created plugins that are hard coded in English or in German. You could change the code if you wish to use Spanish or French, I am sure (I might try that myself)
Commands I tried: (using the default plugins)
1. Call John
2. Create note I love my iphone
3. Where am I
4. What is the weather like
5. What time is it
6. define god
7. web search restaurants
8. display a picture of william shakespeare
9. display a picture of steve jobs
10. hello
11. how are you
12. what is your name
13. thank you
14. tell me a joke
15. tell me a story
Press control -C to stop the server from running.
There are people selling access to these servers. You could just try the free one
above, or make your own!