Reply
Thread Tools
Posts: 905 | Thanked: 3,239 times | Joined on Apr 2010 @ Czech Republic
#151
Originally Posted by taixzo View Post
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.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader

Thanks to everyone who voted for modRana & Mieru in the Maemo.org coding competition !

Last edited by MartinK; 06-13-2012 at 01:54 PM.
 

The Following 9 Users Say Thank You to MartinK For This Useful Post:
Posts: 392 | Thanked: 1,404 times | Joined on Apr 2012
#152
Originally Posted by MartinK View Post
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.
__________________
Saera: A Siri clone for the N900 and N9(50)

Follow me on Twitter: twitter.com/taixzo
 

The Following 6 Users Say Thank You to taixzo For This Useful Post:
Posts: 2,365 | Thanked: 2,552 times | Joined on May 2011 @ Poland
#153
Originally Posted by taixzo View Post
:[/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.
__________________
If you want to support my work, you can DONATE

You're encouraged to donate at least a couple of euros - otherwise PayPal takes almost everything as a fee.

If you'd prefer other currency, please contact me


Support for MeeCoLay donors is available in English, po polsku, auf Deutsch & по-русский

MeeCoLay: run MeeGo Harmattan apps on Fremantle
 

The Following User Says Thank You to marmistrz For This Useful Post:
Posts: 558 | Thanked: 657 times | Joined on Jan 2011 @ Touring
#154
Originally Posted by misiak View Post
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!
 

The Following User Says Thank You to biketool For This Useful Post:
Posts: 58 | Thanked: 12 times | Joined on Apr 2012 @ philippines
#155
Originally Posted by taixzo View Post
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.



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
 
Posts: 108 | Thanked: 118 times | Joined on Aug 2010 @ Dresden - Germany
#156
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?

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.

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

Last edited by AlphaX2; 06-14-2012 at 04:47 PM.
 

The Following User Says Thank You to AlphaX2 For This Useful Post:
Posts: 56 | Thanked: 19 times | Joined on Jan 2012
#157
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..
 
Posts: 392 | Thanked: 1,404 times | Joined on Apr 2012
#158
Originally Posted by AlphaX2 View Post
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?

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.

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

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.
__________________
Saera: A Siri clone for the N900 and N9(50)

Follow me on Twitter: twitter.com/taixzo
 

The Following User Says Thank You to taixzo For This Useful Post:
Posts: 56 | Thanked: 19 times | Joined on Jan 2012
#159
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's Avatar
Posts: 855 | Thanked: 604 times | Joined on Oct 2010 @ Germany, Kirchheimbolanden
#160

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...
__________________
Reps are just one click away: Extras | Extras-Testing | Extras-Devel | My-Maemo | CSSU |
Transform your lock screen into a weather forecast Thanks button ================>

Last edited by Alfred; 06-15-2012 at 05:54 AM.
 

The Following 2 Users Say Thank You to Alfred For This Useful Post:
Reply

Tags
saera, speech-to-text

Thread Tools

 
Forum Jump


All times are GMT -4. The time now is 12:50 AM.