pocketsphinx_continuous 无法打开音频设备 [英] pocketsphinx_continuous failed to open audio device

查看:38
本文介绍了pocketsphinx_continuous 无法打开音频设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装 pocketsphinx 后,当我尝试运行 pocketsphinx_continuous 程序时出现此错误..

After installing pocketsphinx , when I tried to run the pocketsphinx_continuous program then I got this error..

_oss.c(103): Failed to open audio device(/dev/dsp): No such file or directory FATAL_ERROR: "continuous.c", line 242: Failed top open audio device

_oss.c(103): Failed to open audio device(/dev/dsp): No such file or directory FATAL_ERROR: "continuous.c", line 242: Failed top open audio device

如何解决这个问题?

推荐答案

从终端安装以下内容:

sudo apt-get update;sudo apt-get dist-upgrade;
sudo apt-get install pavucontrol linux-sound-base alsa-base alsa-utils lightdm ubuntu-desktop  linux-image-`uname -r` libasound2;
sudo apt-get -y --reinstall install linux-sound-base alsa-base alsa-utils lightdm ubuntu-desktop  linux-image-`uname -r` libasound2;
killall pulseaudio;
rm -r ~/.pulse*;
ubuntu-support-status;
sudo usermod -aG `cat /etc/group | grep -e '^pulse:' -e '^audio:' -e '^pulse-access:' -e '^pulse-rt:' -e '^video:' | awk -F: '{print $1}' | tr '\n' ',' | sed 's:,$::g'` `whoami`

sudo apt-get install pulseaudio

sudo apt-get install libpulse-dev

sudo apt-get install osspd

可能需要一段时间,但对我来说效果很好.

Might take a while, but it worked perfectly for me.

这篇关于pocketsphinx_continuous 无法打开音频设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆