SiriServerCore icon indicating copy to clipboard operation
SiriServerCore copied to clipboard

Suggestion for supporting more languages.

Open jimmykane opened this issue 12 years ago • 10 comments

I know it's not the best method and will also make a lot of collision to people that want eg. the language for siri.

I dont think that the region is location related but more like locale related.

It's just a suggestion or even we can comment out this code. But many people contact me and want to see how can the force language (that is possible this way)

Or we can implement this as a bin argument like python SiriServer.py -p 443 -forcelanguage

jimmykane avatar Mar 16 '12 19:03 jimmykane

I won't pull that, afaik there is a cydia package that lets you select different languages.

janrueth avatar Mar 16 '12 19:03 janrueth

Ok what is that package? Anyvoice isn't that one.

jimmykane avatar Mar 16 '12 19:03 jimmykane

Yeah, I just thought so, did some research, there is no such package out there

janrueth avatar Mar 16 '12 19:03 janrueth

With anyvoice package you can make Siri speak and using all voice controll voices. This enables Siri to speak back any supported language from voice control. The only thing needed is forcing the language. I just posted this pull request for a suggestion.

We can just comment out the just in case someone wants to edit that and for the language for his native usage.

On 16 Μαρ 2012, at 21:48, [email protected] wrote:

Yeah, I just thought so, did some research, there is no such package out there


Reply to this email directly or view it on GitHub: https://github.com/Eichhoernchen/SiriServerCore/pull/28#issuecomment-4546859

jimmykane avatar Mar 16 '12 22:03 jimmykane

We could also add it as a command line option. Or use a language override if a certain udid connects and the database has a language override added for this language

janrueth avatar Mar 17 '12 13:03 janrueth

Hi again @Eichhoernchen I just made some changes and hope that this time is a bit more elegant approach.

  • Switched to argparse module for the option parser Could not handle a empty value argument without code change and tricks etc Deprecated since version 2.7: The optparse module is deprecated and will not be developed further; development will continue with the argparse module. From (http://docs.python.org/library/optparse.html)
  • Added global config module for cross module config config.py
  • Added -f and --forcelanguage argument that will force the server to identify language by region.
  • Added French and Chinese __not_recognized and __websearch localizations
  • Several minor touches

jimmykane avatar Mar 19 '12 02:03 jimmykane

I would like to ask if is possible to for example switch FRENCH (for example) language for other language like CZECH? Czech is not avilable on spire's settings, but google API can handle it, is somehow possible to substitute that? Can some one guide me a little? Thanks !

eugeene avatar Mar 19 '12 14:03 eugeene

pretty please? :/

eugeene avatar Mar 22 '12 12:03 eugeene

I think you can do it within the server itself, by replacing another languages values with another. It's a bit hard to explain, so I'll figure it out and tell you.

bidluo avatar Apr 04 '12 05:04 bidluo

well listen the best thin we can do is make a shell script to pick out the language that is in each plugin and translate its strings and add it as each new language, i bet i could make a quick mockup of this, easily

trevor403 avatar Jun 08 '12 03:06 trevor403