maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [DEVEL] Saera: Siri clone for Maemo5, Harmattan and Sailfish OS (https://talk.maemo.org/showthread.php?t=84753)

marmistrz 2012-06-17 06:11

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
Quote:

Originally Posted by taixzo (Post 1223022)
Still working on most of the changes I mentioned, but I have one important update: you can now change the language Saera speaks! Say something along the lines of "Language settings" and you will be able to pick from English, Spanish, Portuguese and a rather incomplete German. You will still have to speak English, at least until I can translate the corpus, but Saera will respond in the language you select (most of the time).

Saera will not remember this choice next time she is launched. I would like to say this is so you don't get stuck in a language you don't understand, but really it's just because I don't know how to save the choice. ;)

If it's an update, please change the version number. IIRC the version before was 0.1-0 too.

imo 2012-06-17 07:06

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
Quote:

Originally Posted by taixzo (Post 1223030)
I am working on these. Expect to see some tomorrow; today I was focusing on languages.

it should have been in the repos .maemo council should be taking notice about the issue.As it would be hard to uninstall every old .deb and replace it with the new updated one each time .
Anyhow hope it reaches there soon .
And @ taixzo please do something about 95% saera saying sorry ..

Half-Life_4_Life 2012-06-17 08:15

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
this is cool.
something new for maemo.
thanks taixzo !

bonkel 2012-06-17 12:21

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
german translate:
Code:

#!/usr/bin/python

#Don't change this next line, it tells espeak how to pronounce this language
espeak_cmdline = "espeak -vde+f2"

tens = {'zwanzig':20, 'dreizig':30, 'vierzig':40, 'fünfzig':50, 'sechzig':60}
teens = {'zehn':10, 'elf':11, 'zwölf':12, 'dreizehn':13, 'vierzehn':14, 'fünfzehn':15, 'sechszehn':16,'siebzehn':17, 'achtzehn':18, 'neunzehn':19}
ones = {'eins':1, 'zwei':2, 'drei':3, 'vier':4, 'fünf':5, 'sechs':6, 'sieben':7, 'acht':8, 'neun':9}

life_universe_everything = ['41.99999999.',
                        'Schokolade.',
                        'That will take me some time to answer. About seven and a half million years.',
                        'Love is the meaning of life. The rest of the universe will figure itself out.',
                        'Open-source software.',
                        'Ich.',
                        'Take a vacation to the tropics.',
                        'It takes two people.',
                        ['What do you want the answer to be?', 'store_answer'],
                        'Zwei und fiertzig.',
                        # A Matrix quote too, why not.
                        'The Matrix is the world that has been pulled over your eyes to blind you from the truth.']

greeting = ['Hallo!',
        'Gruss dich.',
        'Hi.',
        'Hey.',
        'Aloha!',
        'Hallo!',
        'Hallo!',
        'Hallo!',
        'Hallo!',
        "Es ist ein guter Tag fur künstliche Intelligenz.",
        'Hey da!']
greeting_grumpy = "Weggehen."

test = ['Ich arbeite.',
        'Test, test, eins, zwei, drei.',
        'Status bericht: Saera läuft.',
        'erfolgreich']

# Times
known_time = "Jetzt ist es %I:%M %p."
unknown_time = "Es tut mir leid, ich weiß nicht wie spät es in "

# Phone
phone_number_error = "Telefonnumern haben zehn oder elf zahlen."
contact_name_error = "Ich weiß nicht wer das ist."
successful_call = "Rufe an "

N900_facts = ["Das N900 ist der konig der Handys.",
        "Wusstest du das Mac OSX auf dem N900 läuft?",
        "Nokia hat es hergestellt und die Community hat die Arbeit gemacht.",
        "Das N900 hatte ein Retina display bevor das iPhone es hatte.",
        "There are good resources for the N900 on maemo.org.",
        "Let's take a computer, a camera, a radio and a phone"+
        " and put them in one package. That device you are now holding in your hand.",
        "The N900 has been made to run at least 8 operating systems.",
        "Und wenn es keine app gibt die du brauchst, kannst du eine erstellen!"]

# Pictures
took_picture = "Ich habe ein Bild gemacht."
took_front_picture = "Ok. Ich habe ein Bild von dir gemacht."

i_love_you = "Und ich liebe dich auch, wir sollten XKCD lesen."

heres_where_you_are = "Ich zeige dir wo du bist."

# Reminders
what_reminder_time = 'Wann soll ich dich erinnern?'
reminding_you = 'Erinner dich'

#Time
bells = {'viertel':15, 'halb':30}
times = {'mittag':12, 'mitternacht':0, 'morgen':9, 'nachmittag':16, 'abend':19, 'nacht':21}
weekdays = ['sonntag','montag','dienstag','mittwoch','donnerstag','freitag','samstag']


Dave999 2012-06-17 13:34

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
What languages are supported, Can we add new ones?

taixzo 2012-06-17 14:14

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
Quote:

Originally Posted by Chuck Norris (Post 1223191)
What languages are supported, Can we add new ones?

Currently there are translations for Spanish, Portuguese and German. You can add new ones by copying sentences_english.py and translating the strings.

menghao1993 2012-06-17 16:44

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
What do I need to do before I speak to the phone?
Tap on the microfone?
is that possible to make it work with the bluetooth headset?

taixzo 2012-06-17 20:33

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
Quote:

Originally Posted by menghao1993 (Post 1223280)
What do I need to do before I speak to the phone?
Tap on the microfone?
is that possible to make it work with the bluetooth headset?

Tap the button, or put it to your ear like you were talking on the phone. It should be possible (there was talk about a script to do that, but I never saw any code, and that hasn't been a high priority), but not yet.

Dave999 2012-06-17 20:45

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
Super cool. But it's really hard to update. Why not push this to repository?

Much easier. Thanksnks for a funny project.

addi85 2012-06-17 21:07

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
this could come handy when driving a vehicle.


All times are GMT. The time now is 01:38.

vBulletin® Version 3.8.8