(base) yinxiuqu@debian:~$ lspci | grep -i audio
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02)
(base) yinxiuqu@debian:~$ cat /proc/asound/cards
0 [HDMI ]: HDA-Intel - HDA ATI HDMI
HDA ATI HDMI at 0xfeb64000 irq 43
1 [Generic ]: HDA-Intel - HD-Audio Generic
HD-Audio Generic at 0xfeb60000 irq 16
(base) yinxiuqu@debian:~$
以上是声卡信息,但是播放就提示:
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
play FAIL sox: Sorry, there is no default audio device configured
不知道是哪里的错误?
声卡能找到,却看不到喇叭
- yinmingfff
- 帖子: 50
- 注册时间: 2018-12-18 0:09
- 系统: debian 11
声卡能找到,却看不到喇叭
牧童短笛
- astolia
- 论坛版主
- 帖子: 6444
- 注册时间: 2008-09-18 13:11
Re: 声卡能找到,却看不到喇叭
你把你用的命令也写出来啊yinmingfff 写了: ↑2020-02-28 8:49 play FAIL sox: Sorry, there is no default audio device configured
不知道是哪里的错误?
- yinmingfff
- 帖子: 50
- 注册时间: 2018-12-18 0:09
- 系统: debian 11
Re: 声卡能找到,却看不到喇叭
os.system('play --no-show-progress --null --channels 1 synth %s sine %f' % (duration, freq))astolia 写了: ↑2020-02-28 10:54你把你用的命令也写出来啊yinmingfff 写了: ↑2020-02-28 8:49 play FAIL sox: Sorry, there is no default audio device configured
不知道是哪里的错误?
播放出视频文件也是只有图像没有声音,提示如下:
音频设备“default”无法使用:
没有那个文件或目录.
音频输出失败:
音频设备“default”无法使用:
没有那个文件或目录.
音频输出失败:
音频设备“default”无法使用:
没有那个文件或目录.
音频输出失败:
音频设备“default”无法使用:
没有那个文件或目录.
牧童短笛
- yinmingfff
- 帖子: 50
- 注册时间: 2018-12-18 0:09
- 系统: debian 11
Re: 声卡能找到,却看不到喇叭
早两天我播放还有声音,就是昨天在python下用os.system('play --no-show-progress --null --channels 1 synth %s sine %f' % (duration, freq))蜂鸣音做预警,还有声音,今天来看就出问题了。
牧童短笛
- astolia
- 论坛版主
- 帖子: 6444
- 注册时间: 2008-09-18 13:11
Re: 声卡能找到,却看不到喇叭
你创建个/etc/modprobe.d/alsa-default.conf,写上
然后重启试试?
代码: 全选
options snd_hda_intel index=1
- yinmingfff
- 帖子: 50
- 注册时间: 2018-12-18 0:09
- 系统: debian 11
- astolia
- 论坛版主
- 帖子: 6444
- 注册时间: 2008-09-18 13:11
Re: 声卡能找到,却看不到喇叭
我不知道你说的喇叭是什么东西,各个桌面环境用的都不一样。如果是用传统面板形式的桌面环境的,那就到面板设置里重设一下
- yinmingfff
- 帖子: 50
- 注册时间: 2018-12-18 0:09
- 系统: debian 11