[DEVEL] Saera: Siri clone for Maemo5, Harmattan and Sailfish OS
1 Attachment(s)
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 To install, you will need these packages: Code:
pocketsphinx-utils
Edit [2015-07-19 4:16 pm]: Added support for Sailfish OS. Edit [2012-12-31 2:28 pm]: Added support for N9/N950. Edit [2012-06-16 11:55 pm]: Initial support for answering in other languages. Edit [2012-06-11 3:14 pm]: Improved recognition accuracy Edit: Latest source files attached. Mod edit: Changed thread title |
Re: [Announce] Saera: Siri clone for Maemo 5
Wow, gonna test it out for sure!
Good luck building it :) |
Re: [Announce] Saera: Siri clone for Maemo 5
Is it possible to pin a specific voice command to an arbitrary command-line? I would use that in so many ways! Very happy that someone is writing a Sphinx "GUI" :)
|
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
I'm just collecting everything into one place, and I'll upload the zip later this evening. |
Re: [Announce] Saera: Siri clone for Maemo 5
Any way we could get this for Harmattan?
|
Re: [Announce] Saera: Siri clone for Maemo 5
Would be happy to see source code, so i hope other devs would jump in
|
Re: [Announce] Saera: Siri clone for Maemo 5
Now I have pull the n900 out and add this....makes,me wonder why i even have an n9.
|
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
|
Re: [Announce] Saera: Siri clone for Maemo 5
Interesting project! Long live N900!
|
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
Quote:
|
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
Quote:
|
Re: [Announce] Saera: Siri clone for Maemo 5
here we go, i think it's the same package — http://harmattan-dev.nokia.com/pool/...free/s/sphinx/
|
Re: [Announce] Saera: Siri clone for Maemo 5
Great idea taixzo, I'll be sure to check it out too :)
Quote:
However if it has been released we do have an "updates to existing applications" category, so if you do any major code changes or functional updates over the next 3 months I'd encourage you to enter Saera :) It doesn't cost anything to enter, and who knows maybe you'll win yourself a new device :) So I'd definitely encourage you to check out the wiki and see if Saera qualifies :) |
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
FYI, your link points to the image rather than the page. ;) |
Re: [Announce] Saera: Siri clone for Maemo 5
I'm curious what is peoples pocketsphinx dictation aquracy {mine is very low)
and i couldn't find a simple solution to increase. |
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
|
Re: [Announce] Saera: Siri clone for Maemo 5
1 Attachment(s)
Here is the source at the moment. Not much works with the AI; Saera currently recognizes the following things:
I don't have hooks into the system yet, so neither reminders or music control actually work. Also, accuracy is fairly poor, for the reasons I just posted. Saera seems to run a good deal slower than the Pocketsphinx demo that the voice recognition is based on, so I will see what I can do to speed that up. To run: extract zip on N900. In x-terminal, cd to that directory and run Code:
python saera.py |
Re: [Announce] Saera: Siri clone for Maemo 5
This is AMAZING to actually someone is doing this, i have a N9 but seriously how to compile or even edit that code, But I AM 100% eager to test this for the N9... If your interested im always available
|
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
|
Re: [Announce] Saera: Siri clone for Maemo 5
You could try to combine it with Maemo Profiler, which is already capable of triggering a good number of actions.
|
Re: [Announce] Saera: Siri clone for Maemo 5
would any one like to make a deb out of it so that it can reach to the repos and then every one can share the joy ?
|
Re: [Announce] Saera: Siri clone for Maemo 5
saera doesnot open ::
BusyBox v1.20.1 (Debian 1.20.1power1) built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ sudo gainroot Root shell enabled BusyBox v1.20.1 (Debian 1.20.1power1) built-in shell (ash) Enter 'help' for a list of built-in commands. /home/user # cd MyDocs/saera/ /home/user/MyDocs/saera # python saera.py process 1970: arguments to dbus_connection_get_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5757. This is normally a bug in some application using the D-Bus library. process 1970: arguments to dbus_connection_set_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5721. This is normally a bug in some application using the D-Bus library. Aborted /home/user/MyDocs/saera # |
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
|
Re: [Announce] Saera: Siri clone for Maemo 5
finally, something that does speech to text. i've been wanting something like this for the longest time on the n900.
voice-dialing here we come! :) |
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
BusyBox v1.20.1 (Debian 1.20.1power1) built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ cd /home/us user/ usr/ ~ $ cd /home/user/MyDocs/saera/ ~/MyDocs/saera $ python saera.py Traceback (most recent call last): File "saera.py", line 239, in <module> app = Saera() File "saera.py", line 75, in __init__ self.init_gst() File "saera.py", line 190, in init_gst + '! pocketsphinx name=asr ! fakesink') glib.GError: no element "vader" ~/MyDocs/saera |
Re: [Announce] Saera: Siri clone for Maemo 5
I like the prospect of this!
I don't know how pocketsphinx works but you said it needs dictionary to recognise words. does this mean that a dictionary can contain regional dialects or accents? I have a Geordie accent, which, along with others accents such as Scottish or Welsh, means that most speech recognition engines have a major problem understanding me unless I speak queens-english to match it's dictionary of pronunciation. My last attempt to do anything speech-related was when i had a SideWinder Headset and voice software.. I was able to type the phonetic version of how it would sound eg If I said "Sword", it would be "Saud" phonetically.. |
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
regards |
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
I have something in mind... |
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
|
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
|
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
Quote:
Quote:
Quote:
|
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
~ $ sudo gainroot Root shell enabled BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. /home/user # apt-cache search pocketsphinx python-sphinxbase - Sphinx base libraries - Python module libsphinxbase-dev - Development files for Sphinx base libraries libsphinxbase1 - Sphinx base libraries python-pocketsphinx-dbg - lightweight speech recognition - Python module (debug version) libpocketsphinx1 - lightweight speech recognition - library gstreamer0.10-pocketsphinx - lightweight speech recognition - GStreamer plugin pocketsphinx-utils - lightweight speech recognition - command-line tools python-pocketsphinx - lightweight speech recognition - Python module libpocketsphinx-dev - Development files for Pocketsphinx. pocketsphinx-zh-tidigits - lightweight speech recognition - Mandarin acoustic models pocketsphinx-lm-en-hub4 - Lightweight speech recognition - HUB4 language model pocketsphinx-hmm-en-tidigits - lightweight speech recognition - TIDIGITS models pocketsphinx-lm-zh-hant-gigatdt - Lightweight speech recognition - Traditional Chinese language model pocketsphinx-hmm-en-hub4wsj - Lightweight speech recognition - English acoustic model /home/user # |
Re: [Announce] Saera: Siri clone for Maemo 5
i could open it. then when i click on the mike it closes. but i could write. be it says. "i dont understand sorry." loser
|
Re: [Announce] Saera: Siri clone for Maemo 5
any hope saera for N9?
|
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
Quote:
|
Re: [Announce] Saera: Siri clone for Maemo 5
i install espeek,espeek gui,python-gtk2,python-gobject,gstreamer0.10-pocketsphinx,python-pocketsphinx,pocketsphinx-utils. then extract zip file and move all files to a folder named siri and then:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ root BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. Nokia-N900:~# cd /home/user/MyDocs/siri Nokia-N900:/home/user/MyDocs/siri# python saera.py Traceback (most recent call last): File "saera.py", line 13, in <module> import pygst ImportError: No module named pygst Nokia-N900:/home/user/MyDocs/siri# what's wrong with it? |
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
|
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
when I run as sudo gainroot: $ sudo gainroot Root shell enabled BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. /home/user # cd /home/user/MyDocs/siri /home/user/MyDocs/siri # python saera.py process 2608: arguments to dbus_connection_get_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5757. This is normally a bug in some application using the D-Bus library. process 2608: arguments to dbus_connection_set_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5721. This is normally a bug in some application using the D-Bus library. Aborted /home/user/MyDocs/siri # and when I run as root ...... -var -varfloor 0.0001 1.000000e-04 -varnorm no no -verbose no no -warp_params -warp_type inverse_linear inverse_linear -wbeam 7e-29 7.000000e-29 -wip 0.65 6.500000e-01 -wlen 0.025625 2.562500e-02 FATAL_ERROR: "fe_sigproc.c", line 397: WTF, 5406.250000 < -31.250000 > 6093.750000 Nokia-N900:/home/user/MyDocs/siri# when I run it as root for the firs time it opens and when I clicked on microphon it closed, |
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
INFO: cmn.c(142): mean[0]= 12.00, mean[1..12]= 0.0 ERROR: "acmod.c", line 84: Must specify -mdef or -hmm Segmentation fault ~/MyDocs/saera $ this is the end of the xterm output after i clicked the mich |
Re: [Announce] Saera: Siri clone for Maemo 5
Quote:
Code:
BusyBox v1.20.1 (Debian 1.20.1power1) built-in shell (ash) |
All times are GMT. The time now is 08:15. |
vBulletin® Version 3.8.8