Hardware Reference
In-Depth Information
Note that the iOS portion of the route is still obligatory as the guzzoni server will only talk to the authenticated
iOS devices. The proxy manages it by regenerating it from your original iOS device ID (UDID).
Traditionally, you will only be able to run the SiriProxy from within your local network, as you wouldn't want
random strangers connecting to an exposed port on your router. It is possible, however, to use a VPN to connect to
your internal network, although that scope is beyond our space here.
For this to work you need the software at https://github.com/plamoni/SiriProxy
There is an install script and videos available, with the processes listed at https://gist.github.com/plamoni/1428474
Given how new the software is, I can only recommend you use the up-to-date instructions and bug fixes listed in
that gist file.
Writing a Plug-In
Given that the proxy is written in Ruby, it makes sense that the plug-ins are also. Because there is virtually no code
involved, it isn't difficult to do. And there is nothing to stop your from calling out to another shell script.
require 'cora'
require 'siri_objects'
require 'pp'
class SiriProxy::Plugin::ControlLights < SiriProxy::Plugin
def initialize(config)
# standard initialization
end
listen_for /computer light (on|off)/i do |light_state|
state = `homedevice default #{light_state} bedroom_light`
say state
request_completed
end
end
There is additional functionality provided by the library, such as a basic state system, so you and detect whether
the word “next” references the next piece of music or the next news item. You can also provide visual feedback, such
as for the weather, by adding content through SiriAddViews, and send_object, and a model “ask” command so you
can get clarification on the most recent command.
N
Note
Once you have created your own plugin, don't forget to add it to the config.yml file.
From Android
The best equivalent to Siri, for Android, is S Voice from Samsung. It works in an identical manner to Siri (using the
Vlingo servers, instead), although in this case it requires a valid Galaxy S III phone ID to connect and make use of the
service. At the time of writing, however, the only hack for this has been voicetalk.apk, which requires a rooted phone,
and consequently this is not recommended.
 
Search WWH ::




Custom Search