2016-03-08 90 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

相关问题