alotaiba / SiriProxy-Asiri

Let Siri speak your language with Asiri plugin for SiriProxy. Thanks to Google speach recognition service, Asiri can be configured to speak any language that is supported by Google.
Other
29 stars 13 forks source link

change the language #4

Open ebsp opened 12 years ago

ebsp commented 12 years ago

Hi, thanks for your plugin! i can not get it to work with my language (Danish). I have changed the language code in the config.yml file til da-DK. I really dont know if i'm doing it right. I have also made a file called da-DK.rb that listen for speech in my language (Danish).

Am i doing anything wrong? Hope you can help me!

alotaiba commented 12 years ago

Hi,

I'm not sure if Danish is supported by Google speech to text API. Because I can't find it listed on my Android, and Google's App on the iPhone, as a supported language.

Just to confirm that Asiri is working fine, can you make another file, perhaps in Dutch (nl-NL), German (de-DE), or any other language you speak besides Danish? Or you can modify the provided en-US and see if Asiri accepts and translates those changes.

Thanks,

*Edited a typo

ebsp commented 12 years ago

Thank you!

Then do you know where you can find a list of supported languages and their language codes?

alotaiba commented 12 years ago

Hello,

Unfortunately, Google's speech to text API is not documented. So, I don't know if there's such a list that exists. Please tell me if you find one.

In the mean time, I'm trying to document Google's speech to text, and text to speech APIs in these gists: https://gist.github.com/1730160 https://gist.github.com/1728771

So hopefully, I can enhance them by adding the list of supported languages.

reeichert commented 12 years ago

i need pt-br.. how i can change for that?

alotaiba commented 12 years ago

change the langauge in config.yml file to pt-BR, then create a new file in the languages folder called pt-BR.rb. Restart SiriProxy. É isso aí.

reeichert commented 12 years ago

Obrigado! :D thx it's so... simple rrsrs

aerohunter commented 12 years ago

does it work for chinese? does installation instruction work in Mac Os X? because I cant start Speer installation in Mac OS X.

I am a newbie, any help will be appreciated. I do have Siri Proxy running. I am trying out some plug-ins.

Thank you!

alotaiba commented 12 years ago

For speer issues, I'd suggest opening a ticket at speer page. Anyway, please make sure to include the output of ./configure in a separate gist.

I do suspect one thing though, make sure you have installed speex. One way to do it is via MacPorts or Homebrew.

$ brew install speex
aerohunter commented 12 years ago

thank you for the response. You were right, I was looking to install Speex. I got it installed, and speer is working now and Asiri install fine too.. thank you so much. Another question. What am I suppose to put inside the .rb file? can it be blank? I am looking to use it with chinese, zh-tw. but I am getting errors when I start Siri Proxy.

carloswd commented 12 years ago

i try with pt-BR when a talk some word the siri write but no understand, its normally?

francysuri commented 12 years ago

i need to make the server call and show the weather... is there a way to do it? iuse it-IT

alotaiba commented 12 years ago

@francysuri Check issue #5.

@aerohunter Your commands should be in zh-TW.rb file, you can check issue #5.

@carloswd Could you elaborate?

francysuri commented 12 years ago

@alotaiba do i have to put this in it-IT.rb? and then, how do i get the conversion from location to yahoo id? require 'httparty'

response = HTTParty.get("http://weather.yahooapis.com/forecastjson?w=1940517&u=c") puts response["condition"]["text"] puts response["condition"]["temperature"]

francysuri commented 12 years ago

@alotaiba thanks or your gr8 work

alotaiba commented 12 years ago

@francysuri Thanks for your kind words. However, you need to have a basic Ruby experience in order to make such a thing. What I put was just a snippet for you to build upon.

I suggest reading "Learn Ruby The Hard Way" by @zedshaw http://ruby.learncodethehardway.org/ to familiarize yourself more with Ruby.

francysuri commented 12 years ago

ok :( if someone has something ready just post, i'll take the ruby class :(

aerohunter commented 12 years ago

is it possible to use Google API to translate spoken command from "Chinese", or other languages to English, then send the English Command to Apple and get results on iPhone? For Example, I speak in Chinese "今天天氣如何" ("how is the weather today?" in English), then Asiri send the Spoken Chinese command to Google and get English translation back to Apple and iphone display the result.

alotaiba commented 12 years ago

@francysuri It won't do you any good if somebody posted a ready solution. You have to earn it, to be better programmer.

@aerohunter That would require a lot of modification, not to mention I would need access to Google's translation API, which is not free.

It will be easier just to reimplement the commands to suit your needs best. For example, you parse the text and look for clues like "weather" in Chinese, then fetch the results from Yahoo's weather APIs as I explained in issue #5.

carloswd commented 12 years ago

Write correct what I ask, but do not understand or respond.

efimer03 commented 12 years ago

Hi Abdul, I have Siriproxy installed and running several plugins on Ubuntu. But I can't get Asiri working properly. I followed procedure and install speer and ffmpeg(hopefully correct), copied language folder to .siriproxy directory with en-US.rb file(just to test before changing to other language), but when I ask "test siriproxy" in response I get "one moment", "thinking", "be patient" and finally "sorry I can't make this request, please try again". In the terminal I can see "CommandIgnored" after "FinishSpeech" line. Same thing happening with any question or request I make. What am I doing wrong? I'm sure I missed something… Please help!!!

ianhz commented 12 years ago

Hi Abdul!

I have the exact same problem as efimer03...Siri keeps telling those kind of things and at the end it simply says " Ok, I give up". Do we miss something????

Congrats for the awesome project!

efimer03 commented 12 years ago

Hi ianhz, It seems that the problem is with installing ffmpeg. I've manage to resolve this isue with sudo apt-get install ffmpeg after git clon CLONE_URL ffmpeg Hope this will work for you

ianhz commented 12 years ago

Thanks for the tip efimer03, now it's working!!

efimer03 commented 12 years ago

ianhz Glad it work for you too!