-
Notifications
You must be signed in to change notification settings - Fork 344
some words / combination of words result in "spinning" #566
Comments
Try using |
Also try commenting out your |
Thank you for the quick reply! This is my console output:
This is the server output:
first command > no speaking shouldn't both function the same? i am confused... |
Also try moving the
UPDATE: Fixed close bracket |
Here is the testing plugin: require 'cora'
require 'siri_objects'
require 'pp'
class SiriProxy::Plugin::First < SiriProxy::Plugin
listen_for /wohnzimmer einschalten/i do
say "Licht im Wohnzimmer wurde eingeschaltet!"
Thread.new {
system("~/raspberry-remote/./send 11111 1 1")
system("~/raspberry-remote/./send 11111 4 1")
request_completed
}
end
listen_for /wohnzimmer ausschalten/i do
say "Licht im Wohnzimmer wurde ausgeschaltet!"
Thread.new {
system("~/raspberry-remote/./send 11111 1 0")
system("~/raspberry-remote/./send 11111 4 0")
request_completed
}
end
end Console Output (shortend): [Info - Server] Starting SiriProxy on 0.0.0.0:443... The system commands are executed well (like before) but the first command still results in spinning and Siri remains mute. |
I made a typo in my post, which I corrected. Change the close bracket |
I noticed that too and corrected it before launching |
Here is the simplest plugin I have that works. https://github.com/elvisimprsntr/siriproxy-rpi/blob/master/lib/siriproxy-rpi.rb The only differences I see are the |
i cant get your plugin to work. it tries to speak and then crash.
But theoretically speaking there is no obvious reason why my simple test plugin, that i had posted above, isnt working the way it should? |
Did you install my plugin following my instructions? Or simply paste my code into yours? |
I followed the instructions, Siri does not recognize my english, i used the console and i got the right output. -> just fine
The strange thing: while i retried the instructions over and over again it worked once! i am quite sure that i did the same steps before. but i cant get it working again :( I think i somehow messed up my pi. I try reinstalling the image and setting up the proxy again. |
Someone else reported the same message with my plugin, but never reported back what they did to resolve it. |
Someone suggested the follow for a different repo: netpro2k/SiriProxy-Twitter#2 Hopefully that will get my plugin working, but still does't resolve the original problem with yours. |
Yes i found that, too. Its too bad this never got resolved. I reinstalled the image and followed the instructions at http://sourceforge.net/p/siriproxyrpi/wiki/Home/ . My plugin still crashes, i didnt tested yours. As i asked before, is there any obvious reason why my test plugin isnt running? Because i am quite unsure with this stuff ;) . I think i tinker around with your plugin some more. |
I thought your plugin was just not getting siri to speak for one of your commands. Now it is crashing? |
Excuse me. I did not crash, it is not speaking. |
Maybe this could help to specifiy the problem: I tried to implement the I speak -> Siri gets the command (it says so in the logs) -> not speaking -> i cancle the request (pressing the spinning thingy) -> i try a diffrent command -> Siri interprets this as my answer to the question she should have asked before (and is speaking). So for some reason Siri is stuck in the |
I have seen that behavior. If you cancel an ask request, siriproxy will resume at the same place when you invoke siri again. That is a different issue with siriproxy itself. My recollection is that if you dismiss siri on your device and invoke again it will exit the ask request. Back to your original issue.... I know some Ruby files are very indentation dependent. For example, in the siriproxy config.yml file, the plugin entry lines need to be in very specific columns. I have also seen difficult to diagnose behavior when testing my plugins if I forget an |
For some reason your plugin is working again after i deleted and reinstalled it (as stated above) once again. Siri is talking with my modified I changed the Question is: What was causing this error? You think i am on to something or it is just some random mess? |
How are you editing/installing your files on your RPi? Using Windows and copying them over, or editing them directly on the RPi using something like nano? |
Most of the times i use nano. What should i use or what should i especially avoid? |
The reason I ask is Windows text files require an extra CR-LF at the end of each line, which Linux doesn't require. Some Linux applications will throw errors if the extra characters are in the file. If you create the files directly in a Linux environment, then it will not be an issue. If you create files in a Windows environment and transfer them, the extra characters will be included depending what method you use to transfer the files. http://www.editpadpro.com/tricklinebreak.html If you created them all in the Linux environment, then it must be some other issue causing your plugin not to work as expected. What exactly, I don't know, but glad you got it working. P.S. Thanks for the $ |
HA! Got the error right here: talking:
non-talking
I can switch back and forth and edit this 10 times and the result is the same every time. It depends on the //edit |
Siri does not like the german word "einschalten". I tested some commands that i did not specify in my plugin.
(funfact: schnuckelputz means something like "sweetheart") Even a whole sentence with the word "einschalten" results in spinning. This is weird! |
I have read threads of others having issues with SiriProxy and German, but don't recall if there was a solution or what the root cause was. |
I will investigate a bit more. For now i just stay away from the "bad word" Maybe this should be pointed out somewhere? Thanks again! |
I am using the pre-installed image on my raspberry. The example is working fine. After tinkering around i got my own plugin up and running.
Now the weird part: Siri is only responding to some of my commands. I tried to rewrite my code several times with no succes. Even implementing some of my code into the example isnt working. I guess my formation or style of the code is messed up but i cant see why. I used nano, writing on my windows machine and ftp it to the pi and even "drag and drop" via putty.
For example (just a snippet):
Siri will only speak the first listen_for command. The console output of both commands are identical and Siri is recognizing both. The second one results in spinning.
The text was updated successfully, but these errors were encountered: