Advertisement
bossjones

pocketsphinx_and_soundpulse_attempt_to_run

Jul 22nd, 2013
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.37 KB | None | 0 0
  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.
  24. ####
  25. #### root@scarlettpi:~# ps aux | grep pulse
  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
  27. #### root      3085  0.0  0.1   3544   808 pts/0    S+   22:05   0:00 grep pulse
  28. #### root@scarlettpi:~#
  29.  
  30.  
  31. i'm going to try and run the following command. Any immediate issues that stand out?
  32.  
  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
  34.  
  35. OR I can run
  36.  
  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
  38.  
  39. Ran both...........
  40.  
  41. Got the following:
  42.  
  43. [.......Blah blah blah blah blah]....
  44. INFO: ngram_search_fwdtree.c(99): 788 unique initial diphones
  45. INFO: ngram_search_fwdtree.c(147): 0 root, 0 non-root channels, 60 single-phone words
  46. INFO: ngram_search_fwdtree.c(186): Creating search tree
  47. INFO: ngram_search_fwdtree.c(191): before: 0 root, 0 non-root channels, 60 single-phone words
  48. INFO: ngram_search_fwdtree.c(326): after: max nonroot chan increased to 13428
  49. INFO: ngram_search_fwdtree.c(338): after: 457 root, 13300 non-root channels, 26 single-phone words
  50. INFO: ngram_search_fwdflat.c(156): fwdflat: min_ef_width = 4, max_sf_win = 25
  51. INFO: continuous.c(371): pocketsphinx_continuous COMPILED ON: Jul 22 2013, AT: 01:21:55
  52.  
  53. Error opening audio device pcm.pulse for capture: Access denied
  54. FATAL_ERROR: "continuous.c", line 246: Failed to open audio device
  55.  
  56. Sigh....What am I still missing.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement