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)

Sandeep 2012-06-09 11:24

Re: [Announce] Saera: Siri clone for Maemo 5
 
I had a hard time making Pocketsphinx recognize what I say. I was SO LUCKY to get Saera tell me the current time.
Is it possible anyway to 'train' the pocketsphinx to recognize what we say? Much like the microsoft voice recognition training.
Thanks a lot Taixzo !! Great Idea !!

Anything is possible with the N900 :D

disappear 2012-06-09 13:00

Re: [Announce] Saera: Siri clone for Maemo 5
 
About saera on what packages are needed to me to run that application(enable extras-devel)
apt-get install pocketsphinx-hmm-en-hub4wsj
apt-get install pocketsphinx-lm-en-hub4
apt-get install gstreamer0.10-pocketsphinx
apt-get install pocketsphinx-utils
apt-get install python-gst0.10
apt-get install python-gtk2
apt-get install puthon-gobject
apt-get install espeak or you prefer to installed from app.manager
To my great regret,from almost every questions which i asked saera,the reply it was "I don't understand you.Sorry"or "What time it is in miami" the answer it was "Law time the miami".However thanks for the app

Joseph9560 2012-06-09 13:56

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

~/MyDocs/Downloads $ python saera.py
INFO: cmd_ln.c(512): Parsing command line:
gst-pocketsphinx \
        -samprate 8000 \
        -cmn prior \
        -nfft 256 \
        -fwdflat no \
        -bestpath no \
        -maxhmmpf 1000 \
        -maxwpf 10

Current configuration:
[NAME]                [DEFLT]                [VALUE]
-agc                none                none
-agcthresh        2.0                2.000000e+00
-alpha                0.97                9.700000e-01
-ascale                20.0                2.000000e+01
-backtrace        no                no
-beam                1e-48                1.000000e-48
-bestpath        yes                no
-bestpathlw        9.5                9.500000e+00
-bghist                no                no
-ceplen                13                13
-cmn                current                prior
-cmninit        8.0                8.0
-compallsen        no                no
-debug                                0
-dict                               
-dictcase        no                no
-dither                no                no
-doublebw        no                no
-ds                1                1
-fdict                               
-feat                1s_c_d_dd        1s_c_d_dd
-featparams                       
-fillprob        1e-8                1.000000e-08
-frate                100                100
-fsg                               
-fsgusealtpron        yes                yes
-fsgusefiller        yes                yes
-fwdflat        yes                no
-fwdflatbeam        1e-64                1.000000e-64
-fwdflatefwid        4                4
-fwdflatlw        8.5                8.500000e+00
-fwdflatsfwin        25                25
-fwdflatwbeam        7e-29                7.000000e-29
-fwdtree        yes                yes
-hmm                               
-input_endian        little                little
-jsgf                               
-kdmaxbbi        -1                -1
-kdmaxdepth        0                0
-kdtree                               
-latsize        5000                5000
-lda                               
-ldadim                0                0
-lextreedump        0                0
-lifter                0                0
-lm                               
-lmctl                               
-lmname                default                default
-logbase        1.0001                1.000100e+00
-logfn                               
-logspec        no                no
-lowerf                133.33334        1.333333e+02
-lpbeam                1e-40                1.000000e-40
-lponlybeam        7e-29                7.000000e-29
-lw                6.5                6.500000e+00
-maxhmmpf        -1                1000
-maxnewoov        20                20
-maxwpf                -1                10
-mdef                               
-mean                               
-mfclogdir                       
-mixw                               
-mixwfloor        0.0000001        1.000000e-07
-mllr                               
-mmap                yes                yes
-ncep                13                13
-nfft                512                256
-nfilt                40                40
-nwpen                1.0                1.000000e+00
-pbeam                1e-48                1.000000e-48
-pip                1.0                1.000000e+00
-pl_beam        1e-10                1.000000e-10
-pl_pbeam        1e-5                1.000000e-05
-pl_window        0                0
-rawlogdir                       
-remove_dc        no                no
-round_filters        yes                yes
-samprate        16000                8.000000e+03
-seed                -1                -1
-sendump                       
-senmgau                       
-silprob        0.005                5.000000e-03
-smoothspec        no                no
-svspec                               
-tmat                               
-tmatfloor        0.0001                1.000000e-04
-topn                4                4
-topn_beam        0                0
-toprule                       
-transform        legacy                legacy
-unit_area        yes                yes
-upperf                6855.4976        6.855498e+03
-usewdphones        no                no
-uw                1.0                1.000000e+00
-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, 5062.500000 < -31.250000 > 5718.750000
~/MyDocs/Downloads $


taixzo 2012-06-09 14:01

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

Originally Posted by nodevel (Post 1219831)
It's a good idea, although the perfect implementation would be like this:
Me:"Hey Saera, write a text for me"
S: "Who is the text for?"
Me: "Jack" (triggers contact search) or "789-456-123"
S: "Ok, please tell me the message for /Jack/"
Me: "Hey, Jack, How are you? Done."
S: "Would you like to send the text now?" (if Yes, the word /Done/ won't be included in the text, if No, then it will and Saera will continue listening."

Then Saera could pass the text to the command line as it is possible to send messages that way.


Anyway, thanks for the great work.

That's more or less how I imagined writing a text. However, three things in that that I am still trying to figure out:
  1. Pocketsphinx uses a pre-trained grammatical model. This model apparently assigns a very low probability to multiple numbers being used in sequence, so it never seems to recognize a phone number. Even saying ten of the most distinctively pronounced number (seven), it only recognized four sevens. This is something I need to work on with the voice model, but have been putting off until I have enough time to recompile the model (maybe Sunday).
  2. Also, Pocketsphinx is not very good with names. This could possibly be alleviated by running a phoneme search on all contacts once it's determined to be not a number.
  3. If the user is dictating a text, there needs to be some way to edit what they said. Ideally, this would also train the voice model. This is definately possible, but I need to learn more about pocketsphinx first.

Quote:

I had a hard time making Pocketsphinx recognize what I say. I was SO LUCKY to get Saera tell me the current time.
Is it possible anyway to 'train' the pocketsphinx to recognize what we say? Much like the microsoft voice recognition training.
Thanks a lot Taixzo !! Great Idea !!

Anything is possible with the N900 :D
I'm working on it.

taixzo 2012-06-09 14:05

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

Originally Posted by Joseph9560 (Post 1219867)
Code:

...
-hmm                               
...
-lm                               
...


Do you have the packages pocketsphinx-hmm-en-hub4wsj and pocketsphinx-lm-en-hub4 installed?

scoobydoo 2012-06-09 15:39

Re: [Announce] Saera: Siri clone for Maemo 5
 
having trouble with pocketsphinx bit's the rest downloaded and installed fine. here's my xterm screen

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:~# apt-get install pocketsphinx-hmm-en-hub4wsj
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pocketsphinx-hmm-en-hub4wsj
Nokia-N900:~# apt-get install pocketsphinx-lm-en-hub4
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pocketsphinx-lm-en-hub4
Nokia-N900:~# apt-get install gstreamer0.10-pocketsphinxReading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package gstreamer0.10-pocketsphinx
Nokia-N900:~# apt-get install pocketsphinx-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pocketsphinx-utils
Nokia-N900:~# apt-get install python-gst0.10
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-gst0.10 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Nokia-N900:~#

taixzo 2012-06-09 16:37

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

Originally Posted by scoobydoo (Post 1219914)
having trouble with pocketsphinx bit's the rest downloaded and installed fine. here's my xterm screen

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:~# apt-get install pocketsphinx-hmm-en-hub4wsj
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pocketsphinx-hmm-en-hub4wsj
Nokia-N900:~# apt-get install pocketsphinx-lm-en-hub4
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pocketsphinx-lm-en-hub4
Nokia-N900:~# apt-get install gstreamer0.10-pocketsphinxReading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package gstreamer0.10-pocketsphinx
Nokia-N900:~# apt-get install pocketsphinx-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pocketsphinx-utils
Nokia-N900:~# apt-get install python-gst0.10
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-gst0.10 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Nokia-N900:~#

I believe they are in extras-devel repository.

imo 2012-06-09 16:55

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

Originally Posted by scoobydoo (Post 1219914)
having trouble with pocketsphinx bit's the rest downloaded and installed fine. here's my xterm screen

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:~# apt-get install pocketsphinx-hmm-en-hub4wsj
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pocketsphinx-hmm-en-hub4wsj
Nokia-N900:~# apt-get install pocketsphinx-lm-en-hub4
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pocketsphinx-lm-en-hub4
Nokia-N900:~# apt-get install gstreamer0.10-pocketsphinxReading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package gstreamer0.10-pocketsphinx
Nokia-N900:~# apt-get install pocketsphinx-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pocketsphinx-utils
Nokia-N900:~# apt-get install python-gst0.10
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-gst0.10 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Nokia-N900:~#

apt-get update
apt-get upgrade
then proceed.
internet connection & catalouge must be enabled.

scoobydoo 2012-06-09 17:50

Re: [Announce] Saera: Siri clone for Maemo 5
 
the only thing i have'nt done is apt-get upgrade as i was told this can cause issue's

reinob 2012-06-09 18:34

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

Originally Posted by scoobydoo (Post 1219968)
the only thing i have'nt done is apt-get upgrade as i was told this can cause issue's

You don't need to upgrade anything. Just make sure that extras-devel is enabled, and then do apt-get update and install the packages.


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

vBulletin® Version 3.8.8