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)

MartinK 2012-06-13 17:47

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

Originally Posted by taixzo (Post 1221375)
Except it doesn't. For some reason it won't find the resources correctly unless run from the same directory. So yes, the 'cd' is necessary.

I had the same issue with my Python programs - I've fixed it like this:
Code:

# set current directory to the directory
# of this file
# like this, modRana can be run from an absolute path
# eq.: ./opt/modrana/modrana.py -u QML -d n9
import os
os.chdir(os.path.dirname(os.path.abspath(__file__)))

@packaging

I'm using a slightly modified khertans sdist_maemo and it works quite nicely. There is also a (slightly outdated) example how I do it.

taixzo 2012-06-13 22:12

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

Originally Posted by MartinK (Post 1221440)
I had the same issue with my Python programs - I've fixed it like this:
Code:

# set current directory to the directory
# of this file
# like this, modRana can be run from an absolute path
# eq.: ./opt/modrana/modrana.py -u QML -d n9
import os
os.chdir(os.path.dirname(os.path.abspath(__file__)))

@packaging

I'm using a slightly modified khertans sdist_maemo and it works quite nicely. There is also a (slightly outdated) example how I do it.

Thank you! That worked!

sdist_maemo looks promising. I'll have a go at that now.

All: Does anyone know how to capture when an email/IM comes in? I'd like for Saera to be able to read it, like Siri can.

marmistrz 2012-06-14 13:40

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

Originally Posted by taixzo (Post 1221529)
:[/B] Does anyone know how to capture when an email/IM comes in? I'd like for Saera to be able to read it, like Siri can.

I guess it's something to do with dbus. But I'm not sure.

biketool 2012-06-14 14:53

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

Originally Posted by misiak (Post 1221356)
So it doesn't matter whether the headset is wired or wireless (bluetooth), the dbus signal will be the same? If yes, I can come up with minimalistic C and Python example for you taxizo, as I have wired headset (but I don't have any wireless, so I'm only able to test with wired one).

edit: ... Anyway, I'm up for writing a simple example, give me few hours ;)

Looks like we are getting close to having headset control for taixzo to add into Saera!

bugoy 2012-06-14 17:17

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

Originally Posted by taixzo (Post 1219154)
I couldn't find one, so I decided to make my own. Saera can do some tasks (such as setting alarms etc) and make some conversation, although not very well (might someone be interested in helping with the A.I.?)
Saera uses Pocketsphinx for voice recognition, eSpeak to talk and PyGTK for the GUI.

http://s17.postimage.org/o2sbhkpjj/saera_i.png

Edit [2012-06-11 3:14 pm]: Improved recognition accuracy

Edit: Latest source files attached.

this is wonderful my freind plz teach me step by step how to install this one

AlphaX2 2012-06-14 20:43

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
Could you please post a list with all dependencies and just a question: Will I just find in saera.py GUI related stuff like GObject and Hildon, or also anywhere else? :confused:

I could try to port it to the N9, but it's just a first try, nothing more, seems not to be sooo easy to translate it all to QML. :rolleyes:

EDIT: Okay most easy way to go could be just adding this repo to the N9:

http://talk.maemo.org/showthread.php?t=79229

AlphaX2

safoo 2012-06-14 23:00

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
BusyBox v1.20.1 (Debian 1.20.1power1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ python saera.py
python: can't open file 'saera.py': [Errno 2] No such file or directory
~ $

what is wrong.. pls help.. i m new to do this..

taixzo 2012-06-14 23:10

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

Originally Posted by AlphaX2 (Post 1222028)
Could you please post a list with all dependencies and just a question: Will I just find in saera.py GUI related stuff like GObject and Hildon, or also anywhere else? :confused:

I could try to port it to the N9, but it's just a first try, nothing more, seems not to be sooo easy to translate it all to QML. :rolleyes:

EDIT: Okay most easy way to go could be just adding this repo to the N9:

http://talk.maemo.org/showthread.php?t=79229

AlphaX2

Both saera.py and saera_processing.py use GObject (only for timeouts); only saera.py uses GTK.

As far as I know, these are the dependencies:
  • pocketsphinx-utils
  • pocketsphinx-hmm-en-hub4wsj
  • pocketsphinx-lm-en-hub4
  • gstreamer0.10-pocketsphinx
  • python-gst0.10
  • python-gtk2
  • python-gobject
  • python-cairo
  • espeak

Quote:

Originally Posted by safoo
what is wrong.. pls help.. i m new to do this..

Are you familiar with the terminal? It looks like you didn't cd into the right directory. If you aren't, I suggest you wait until I have a package in the repos.

safoo 2012-06-14 23:17

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
Are you familiar with the terminal? It looks like you didn't cd into the right directory. If you aren't, I suggest you wait until I have a package in the repos.[/QUOTE]

ok.. when it'll b in repos.. can u tell me how i can do this with terminal pls..

Alfred 2012-06-15 09:43

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


ok.. when it'll b in repos.. can u tell me how i can do this with terminal pls..
there was a plenty of messages in this thread about it...


All times are GMT. The time now is 23:22.

vBulletin® Version 3.8.8