Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # pulse audio + pocketsphinx testing
- #### #############################
- #### based on the following:
- #### root@scarlettpi:~# cat /etc/asound.conf
- #### pcm.pulse {
- #### type pulse
- #### }
- ####
- #### ctl.pulse {
- #### type pulse
- #### }
- ####
- #### pcm.!default {
- #### type pulse
- #### }
- ####
- #### ctl.!default {
- #### type pulse
- #### }
- #### root@scarlettpi:~#
- ####
- #### AND ... the daemon is running look:
- root@scarlettpi:/home/pi# ps uax | grep audio
- pi 3128 26.5 1.2 99976 5792 ? S<l 02:02 0:01 /usr/bin/pulseaudio --start --log-target=syslog --system=false
- pi 3136 2.6 0.5 14636 2616 ? S 02:02 0:00 /usr/lib/pulseaudio/pulse/gconf-helper
- root 3145 0.0 0.1 3544 808 pts/0 S+ 02:02 0:00 grep audio
- root@scarlettpi:/home/pi# tail -f /var/log/syslog
- 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.
- Jul 23 02:02:05 scarlettpi rtkit-daemon[2854]: Supervising 2 threads of 1 processes of 1 users.
- 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.
- Jul 23 02:02:06 scarlettpi rtkit-daemon[2854]: Supervising 3 threads of 1 processes of 1 users.
- 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
- Jul 23 02:02:06 scarlettpi pulseaudio[3128]: [pulseaudio] module.c: Failed to load module "module-jackdbus-detect" (argument: ""): initialization failed.
- Jul 23 02:02:06 scarlettpi pulseaudio[3128]: [pulseaudio] socket-server.c: socket(PF_INET6): Address family not supported by protocol
- Jul 23 02:02:06 scarlettpi pulseaudio[3128]: [pulseaudio] main.c: Module load failed.
- 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
- 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
- ^C
- root@scarlettpi:/home/pi#
- i'm going to try and run the following command. Any immediate issues that stand out?
- 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
- OR I can run
- 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
- Ran both..
- Got the following:
- [.......Blah blah blah blah blah]....
- 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 single-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: Jul 22 2013, AT: 01:21:55
- Error opening audio device pulse for capture: Connection refused
- FATAL_ERROR: "continuous.c", line 246: Failed to open audio device
- pi@scarlettpi ~ $
- Sigh....What am I still missing.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement