You are Unregistered, please register to gain Full access.    

Go Back   SiNfuL iPhone > Discussion | Help > How-To: Guides / Tutorials > Misc

Notices

Misc Guides that are NOT device specific OR are related to all devices in general.
Thread Description:This is a Siri like Server for Spire , no 4S keys need

Reply
Thread Tools

 Setting up Siri Server on Windows (no need for 4S keys)
Unread 02-17-2012, 06:46 PM   #1
grogtgs
Jailbroken
 
grogtgs is offline
Join Date: Apr 2011
Device: iPhone 2G
iOS Version: 3.1.3
iTunes Version: iTunes 10
Carrier: Rogers
OS: Windows 7
Location: Confusion
Posts: 72
Thanks: 7
Thanked 26 Times in 8 Posts
Icon7 Setting up Siri Server on Windows (no need for 4S keys)

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!
  Reply With Quote
The Following 9 Users Say Thank You to grogtgs For This Useful Post:
cryzeo (04-06-2012), gia1 (04-29-2012), JokersBrand (02-28-2012), keeyo (02-28-2012), nostra.damus (06-02-2012), omford (05-09-2012), pepsih (04-25-2012), pkates (02-28-2012), rico4u2day2 (02-28-2012)

 
Unread 02-28-2012, 06:05 AM   #2
pkates
iPhoneaholic
 
pkates is offline
Join Date: Sep 2010
Device: iPhone 5
iOS Version: 6.1.2
iTunes Version: iTunes 11
Carrier: Vodafone
OS: Mac OS X
Location: Spain
Posts: 149
Thanks: 58
Thanked 52 Times in 31 Posts
Might try this - have it running in an Ubuntu VM at the moment - works over 3G with port forwarding setup at the router.
  Reply With Quote
The Following User Says Thank You to pkates For This Useful Post:
pepsih (04-25-2012)

 
Unread 02-28-2012, 06:35 AM   #3
vinit009
n00b
 
vinit009 is offline
Join Date: Feb 2012
Device: iPhone 4
iOS Version: 5.0.1
iTunes Version: iTunes 10
Carrier: Other
OS: Windows 7
Location: mumbai
Posts: 5
Thanks: 0
Thanked 2 Times in 2 Posts
i did everything but still when i say "hello siri" she replies "i don't understand what is hello siri" and a web-search option comes below
any thing i say he replies i don't understand ((
please help!!!
  Reply With Quote
The Following User Says Thank You to vinit009 For This Useful Post:
pepsih (04-25-2012)

 
Unread 02-28-2012, 06:40 AM   #4
pkates
iPhoneaholic
 
pkates is offline
Join Date: Sep 2010
Device: iPhone 5
iOS Version: 6.1.2
iTunes Version: iTunes 11
Carrier: Vodafone
OS: Mac OS X
Location: Spain
Posts: 149
Thanks: 58
Thanked 52 Times in 31 Posts
Make sure you have language for siri set to EN-US not GB
  Reply With Quote
The Following User Says Thank You to pkates For This Useful Post:
pepsih (04-25-2012)

 
Unread 02-28-2012, 06:45 AM   #5
LiveWire195
Banned because I'm a TOOL!!!

 
LiveWire195 is offline
Join Date: Feb 2011
Device: iPhone 4S
iOS Version: 5.1
iTunes Version: iTunes 10
Carrier: AT&T
OS: Windows 7
Location: New Jersey
Posts: 1,383
Thanks: 580
Thanked 1,140 Times in 514 Posts
The difference between this and our server.

Three techs that are advanced with programming, and a pleathera of commands.
As well as added commands to simluate the real siri soon enough.

And the ridiculousness amount of bandwidth we have.
  Reply With Quote
The Following 3 Users Say Thank You to LiveWire195 For This Useful Post:
cableman (02-28-2012), pepsih (04-25-2012), Radeon30 (04-24-2012)

 
Unread 02-28-2012, 06:50 AM   #6
pkates
iPhoneaholic
 
pkates is offline
Join Date: Sep 2010
Device: iPhone 5
iOS Version: 6.1.2
iTunes Version: iTunes 11
Carrier: Vodafone
OS: Mac OS X
Location: Spain
Posts: 149
Thanks: 58
Thanked 52 Times in 31 Posts
Looks like a great server you have there LiveWire.

Is banner advertising now allowed on our signatures??
  Reply With Quote
The Following User Says Thank You to pkates For This Useful Post:
pepsih (04-25-2012)

 
Unread 02-28-2012, 06:58 AM   #7
vinit009
n00b
 
vinit009 is offline
Join Date: Feb 2012
Device: iPhone 4
iOS Version: 5.0.1
iTunes Version: iTunes 10
Carrier: Other
OS: Windows 7
Location: mumbai
Posts: 5
Thanks: 0
Thanked 2 Times in 2 Posts
i set the language to en-us
still that lady keeps telling
"i don't understand hi siri:
  Reply With Quote
The Following User Says Thank You to vinit009 For This Useful Post:
pepsih (04-25-2012)

 
Unread 02-28-2012, 10:53 AM   #8
grogtgs
Jailbroken
 
grogtgs is offline
Join Date: Apr 2011
Device: iPhone 2G
iOS Version: 3.1.3
iTunes Version: iTunes 10
Carrier: Rogers
OS: Windows 7
Location: Confusion
Posts: 72
Thanks: 7
Thanked 26 Times in 8 Posts
Try some of the other commands.
If you look at the Cygwin Terminal, whenever you talk, the words are output on the terminal. Check to see if the words are understood there
  Reply With Quote
The Following User Says Thank You to grogtgs For This Useful Post:
pepsih (04-25-2012)

 
Unread 02-28-2012, 11:26 AM   #9
JokersBrand
n00b
 
JokersBrand's Avatar
 
JokersBrand is offline
Join Date: Nov 2010
Device: iPhone 5
iOS Version: 7.0
iTunes Version: iTunes 11
Carrier: Other
OS: Windows 7 x64
Location: Rousse, Bulgaria
Posts: 21
Thanks: 33
Thanked 29 Times in 14 Posts
Connection failure here. When i start the server an error occures :
socket.error: [Errno 112] Address already in use
The spire adress I should type in is https://XXX.XXX.XXX.XXX/ right? I did everything above. Maybe it's cause of my internet connection which is cable PPPoE if it rings any bells... If someone can help it would be much appreciated!

Edit:
I checked my firewall also, and I even allowed port 443 manually, but still... Maybe I'm missing something..

Last edited by JokersBrand; 02-28-2012 at 12:13 PM.
  Reply With Quote
The Following User Says Thank You to JokersBrand For This Useful Post:
pepsih (04-25-2012)

 
Unread 02-28-2012, 12:01 PM   #10
grogtgs
Jailbroken
 
grogtgs is offline
Join Date: Apr 2011
Device: iPhone 2G
iOS Version: 3.1.3
iTunes Version: iTunes 10
Carrier: Rogers
OS: Windows 7
Location: Confusion
Posts: 72
Thanks: 7
Thanked 26 Times in 8 Posts
The address you type on your iphone is the ip address of your computer that is running the server.
  Reply With Quote
The Following User Says Thank You to grogtgs For This Useful Post:
pepsih (04-25-2012)

 
Unread 02-28-2012, 12:25 PM   #11
JokersBrand
n00b
 
JokersBrand's Avatar
 
JokersBrand is offline
Join Date: Nov 2010
Device: iPhone 5
iOS Version: 7.0
iTunes Version: iTunes 11
Carrier: Other
OS: Windows 7 x64
Location: Rousse, Bulgaria
Posts: 21
Thanks: 33
Thanked 29 Times in 14 Posts
I know it's the ip. I've searched google about the error i got and it's because another process has already bound to the specified port. It says that on Unix you can find that process with sudo netstat -ltpnOn, I wonder which is for windows? It says also that I can choose a different port, but I'm not sure it's possible?
  Reply With Quote
The Following User Says Thank You to JokersBrand For This Useful Post:
pepsih (04-25-2012)

 
Unread 02-28-2012, 01:52 PM   #12
GorgonSin
Obsessive iPhone Disorder
 
GorgonSin's Avatar
 
GorgonSin is offline
Join Date: Oct 2010
Device: iPhone 5
iOS Version: 7.0
iTunes Version: iTunes 11
Carrier: AT&T
OS: Mac OS X
Location: USA/UK
Posts: 4,112
Thanks: 3,080
Thanked 790 Times in 598 Posts
"its not siri"... pass...


13 " MacBook Pro Retina - OSX Mavericks - i5 8 gigs ram , 256GB SSD
iPhone5 16Gig - iOS 7.0.4 (Jailbroken)
iPad Mini Retina 16Gig - iOS 7.0.4 (Jailbroken)
iPod Touch 5G 32Gig - iOS 7.1.1 (NOT Jailbroken)
  Reply With Quote

 
Unread 02-28-2012, 03:14 PM   #13
vinit009
n00b
 
vinit009 is offline
Join Date: Feb 2012
Device: iPhone 4
iOS Version: 5.0.1
iTunes Version: iTunes 10
Carrier: Other
OS: Windows 7
Location: mumbai
Posts: 5
Thanks: 0
Thanked 2 Times in 2 Posts
i saw in cygwin terminal and it recognizes right thing....
it worked on my ipod touch 4g
but not working on iphone 4 T_T
any idea to solve?
  Reply With Quote

 
Unread 02-28-2012, 06:51 PM   #14
grogtgs
Jailbroken
 
grogtgs is offline
Join Date: Apr 2011
Device: iPhone 2G
iOS Version: 3.1.3
iTunes Version: iTunes 10
Carrier: Rogers
OS: Windows 7
Location: Confusion
Posts: 72
Thanks: 7
Thanked 26 Times in 8 Posts
You can change the port like this:
Code:
 python siriServer.py   -p1200
this will make the server listen on port 1200

the default port is 443
  Reply With Quote
The Following User Says Thank You to grogtgs For This Useful Post:
JokersBrand (02-28-2012)

 
Unread 02-28-2012, 06:58 PM   #15
nickel nick
n00b
 
nickel nick's Avatar
 
nickel nick is offline
Join Date: Feb 2012
Device: iPhone 4
iOS Version: 5.0.1
iTunes Version: iTunes 10
Carrier: Verizon
OS: Windows 7
Location: ohio
Posts: 7
Thanks: 1
Thanked 1 Time in 1 Post
video tutorial?
  Reply With Quote

 
Unread 02-29-2012, 01:41 AM   #16
vinit009
n00b
 
vinit009 is offline
Join Date: Feb 2012
Device: iPhone 4
iOS Version: 5.0.1
iTunes Version: iTunes 10
Carrier: Other
OS: Windows 7
Location: mumbai
Posts: 5
Thanks: 0
Thanked 2 Times in 2 Posts
now on port 1200
as i say something in cygwin terminal this appears...

INFO process_compressed_data New start of speech received
INFO process_compressed_data Decoding speech packet
INFO process_compressed_data Decoding speech packet
INFO process_compressed_data Decoding speech packet
INFO process_compressed_data Decoding speech packet
INFO process_compressed_data Decoding speech packet
INFO process_compressed_data Decoding speech packet
INFO process_compressed_data Decoding speech packet
INFO process_compressed_data Decoding speech packet
INFO process_compressed_data Decoding speech packet
INFO process_compressed_data Decoding speech packet
INFO process_compressed_data Decoding speech packet
INFO process_compressed_data Decoding speech packet
INFO process_compressed_data End of speech received
INFO process_compressed_data Sending flac to google for recognition
INFO process_compressed_data Unable to find language record for this assistant. Try turning Siri off and then back on.
INFO process_compressed_data New start of speech received
INFO process_compressed_data Decoding speech packet
INFO process_compressed_data Decoding speech packet
INFO process_compressed_data Decoding speech packet


i turn of siri and put on still that error...
please help!
  Reply With Quote

 Works?
Unread 02-29-2012, 03:39 AM   #17
applehuntr117
Apple Assault Huntr
 
applehuntr117's Avatar
 
applehuntr117 is offline
Join Date: Aug 2011
Device: iPod Touch 4
iOS Version: 6.1
iTunes Version: iTunes 11
Carrier: Other
OS: Windows 7 x32
Location: Philipines, Visayas
Posts: 459
Thanks: 99
Thanked 375 Times in 140 Posts
Works?

Dude I tried it on my iPad 2 and it worked! Hence I tried to connect my ipt4 but it gave an error "sorry I can't answer right now" and stuff. So i did the gen_certs step and it worked but now I can't connect my iPad 2 even if i do the same thing! Help me please..
BTW If you are looking for a working siri proxy or server try sirified You may have to pay but they offer a free trial just to prove they aren't scamming you.


Promise me, if you see any button that looks like this: anywhere. Hit it for all of us!
  Reply With Quote

 
Unread 02-29-2012, 07:11 AM   #18
Salahkun
@SalahKun
 
Salahkun's Avatar
 
Salahkun is offline
Join Date: Nov 2011
Device: iPhone 3GS
iOS Version: 5.1.1
iTunes Version: iTunes 10
Carrier: Vodafone
OS: Windows 7
Location: Japan
Posts: 79
Thanks: 584
Thanked 11 Times in 11 Posts
get Sara is free and better ...

The Mana World Player Since 2005
  Reply With Quote

 
Unread 02-29-2012, 08:15 AM   #19
vinit009
n00b
 
vinit009 is offline
Join Date: Feb 2012
Device: iPhone 4
iOS Version: 5.0.1
iTunes Version: iTunes 10
Carrier: Other
OS: Windows 7
Location: mumbai
Posts: 5
Thanks: 0
Thanked 2 Times in 2 Posts
I restored my iphone and now its working
Thankyou for all the help
Only one question now
Where can i get reminder plugin??
  Reply With Quote

 
Unread 02-29-2012, 02:14 PM   #20
grogtgs
Jailbroken
 
grogtgs is offline
Join Date: Apr 2011
Device: iPhone 2G
iOS Version: 3.1.3
iTunes Version: iTunes 10
Carrier: Rogers
OS: Windows 7
Location: Confusion
Posts: 72
Thanks: 7
Thanked 26 Times in 8 Posts
The guy who started the siriServer (where you downloaded the files) is working on the reminders plugin and more. There are lots of plugins and many people working on plugins.
  Reply With Quote
Reply

Tags
4s key, server, siri

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On




All times are GMT -7. The time now is 03:20 AM.

Copyright 2009 (SiNfulSS)- Shot Caller @ SiNfuL iPhone