Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-25-2013, 11:08 AM   #16
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
PROGRESS!!

PHP Code:
ENV=/mnt/us/.bashrc
export ENV

SETPROP
=/usr/bin/lipc-set-prop

# Whitespace == :Space:Tab:Line Feed:Carriage Return:
readonly WSP_IFS=`printf "\x20\x09\x0A\x0D"`
# No Whitespace == :Line Feed:Carriage Return:
readonly NO_WSP=`printf "\x0A\x0D"`
# Whitespace == :Space:Tab:
readonly WSP=`printf "\x20\x09"`

IFS=${NO_WSP}

# Now however you write a read command block:
read C
case $C in
  
'HOME' IFS=${WSP_IFS} ; ("$SETPROP-s com.lab126.appmgrd start "app://com.lab 126.booklet.home") ;;
  * ) : 
# no-op ;
esac 

well.. between you both you got it going!

time to add more to this.

WOOT!
twobob is offline   Reply With Quote
Old 03-25-2013, 11:18 AM   #17
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 7,002
Karma: 6359394
Join Date: Feb 2012
Device: Too many.
two semi-colons to end a case statement:
* ) : ;; # no-op

Again, another one of my mistakes from last night, sorry about that.
knc1 is offline   Reply With Quote
Old 03-26-2013, 06:22 AM   #18
h1ro
Enthusiast
h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.
 
Posts: 34
Karma: 543274
Join Date: Dec 2012
Device: kindle pw
is there a builtin mic on the pw ?
h1ro is offline   Reply With Quote
Old 03-26-2013, 09:54 AM   #19
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 7,002
Karma: 6359394
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by h1ro View Post
is there a builtin mic on the pw ?
No. <<-- Amazon
knc1 is offline   Reply With Quote
Old 03-26-2013, 10:17 AM   #20
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
But This KindleTouch does (thanks pirl8 for digging that up)

Get em while you can...
twobob is offline   Reply With Quote
Old 03-26-2013, 02:43 PM   #21
PoP
Antonín ♯♭♪♮♫ ᵖʸᶠᵍᶜʳˡ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 519
Karma: 7391817
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3.₄, PRS-350, SGS3, Rπ, iPad Air
Quote:
Originally Posted by twobob View Post
Couldn't sleep.

Now it's built for all all kindles.

Meh : )

...
say BUTT to a kindle 3
...
NICE!
I'm all excited to try this but in my case I get a "Could not find Mic element" (see the warning at the end of the spoiler):
Spoiler:
[root@kindle bin]# ./pocketsphinx_continuous
INFO: cmd_ln.c(691): Parsing command line:
./pocketsphinx_continuous

Current configuration:
[NAME] [DEFLT] [VALUE]
-adcdev
-agc none none
-agcthresh 2.0 2.000000e+00
-alpha 0.97 9.700000e-01
-argfile
-ascale 20.0 2.000000e+01
-aw 1 1
-backtrace no no
-beam 1e-48 1.000000e-48
-bestpath yes yes
-bestpathlw 9.5 9.500000e+00
-bghist no no
-ceplen 13 13
-cmn current current
-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 yes
-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
-infile
-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 -1
-maxnewoov 20 20
-maxwpf -1 -1
-mdef
-mean
-mfclogdir
-min_endfr 0 0
-mixw
-mixwfloor 0.0000001 1.000000e-07
-mllr
-mmap yes yes
-ncep 13 13
-nfft 512 512
-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 1.600000e+04
-seed -1 -1
-sendump
-senlogdir
-senmgau
-silprob 0.005 5.000000e-03
-smoothspec no no
-svspec
-time no no
-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

INFO: cmd_ln.c(691): Parsing command line:
\
-nfilt 20 \
-lowerf 1 \
-upperf 4000 \
-wlen 0.025 \
-transform dct \
-round_filters no \
-remove_dc yes \
-svspec 0-12/13-25/26-38 \
-feat 1s_c_d_dd \
-agc none \
-cmn current \
-cmninit 56,-3,1 \
-varnorm no

Current configuration:
[NAME] [DEFLT] [VALUE]
-agc none none
-agcthresh 2.0 2.000000e+00
-alpha 0.97 9.700000e-01
-ceplen 13 13
-cmn current current
-cmninit 8.0 56,-3,1
-dither no no
-doublebw no no
-feat 1s_c_d_dd 1s_c_d_dd
-frate 100 100
-input_endian little little
-lda
-ldadim 0 0
-lifter 0 0
-logspec no no
-lowerf 133.33334 1.000000e+00
-ncep 13 13
-nfft 512 512
-nfilt 40 20
-remove_dc no yes
-round_filters yes no
-samprate 16000 1.600000e+04
-seed -1 -1
-smoothspec no no
-svspec 0-12/13-25/26-38
-transform legacy dct
-unit_area yes yes
-upperf 6855.4976 4.000000e+03
-varnorm no no
-verbose no no
-warp_params
-warp_type inverse_linear inverse_linear
-wlen 0.025625 2.500000e-02

INFO: acmod.c(246): Parsed model-specific feature parameters from /mnt/us/extens
ions/pocketsphinx/usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/fea
t.params
INFO: feat.c(713): Initializing feature stream to type: '1s_c_d_dd', ceplen=13,
CMN='current', VARNORM='no', AGC='none'
INFO: cmn.c(142): mean[0]= 12.00, mean[1..12]= 0.0
INFO: acmod.c(167): Using subvector specification 0-12/13-25/26-38
INFO: mdef.c(517): Reading model definition: /mnt/us/extensions/pocketsphinx/usr
/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/mdef
INFO: mdef.c(528): Found byte-order mark BMDF, assuming this is a binary mdef fi
le
INFO: bin_mdef.c(336): Reading binary model definition: /mnt/us/extensions/pocke
tsphinx/usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/mdef
INFO: bin_mdef.c(513): 50 CI-phone, 143047 CD-phone, 3 emitstate/phone, 150 CI-s
en, 5150 Sen, 27135 Sen-Seq
INFO: tmat.c(205): Reading HMM transition probability matrices: /mnt/us/extensio
ns/pocketsphinx/usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/trans
ition_matrices
INFO: acmod.c(121): Attempting to use SCHMM computation module
INFO: ms_gauden.c(198): Reading mixture gaussian parameter: /mnt/us/extensions/p
ocketsphinx/usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/means
INFO: ms_gauden.c(292): 1 codebook, 3 feature, size:
INFO: ms_gauden.c(294): 256x13
INFO: ms_gauden.c(294): 256x13
INFO: ms_gauden.c(294): 256x13
INFO: ms_gauden.c(198): Reading mixture gaussian parameter: /mnt/us/extensions/p
ocketsphinx/usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/variances

INFO: ms_gauden.c(292): 1 codebook, 3 feature, size:
INFO: ms_gauden.c(294): 256x13
INFO: ms_gauden.c(294): 256x13
INFO: ms_gauden.c(294): 256x13
INFO: ms_gauden.c(354): 0 variance values floored
INFO: s2_semi_mgau.c(903): Loading senones from dump file /mnt/us/extensions/poc
ketsphinx/usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/sendump
INFO: s2_semi_mgau.c(927): BEGIN FILE FORMAT DESCRIPTION
INFO: s2_semi_mgau.c(1022): Using memory-mapped I/O for senones
INFO: s2_semi_mgau.c(1296): Maximum top-N: 4 Top-N beams: 0 0 0
INFO: dict.c(317): Allocating 137543 * 20 bytes (2686 KiB) for word entries
INFO: dict.c(332): Reading main dictionary: /mnt/us/extensions/pocketsphinx/usr/
local/share/pocketsphinx/model/lm/en_US/cmu07a.dic
INFO: dict.c(211): Allocated 1010 KiB for strings, 1664 KiB for phones
INFO: dict.c(335): 133436 words read
INFO: dict.c(341): Reading filler dictionary: /mnt/us/extensions/pocketsphinx/us
r/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/noisedict
INFO: dict.c(211): Allocated 0 KiB for strings, 0 KiB for phones
INFO: dict.c(344): 11 words read
INFO: dict2pid.c(396): Building PID tables for dictionary
INFO: dict2pid.c(404): Allocating 50^3 * 2 bytes (244 KiB) for word-initial trip
hones
INFO: dict2pid.c(131): Allocated 30200 bytes (29 KiB) for word-final triphones
INFO: dict2pid.c(195): Allocated 30200 bytes (29 KiB) for single-phone word trip
hones
INFO: ngram_model_arpa.c(77): No \data\ mark in LM file
INFO: ngram_model_dmp.c(142): Will use memory-mapped I/O for LM file
INFO: ngram_model_dmp.c(196): ngrams 1=5001, 2=436879, 3=418286
INFO: ngram_model_dmp.c(242): 5001 = LM.unigrams(+trailer) read
INFO: ngram_model_dmp.c(288): 436879 = LM.bigrams(+trailer) read
INFO: ngram_model_dmp.c(314): 418286 = LM.trigrams read
INFO: ngram_model_dmp.c(339): 37293 = LM.prob2 entries read
INFO: ngram_model_dmp.c(359): 14370 = LM.bo_wt2 entries read
INFO: ngram_model_dmp.c(379): 36094 = LM.prob3 entries read
INFO: ngram_model_dmp.c(407): 854 = LM.tseg_base entries read
INFO: ngram_model_dmp.c(463): 5001 = ascii word strings read
INFO: ngram_search_fwdtree.c(99): 788 unique initial diphones
INFO: ngram_search_fwdtree.c(147): 0 root, 0 non-root channels, 60 single-phone
words
INFO: ngram_search_fwdtree.c(186): Creating search tree
INFO: ngram_search_fwdtree.c(191): before: 0 root, 0 non-root channels, 60 singl
e-phone words
INFO: ngram_search_fwdtree.c(326): after: max nonroot chan increased to 13428
INFO: ngram_search_fwdtree.c(338): after: 457 root, 13300 non-root channels, 26
single-phone words
INFO: ngram_search_fwdflat.c(156): fwdflat: min_ef_width = 4, max_sf_win = 25
INFO: continuous.c(371): ./pocketsphinx_continuous COMPILED ON: Mar 24 2013, AT:
03:41:36

Warning: Could not find Mic element
READY....
♥INFO: ngram_search_fwdtree.c(430): TOTAL fwdtree 0.00 CPU nan xRT
INFO: ngram_search_fwdtree.c(433): TOTAL fwdtree 0.00 wall nan xRT
INFO: ngram_search_fwdflat.c(174): TOTAL fwdflat 0.00 CPU nan xRT
INFO: ngram_search_fwdflat.c(177): TOTAL fwdflat 0.00 wall nan xRT
INFO: ngram_search.c(317): TOTAL bestpath 0.00 CPU nan xRT
INFO: ngram_search.c(320): TOTAL bestpath 0.00 wall nan xRT
♥[root@kindle bin]#

How should I invoke it / configure it for a K3?
PoP is offline   Reply With Quote
Old 03-26-2013, 03:04 PM   #22
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
It works on the k3.

Just ignore that warning. it finds it fine once you start talking.

or you could: (try to change device with -adcdev option)

if it really bothers you.

The check has been removed in the code in the next iteration... let me dig that up for you..

You would run the old one like:
/mnt/us/extensions/pocketsphinx/usr/local/bin/pocketsphinx_continuous -logfn /dev/null

that gives less spurious/verbose output..


EDIT: OKAY I ATTACHED MY CURRENT DEVELOPMENT FILES BELOW...

ONE THING THOUGH... the attachment below... the MADE BY ME scripts don't work yet... (pictured) so dont bother running them yet...

Im only adding here for you to rip what you want out of it...

The newly attached stuff here runs on all devices and has most of the warnings patched out.

You would run this one like...

/mnt/us/extensions/pocketsphinx/usr/local/bin/pocketsphinx_continuous -logfn /dev/null -lm /mnt/us/extensions/pocketsphinx/usr/local/share/pocketsphinx/model/gui/gui.lm -dict /mnt/us/extensions/pocketsphinx/usr/local/share/pocketsphinx/model/gui/gui.dic | cut -c 12-


It only recognises the words in THIS list

Spoiler:
Code:
next page
page forward
forward
page right

page back
prior page
backward
previous page
page left

home
go home
close
close that
close it
kill it
kill that
kill
home screen

browser
web
web browser
w_w_w
world wide web

cool
run cool
open cool

select one
click one
choose one
open one

select two
click two
choose two
open two

select three
click three
choose three
open three

select four
click four
choose four
open four

select five
click five
choose five
open five

select six
click six
choose six
open six

select seven
click seven
choose seven
open seven

select eight
click eight
choose eight
open eight

select nine
click nine
choose nine
open nine

select ten
click ten
choose ten
open ten

connect networking
disconnect networking
networking start
connect u_s_b networking

networking end
network up
network down
disconnect u_s_b networking

tap
press
press that
press it
open
open that
open it
click that
click it
click

screen saver
shut down
power down
power off

reboot

grab screenie
take screenie

open store
amazon store
buy books



Go HERE: http://www.speech.cs.cmu.edu/tools/lmtool-new.html to build your own word list...
Attached Thumbnails
Click image for larger version

Name:	Selection_275.png
Views:	38
Size:	11.6 KB
ID:	103498  
Attached Files
File Type: zip pocketsphinx+flite.zip (15.44 MB, 28 views)
File Type: zip usr-local-share-model.zip (4.82 MB, 28 views)

Last edited by twobob; 03-28-2013 at 07:43 AM.
twobob is offline   Reply With Quote
Old 03-26-2013, 03:15 PM   #23
PoP
Antonín ♯♭♪♮♫ ᵖʸᶠᵍᶜʳˡ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 519
Karma: 7391817
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3.₄, PRS-350, SGS3, Rπ, iPad Air
Ahh. Thanks I can see hear lots of fun ahead.

Last edited by PoP; 03-26-2013 at 03:19 PM.
PoP is offline   Reply With Quote
Old 03-26-2013, 03:40 PM   #24
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
: ) sooooooo cool right?

Still hacking on the gui
twobob is offline   Reply With Quote
Old 03-26-2013, 04:29 PM   #25
h1ro
Enthusiast
h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.h1ro ought to be getting tired of karma fortunes by now.
 
Posts: 34
Karma: 543274
Join Date: Dec 2012
Device: kindle pw
as an alternative would it be possible to make the OTG port work with an external soundcard on the pw? all my music streaming in my house is done by armv5 or armv7 machines with usb soundcards, too.
h1ro is offline   Reply With Quote
Old 03-26-2013, 04:39 PM   #26
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
sure... And the minute we ACTUALLY RAISE ENOUGH FUNDS in the KUAL project to get me one I could help you out there... (and a serial cable)

Until then. You are on your own I am afraid.

But of course the answer is YES

find modules here https://bitbucket.org/twobob/kual-system

EDIT: (I just want to point out I have already put my hand in my pocket to tune of a few hundred quid on devices, it's not like I'm being tight)

So far. Ł20 has been donated. IN TOTAL. I even put more than half to that again to get the k4...

Last edited by twobob; 03-26-2013 at 05:52 PM.
twobob is offline   Reply With Quote
Old 03-26-2013, 08:58 PM   #27
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 7,002
Karma: 6359394
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by h1ro View Post
as an alternative would it be possible to make the OTG port work with an external soundcard on the pw? all my music streaming in my house is done by armv5 or armv7 machines with usb soundcards, too.
Let us know when you get it working, there have been several such requests.

PS: This thread is about audio INPUT (voice) recognition, not music output.
knc1 is offline   Reply With Quote
Old 03-29-2013, 12:56 AM   #28
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
For tomorrow

PHP Code:
#!/bin/sh

QUOT='{"titleBar":{"clientParams":{"secondary":"'
SECOND='","useDefaultPrimary":false}}}'"'"

# SETUP SOME PATHS
LOGFILE="/var/tmp/commands"
SETPROP="/usr/bin/lipc-set-prop"
EXTDIR="/mnt/us/extensions/pocketsphinx"
BINARY=$EXTDIR"/usr/local/bin/pocketsphinx_continuous"
LOOPER=$EXTDIR"/looper.sh"
BB="/mnt/us/extensions/system/bin/busybox"

# SETUP STARTUP ANNOUNCEMENT
STARTUPANNOUNCE="Welcome To KindleTalk"

# DETERMINE MACHINE TYPE 
ARCH="`uname -m`"

# LONGEST SENTENCE (like "I[ ]AM[ ]A[ ]SENTENCE[ ]")
SPACEMAX="6"

# CLEAR DOWN ANY OLD JUNK
echo -"" > /var/tmp/talk
echo -"" >/var/tmp/wordmatch
echo -"" >/var/tmp/command

# FORCE 1st loop
echo "$STARTUPANNOUNCE"$LOGFILE"

# START LOOP
while :; 
do 
usleep 50000
OUT
=$(tail -n1 "$LOGFILE"  tr '\n' ' ' )
SPACECOUNT=$(echo "$OUTgrep -" " wc -l)
#echo -n $OUT

TEST=$( echo "$OUTtr -' 'tr -'.')
#echo "TEST is --(""$TEST"")--"
#echo "COMMAND PARSED WAS --(""$OUT"")--"

# DO WE HAVE A COMMAND (remove whitespace for the test)
if [ -"$TEST]; then

# IS A JUMBLE OF WORDS OR LESS THAN 3 WORDS
if [ ! "$SPACECOUNT-le "$SPACEMAX]; then
echo  "Space count $SPACECOUNT Not Less than Maximum spaces allowed $SPACEMAX"
"
$SETPROP-s com.lab126.pillow configureChrome -"$QUOT""Phrase too long... Take it slow""$SECOND"
OUT=""
/usr/bin/aplay "$EXTDIR""/usr/on1.wav"
fi

echo -$OUT ." > /var/tmp/talk 
echo -"$OUT> /var/tmp/command

VAR=$(cat /var/tmp/talk)
TRIMVAR=$(echo "$OUTsed 's/ *$//g')

# IS IT A VALID NON-SPACE ONLY VARIABLE?
if [ -"$TRIMVAR"  ]; then

# RUN POSSIBLE ACTION MATCHING

echo "Case was --(""$TRIMVAR"")--"
echo -"TRUE" > /var/tmp/wordmatch
case $TRIMVAR in

"$STARTUPANNOUNCE")\
        ( echo 
"RECOGNITION INTIALISED" ) ;;

"HOME"|"GO HOME"|"CLOSE"|"CLOSE THAT"|"CLOSE IT"|"KILL IT"|"KILL THAT"|"KILL"|"HOME SCREEN")\
        ( 
"$SETPROP-s com.lab126.appmgrd start 'app://com.lab126.booklet.home'; ) ;;

"NEXT PAGE"|"PAGE FORWARD"|"FORWARD"|"PAGE RIGHT")\
        (  
"$SETPROP-s com.lab126.appmgrd start 'app://com.lab126.booklet.home' ) ;;

"BROWSER"|"WEB BROWSER"|"W_W_W"|"WORLD WIDE WEB"|"WEB")\
        ( 
"$SETPROP-s com.lab126.appmgrd start 'app://com.lab126.browser' ) ;;

"RUN COOL"|"OPEN COOL"|"SELECT COOL")\
        (  echo -
"KINDLET" > /var/tmp/wordmatch  ) ;;  # They only have 5 seconds to start up so lets really free up resources

"OPEN NETWORKING"|"RUN NETWORKING"|"U_S_B NETWORKING"|"RUN U_S_B NETWORKING"|"NETWORK"|"NETWORKING"|"RUN NETWORK")\
        ( /
mnt/us/usbnet/bin/usbnetwork ) ;;

"SCREEN SAVER"|"POWER OFF"|"POWER DOWN")\
        ( 
"$SETPROP-i com.lab126.powerd preventScreenSaver 0; /usr/bin/powerd_test -) ;;

"KILL SCREEN SAVER")\
        ( 
"$SETPROP-i com.lab126.powerd preventScreenSaver 1;  ) ;;

"SHUT DOWN")\
        ( echo -
"QUIT" > /var/tmp/wordmatch ) ;;

*) ( echo -
"FALSE" > /var/tmp/wordmatch ; echo "Case was $OUT is not processed" )  ;;
esac

MATCH
=$( cat /var/tmp/wordmatch )

echo 
"Words found as command Match = $MATCH"

if [ "$MATCH== "KINDLET" ] ; then
killall 
-9 pocketsphinx_continuous 
"$SETPROP-s com.lab126.pillow configureChrome -"$QUOT""STARTING KUAL!""$SECOND"
usleep 30000;
"$SETPROPcom.lab126.appmgrd start "app://com.lab126.booklet.kindlet/mnt/us/documents/KindleLauncher-2.0.azw2"
sleep 5
fi

if [ "$MATCH== "QUIT" ] ; then
killall 
-9 pocketsphinx_continuous 
"$SETPROP-s com.lab126.pillow configureChrome -"$QUOT""Goodbye""$SECOND
exit 
fi

if [ "$MATCH== "TRUE" ] ; then

# shut down the listener
killall -9 pocketsphinx_continuous
usleep 10000

# IS THIS A HIGHER DEVICE?
if [ "$ARCH== "armv7l" ] ; then

lipc
-set-prop com.lab126.pillow configureChrome -"$QUOT""$OUT.""$SECOND"  
fi

# Announce Recognised Words
/mnt/us/extensions/flite/flite -/var/tmp/talk &
sleep 1

# START LISTENER AGAIN
"$LOOPER&
else
# ALERT BAD MATCH
"$SETPROP-s com.lab126.pillow configureChrome -"$QUOT""Phase not recognised.""$SECOND"
/usr/bin/aplay "$EXTDIR""/usr/on3.wav"
# End actions on MATCHED
fi

echo -'' > /var/tmp/commands
sleep 2
fi

# TIDY UP AGAIN ?
echo -"" > /var/tmp/talk
echo -"" > /var/tmp/command
echo -"" "$LOGFILE

# IS THIS A HIGHER DEVICE?
if [ "$ARCH== "armv7l" ] ; then
"$SETPROP-s com.lab126.pillow configureChrome -"$QUOT""Now Listening.""$SECOND"

# CLOSE LOOPS
fi
# INDICATE READINESS... RESET SOUND CARD?
/usr/bin/aplay "$EXTDIR""/usr/on2.wav"
fi
done 

Last edited by twobob; 03-29-2013 at 02:07 PM. Reason: Embedded the command structure now...
twobob is offline   Reply With Quote
Old 03-29-2013, 02:59 AM   #29
decat88ba
Junior Member
decat88ba writes the songs that make the whole world sing.decat88ba writes the songs that make the whole world sing.decat88ba writes the songs that make the whole world sing.decat88ba writes the songs that make the whole world sing.decat88ba writes the songs that make the whole world sing.decat88ba writes the songs that make the whole world sing.decat88ba writes the songs that make the whole world sing.decat88ba writes the songs that make the whole world sing.decat88ba writes the songs that make the whole world sing.decat88ba writes the songs that make the whole world sing.decat88ba writes the songs that make the whole world sing.
 
decat88ba's Avatar
 
Posts: 4
Karma: 40852
Join Date: Apr 2012
Device: Kindle Touch ftw
You guys kick ass. As if I didn't love my KT for allowing me to carry my entire library in my pocket (or satchel, it's still kind of big for a pocker), knowing there's a community of motivated, capable people working on making it even more awesome is in itself even more awesome. The previous sentence makes sense.

I don't have any programming skills or pounds sterling to contribute to the cause (at the moment), but I can remind you that your efforts are very much appreciated.

Although there are people in MR who just request stuff without offering anything in return, you probably need to remember that most of us are just really thankful to have you.

Cheers,
Alex
decat88ba is offline   Reply With Quote
Old 03-29-2013, 07:48 AM   #30
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Thanks for the encouragement. Appreciated
twobob is offline   Reply With Quote
Reply

Tags
audio, audio recognition, kindle 5, kindle touch, pocketsphinx, programming api, recognition, twobob

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibre's new plugin API kovidgoyal Plugins 26 05-07-2011 03:43 PM
Links to API's...? theranch General Discussions 0 05-06-2011 10:32 AM
New metadata API in 0.8 questions kiwidude Development 38 04-18-2011 11:42 AM
Goodreads has published an API EricLandes Calibre 6 01-12-2011 05:39 PM
Blackstone Audio to release audio books as DRM-free MP3s Donnageddon News 4 07-07-2008 01:16 PM


All times are GMT -4. The time now is 09:28 PM.


MobileRead.com is a privately owned, operated and funded community.