Active Topics

 



Notices


Reply
Thread Tools
Posts: 101 | Thanked: 47 times | Joined on Aug 2010 @ somerset
#141
i have added a queenbeecon widget too desktop and added command
cd /home/user/MyDocs/saera
pyton saera.py

this starts saera with 1 click and a few seconds start time
 

The Following 7 Users Say Thank You to scoobydoo For This Useful Post:
Posts: 752 | Thanked: 2,808 times | Joined on Jan 2011 @ Czech Republic
#142
Originally Posted by scoobydoo View Post
don't run as root just as user
Exactly. I don't know what it is with people running everything as root. One should never run anything as root, unless it tells him to and he's 100% sure what he's doing.
Imagine they run an app with superuser privileges, it saves some settings which they won't be able to edit if they run it as user as usual... Just one example.
Too bad rootsh doesn't require password. (sorry for OT)

Originally Posted by scoobydoo View Post
i have added a queenbeecon widget too desktop and added command
cd /home/user/MyDocs/saera
pyton saera.py

this starts saera with 1 click and a few seconds start time
Nice. Although, why 'cd'? This should do it.
Code:
python /path/to/saera/saera.py

Last edited by nodevel; 2012-06-13 at 14:29.
 

The Following 5 Users Say Thank You to nodevel For This Useful Post:
Posts: 364 | Thanked: 128 times | Joined on Sep 2010 @ Australia
#143
Thanks for help before. Now i have the following.
cleanup floats: 37 unfreed floats in 2 out of 2 blocks
user@Nokia-N900-02-8:~$ python saera.py
saera.py:186: SyntaxWarning: name 'able_to_listen' is used prior to global declaration
global able_to_listen
Traceback (most recent call last):
File "saera.py", line 298, in <module>
app = Saera()
File "saera.py", line 80, in __init__
self.init_gst()
File "saera.py", line 246, in init_gst
+ '! pocketsphinx name=asr ! fakesink')
glib.GError: no element "vader"
user@Nokia-N900-02-8:~$
 
Posts: 958 | Thanked: 3,426 times | Joined on Apr 2012
#144
Originally Posted by nkirk View Post
I tested the new version. It recognizes words much much better. sometimes too quick, even before i finish the sentence. Not perfect but certainly getting there. Good work taixzo.

/nkirk
I'm trying to figure out why it cuts off; I think it may be related to sound levels because it doesn't do it as much if I hold the phone closer. Unfortunately there doesn't seem to be a good source of documentation on pocketsphinx-gstreamer, so I'm still trying to find how to change the threshold.

this is for n900?? but doesn't work... dbus error conection... i can't install it
Don't run as root.

When I said "Okay"
She said Good Bye

It's getting better and recognizes much better.
Thank you.
Saera recognized that as "Go away". I don't think I have "Okay" in the corpus right now.

Nightingale was actually what made me realize something like this could be done on N900. However, Nightingale uses a very small set of commands, so there's not much I can take out of the voice recognition code that I haven't already.

Nice. Although, why 'cd'? This should do it.

Code:
python /path/to/saera/saera.py
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.
 

The Following 5 Users Say Thank You to taixzo For This Useful Post:
Posts: 958 | Thanked: 3,426 times | Joined on Apr 2012
#145
Originally Posted by vivmak View Post
Thanks for help before. Now i have the following.
cleanup floats: 37 unfreed floats in 2 out of 2 blocks
user@Nokia-N900-02-8:~$ python saera.py
saera.py:186: SyntaxWarning: name 'able_to_listen' is used prior to global declaration
global able_to_listen
Traceback (most recent call last):
File "saera.py", line 298, in <module>
app = Saera()
File "saera.py", line 80, in __init__
self.init_gst()
File "saera.py", line 246, in init_gst
+ '! pocketsphinx name=asr ! fakesink')
glib.GError: no element "vader"
user@Nokia-N900-02-8:~$
You need to install gstreamer0.10-pocketsphinx.
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#146
Originally Posted by taixzo View Post
Also: could someone point me to a good packaging tutorial? I tried the dh_make route but got hopelessly entangled and lost.
http://docs.python.org/distutils/setupscript.html

If this doesn't fit your needs and you just need copying some files, let me know. This approach is easy.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following 3 Users Say Thank You to marmistrz For This Useful Post:
Posts: 958 | Thanked: 3,426 times | Joined on Apr 2012
#147
Originally Posted by marmistrz View Post
http://docs.python.org/distutils/setupscript.html

If this doesn't fit your needs and you just need copying some files, let me know. This approach is easy.
But this approach creates a Python egg, not a deb package, so I can't put it in the repository.
 

The Following User Says Thank You to taixzo For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#148
Originally Posted by taixzo View Post
But this approach creates a Python egg, not a deb package, so I can't put it in the repository.
dr14tmeter used it for .deb, you should look at its source.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 804 | Thanked: 1,598 times | Joined on Feb 2010 @ Gdynia, Poland
#149
Originally Posted by taixzo View Post
But this approach creates a Python egg, not a deb package, so I can't put it in the repository.
Try maybe http://wiki.maemo.org/PyMaemo/Scratc...ackaging_guide if you have linux pc (maybe it would work even on n900, I didn't check)

and for general Maemo packaging references: http://wiki.maemo.org/Packaging
 

The Following 2 Users Say Thank You to misiak For This Useful Post:
Verssetti's Avatar
Posts: 67 | Thanked: 54 times | Joined on Nov 2010 @ Spain
#150
ok im run it, but saera don't me understand... xD im wait to spanish version. Great work @taixzo
__________________
Restart Phone
..::Phonesfera::.. Maemo and other OS Thanks Maemo.org
 

The Following User Says Thank You to Verssetti For This Useful Post:
Reply

Tags
saera, speech-to-text


 
Forum Jump


All times are GMT. The time now is 02:09.