2016-03-08 96 views
-2

我正在爲pocketsphinx尋找長時間的解決方案。我什麼都試過 apt-get remove pulseaudio -y aptitude purge pulseaudio -y apt-get install bison -y cd /usr/install tar -xvf sphinxbase-0.8.tar.gz cd sphinxbase-0.8 ./configure make make install tar -xvf pocketsphinx-0.8.tar.gz cd pocketsphinx-0.8 ./configure make make install 沒有文件/etc/modprob.d/alsa-base.config所以我更新/usr/shared/alsa/alsa.config取消註釋load card-specific configuration files (on request)/lib/modprob.d/aliases.conf評論選項snd-usb-audio index=-2 每次從我所做的各種資源嘗試。我可以錄製arecord -f cd -D plughw:1,0 -d 20 test.wav並使用aplay test.wav 播放同一個文件我的聲卡是 0 [ALSA ]: bcm2835 - bcm2835 ALSA bcm2835 ALSA 1 [CAMERA ]: USB-Audio - USB2.0 PC CAMERA ARKMICRO USB2.0 PC CAMERA at usb-3f980000.usb-1.2,high speed 每個支持的庫都會下載(不知道有多少),但仍然無法正常工作。 我正在使用raspbian jessie圖像。FATAL_ERROR:「continuous.c」,第246行:無法打開音頻設備

回答

1

不建議使用pocketsphinx-0.8,pocketsphinx-5prealpha更準確。

錄製音頻設備與-adcdev選項指定:

pocketsphinx_continuous -inmic yes -adcdev plughw:1,0 

您還可以配置ALSA使用plughw:1,0默認錄音設備,在這種情況下,你不會需要-adcdev

相關問題