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)

taixzo 2012-06-08 12:02

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

Originally Posted by ivgalvez (Post 1219291)
You could try to combine it with Maemo Profiler, which is already capable of triggering a good number of actions.

I could, although it seems like overkill to create whole new profiles just to run commands. I was planning on just using dbus instead.

Quote:

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 ?
I will make a deb when I figure out packaging, but I don't want to put it in the repos until it is working a bit better.

Quote:

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..
I believe pocketsphinx supports alternate pronunciations. However, I think you would have to create an entire new dictionary with those new pronunciations in it (hopefully someone will prove me wrong here).

Quote:

here is no such file as pocketsphinx. i installed espeak and espeakgui. bt same problem
The package is called pocketsphinx-utils. I suggest you just install all packages with "pocketsphinx" in the name until I figure out which ones it actually requires.

disappear 2012-06-08 12:17

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

Originally Posted by Mohammed Muid
there is no such file as pocketsphinx. i installed espeak and espeakgui. bt same problem
Look here friend:
~ $ 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 #

Mohammed Muid 2012-06-08 12:28

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

N9owner 2012-06-08 12:40

Re: [Announce] Saera: Siri clone for Maemo 5
 
any hope saera for N9?

taixzo 2012-06-08 12:45

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

Originally Posted by Mohammed Muid (Post 1219456)
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

If it closes when you tap thi mic, do you get an error in the terminal? It may be missing some package.

Quote:

Originally Posted by N9owner
any hope saera for N9?

Again, I've addressed this. It's possible in theory, but I have no way of testing it because I don't have an N9.

sepehr_se 2012-06-08 13:05

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?

taixzo 2012-06-08 13:15

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

Originally Posted by sepehr_se (Post 1219466)
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?

First of all, you probably need to install python-gst0.10. Second, you shouldn't run this as root.

sepehr_se 2012-06-08 13:36

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

Originally Posted by taixzo (Post 1219471)
First of all, you probably need to install python-gst0.10. Second, you shouldn't run this as root.

I install install python-gst0.10.
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,

Mohammed Muid 2012-06-08 14:02

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

Originally Posted by taixzo (Post 1219464)
If it closes when you tap thi mic, do you get an error in the terminal? It may be missing some packages

INFO: feat.c(848): Initializing feature stream to type: '1s_c_d_dd', ceplen=13, CMN='prior', VARNORM='no', AGC='none'
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

taixzo 2012-06-08 14:05

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

Originally Posted by sepehr_se (Post 1219476)
I install install python-gst0.10.
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,

Just don't run as root at all!

Code:

BusyBox v1.20.1 (Debian 1.20.1power1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ cd MyDocs/saera/
~/MyDocs/saera $ python saera.py



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

vBulletin® Version 3.8.8