audio - 如何修复 : device_list:270: no soundcard found (Ubuntu server 18. 04)?

标签 audio alsa ubuntu-server ubuntu-18.04 soundcard

我试图使用 USB 麦克风捕获一些音频,但我收到了标题中提到的错误消息。

这是一些(希望是相关的)命令的输出:

arecord -l
arecord: device_list:270: no soundcards found...

ls /cat/asound*
ls: cannot access '/cat/asound*': No such file or directory

lspci -v
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
Subsystem: Hewlett-Packard Company 7 Series/C216 Chipset Family High Definition Audio Controller
Flags: bus master, fast devsel, latency 0, IRQ 29
Memory at f7c30000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

我尝试在运行时再次删除并安装 alsa

sudo arecord -l

输出是:

**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC221 Analog [ALC221 Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: ALC221 Alt Analog [ALC221 Alt Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0

我想这意味着 Ubuntu 正在识别我的声卡。可以找到 ALSA Info 脚本 here .

如有任何帮助,我们将不胜感激。

最佳答案

在使用 aplay l 后,我有 aplay: device_list:268: No sound card found...。按照下面的 Ubuntu 故障排除指南,我安装了 apt install linux-generic 并在重新启动后它从 ova 的 Ubuntu Server 20.04 中的 VirtualBox 找到了我的声卡。

https://help.ubuntu.com/community/SoundTroubleshooting

关于audio - 如何修复 : device_list:270: no soundcard found (Ubuntu server 18. 04)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53416047/

相关文章:

java - 读取和播放音频文件

c - 使用 ALSA API 演奏视唱音符?

c - ALSA PCM调用的语义

linux - 如何使用 bash 脚本将 crontab 作业添加到 crontab?

javascript - Node.js websocket 错误 "Error: listen EADDRNOTAVAIL Error: listen EADDRNOTAVAIL"

php - Nginx 不显示 404 页面,而是在根目录中提供索引文件

android - 检测耳机是否插入 Android 设备。

c++ Jackaudio无法获得立体声

android - 如何将base64编码的音频转换为JSON?

python - PyAudio 工作,但每次都吐出错误消息