SiriProxy-Asiri icon indicating copy to clipboard operation
SiriProxy-Asiri copied to clipboard

change the language

Open ebsp opened this issue 13 years ago • 24 comments

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!

ebsp avatar Feb 03 '12 23:02 ebsp

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

alotaiba avatar Feb 04 '12 06:02 alotaiba

Thank you!

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

ebsp avatar Feb 04 '12 09:02 ebsp

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.

alotaiba avatar Feb 04 '12 12:02 alotaiba

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

reeichert avatar Feb 10 '12 16:02 reeichert

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í.

alotaiba avatar Feb 10 '12 17:02 alotaiba

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

reeichert avatar Feb 10 '12 17:02 reeichert

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!

aerohunter avatar Feb 13 '12 04:02 aerohunter

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

alotaiba avatar Feb 13 '12 05:02 alotaiba

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.

aerohunter avatar Feb 13 '12 20:02 aerohunter

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

carloswd avatar Feb 21 '12 16:02 carloswd

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

francysuri avatar Feb 25 '12 14:02 francysuri

@francysuri Check issue #5.

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

@carloswd Could you elaborate?

alotaiba avatar Feb 25 '12 14:02 alotaiba

@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 avatar Feb 25 '12 15:02 francysuri

@alotaiba thanks or your gr8 work

francysuri avatar Feb 25 '12 15:02 francysuri

@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.

alotaiba avatar Feb 25 '12 15:02 alotaiba

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

francysuri avatar Feb 25 '12 16:02 francysuri

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.

aerohunter avatar Feb 25 '12 16:02 aerohunter

@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.

alotaiba avatar Feb 25 '12 18:02 alotaiba

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

carloswd avatar Feb 25 '12 19:02 carloswd

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!!!

efimer03 avatar Feb 28 '12 23:02 efimer03

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!

ianhz avatar Mar 18 '12 02:03 ianhz

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

efimer03 avatar Mar 18 '12 11:03 efimer03

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

ianhz avatar Mar 18 '12 19:03 ianhz

ianhz Glad it work for you too!

efimer03 avatar Mar 18 '12 21:03 efimer03