SHOW:
|
|
- or go back to the newest paste.
1 | # pulse audio + pocketsphinx testing | |
2 | ||
3 | #### ############################# | |
4 | #### based on the following: | |
5 | #### root@scarlettpi:~# cat /etc/asound.conf | |
6 | #### pcm.pulse { | |
7 | #### type pulse | |
8 | #### } | |
9 | #### | |
10 | #### ctl.pulse { | |
11 | #### type pulse | |
12 | #### } | |
13 | #### | |
14 | #### pcm.!default { | |
15 | #### type pulse | |
16 | #### } | |
17 | #### | |
18 | #### ctl.!default { | |
19 | #### type pulse | |
20 | #### } | |
21 | #### root@scarlettpi:~# | |
22 | #### | |
23 | - | #### AND ... the daemon is running... again this is a raspberry pi, shouldnt be any need for it to run in single user mode. |
23 | + | #### AND ... the daemon is running look: |
24 | ||
25 | - | #### root@scarlettpi:~# ps aux | grep pulse |
25 | + | root@scarlettpi:/home/pi# ps uax | grep audio |
26 | - | #### pulse 2793 0.1 1.0 96396 4748 ? S<l 21:55 0:00 /usr/bin/pulseaudio --system --disallow-exit --disallow-module-loading=1 --daemonize --log-target=syslog --high-priority |
26 | + | pi 3128 26.5 1.2 99976 5792 ? S<l 02:02 0:01 /usr/bin/pulseaudio --start --log-target=syslog --system=false |
27 | - | #### root 3085 0.0 0.1 3544 808 pts/0 S+ 22:05 0:00 grep pulse |
27 | + | pi 3136 2.6 0.5 14636 2616 ? S 02:02 0:00 /usr/lib/pulseaudio/pulse/gconf-helper |
28 | - | #### root@scarlettpi:~# |
28 | + | root 3145 0.0 0.1 3544 808 pts/0 S+ 02:02 0:00 grep audio |
29 | ||
30 | ||
31 | root@scarlettpi:/home/pi# tail -f /var/log/syslog | |
32 | Jul 23 02:02:05 scarlettpi rtkit-daemon[2854]: Successfully made thread 3129 of process 3128 (/usr/bin/pulseaudio) owned by '1000' RT at priority 5. | |
33 | - | root@scarlettpi:~# pocketsphinx_continuous -adcdev Pulse -mftt=512 -samprate 48000 -lm /usr/install/pocketsphinx-0.8/custom_language/en_model.lm -dict /usr/install/pocketsphinx-0.8/custom_language/cmudict.hub4.06d.dict -hmm /usr/install/pocketsphinx-0.8/model/hmm |
33 | + | Jul 23 02:02:05 scarlettpi rtkit-daemon[2854]: Supervising 2 threads of 1 processes of 1 users. |
34 | Jul 23 02:02:06 scarlettpi rtkit-daemon[2854]: Successfully made thread 3133 of process 3128 (/usr/bin/pulseaudio) owned by '1000' RT at priority 5. | |
35 | Jul 23 02:02:06 scarlettpi rtkit-daemon[2854]: Supervising 3 threads of 1 processes of 1 users. | |
36 | Jul 23 02:02:06 scarlettpi pulseaudio[3128]: [pulseaudio] module-jackdbus-detect.c: Unable to contact D-Bus session bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 | |
37 | - | root@scarlettpi:~# pocketsphinx_continuous -adcdev pcm.pulse -mftt=512 -samprate 48000 -lm /usr/install/pocketsphinx-0.8/custom_language/en_model.lm -dict /usr/install/pocketsphinx-0.8/custom_language/cmudict.hub4.06d.dict -hmm /usr/install/pocketsphinx-0.8/model/hmm |
37 | + | Jul 23 02:02:06 scarlettpi pulseaudio[3128]: [pulseaudio] module.c: Failed to load module "module-jackdbus-detect" (argument: ""): initialization failed. |
38 | Jul 23 02:02:06 scarlettpi pulseaudio[3128]: [pulseaudio] socket-server.c: socket(PF_INET6): Address family not supported by protocol | |
39 | - | Ran both........... |
39 | + | Jul 23 02:02:06 scarlettpi pulseaudio[3128]: [pulseaudio] main.c: Module load failed. |
40 | Jul 23 02:02:06 scarlettpi pulseaudio[3128]: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 | |
41 | Jul 23 02:02:06 scarlettpi pulseaudio[3128]: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 | |
42 | ^C | |
43 | root@scarlettpi:/home/pi# | |
44 | ||
45 | ||
46 | i'm going to try and run the following command. Any immediate issues that stand out? | |
47 | ||
48 | pi@scarlettpi:~$ pocketsphinx_continuous -adcdev pulse -mftt=512 -samprate 48000 -lm /usr/install/pocketsphinx-0.8/custom_language/en_model.lm -dict /usr/install/pocketsphinx-0.8/custom_language/cmudict.hub4.06d.dict -hmm /usr/install/pocketsphinx-0.8/model/hmm | |
49 | ||
50 | OR I can run | |
51 | ||
52 | pi@scarlettpi:~$ pocketsphinx_continuous -adcdev pcm.pulse -mftt=512 -samprate 48000 -lm /usr/install/pocketsphinx-0.8/custom_language/en_model.lm -dict /usr/install/pocketsphinx-0.8/custom_language/cmudict.hub4.06d.dict -hmm /usr/install/pocketsphinx-0.8/model/hmm | |
53 | - | Error opening audio device pcm.pulse for capture: Access denied |
53 | + | |
54 | Ran both.. | |
55 | ||
56 | Got the following: | |
57 | ||
58 | [.......Blah blah blah blah blah].... | |
59 | INFO: ngram_model_arpa.c(77): No \data\ mark in LM file | |
60 | INFO: ngram_model_dmp.c(142): Will use memory-mapped I/O for LM file | |
61 | INFO: ngram_model_dmp.c(196): ngrams 1=5001, 2=436879, 3=418286 | |
62 | INFO: ngram_model_dmp.c(242): 5001 = LM.unigrams(+trailer) read | |
63 | INFO: ngram_model_dmp.c(288): 436879 = LM.bigrams(+trailer) read | |
64 | INFO: ngram_model_dmp.c(314): 418286 = LM.trigrams read | |
65 | INFO: ngram_model_dmp.c(339): 37293 = LM.prob2 entries read | |
66 | INFO: ngram_model_dmp.c(359): 14370 = LM.bo_wt2 entries read | |
67 | INFO: ngram_model_dmp.c(379): 36094 = LM.prob3 entries read | |
68 | INFO: ngram_model_dmp.c(407): 854 = LM.tseg_base entries read | |
69 | INFO: ngram_model_dmp.c(463): 5001 = ascii word strings read | |
70 | INFO: ngram_search_fwdtree.c(99): 788 unique initial diphones | |
71 | INFO: ngram_search_fwdtree.c(147): 0 root, 0 non-root channels, 60 single-phone words | |
72 | INFO: ngram_search_fwdtree.c(186): Creating search tree | |
73 | INFO: ngram_search_fwdtree.c(191): before: 0 root, 0 non-root channels, 60 single-phone words | |
74 | INFO: ngram_search_fwdtree.c(326): after: max nonroot chan increased to 13428 | |
75 | INFO: ngram_search_fwdtree.c(338): after: 457 root, 13300 non-root channels, 26 single-phone words | |
76 | INFO: ngram_search_fwdflat.c(156): fwdflat: min_ef_width = 4, max_sf_win = 25 | |
77 | INFO: continuous.c(371): pocketsphinx_continuous COMPILED ON: Jul 22 2013, AT: 01:21:55 | |
78 | ||
79 | Error opening audio device pulse for capture: Connection refused | |
80 | FATAL_ERROR: "continuous.c", line 246: Failed to open audio device | |
81 | pi@scarlettpi ~ $ | |
82 | ||
83 | Sigh....What am I still missing. |