![如何在 Ubuntu 中播放聲音](https://rvso.com/image/1072865/%E5%A6%82%E4%BD%95%E5%9C%A8%20Ubuntu%20%E4%B8%AD%E6%92%AD%E6%94%BE%E8%81%B2%E9%9F%B3.png)
我搜尋了許多討論此主題的查詢和答案,但無法解決我的安裝問題。我使用的是 Ubuntu 20.04,嘗試aplay
在終端機上執行時不斷收到以下錯誤。
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:852: audio open error: No such file or directory
我嘗試過其他程式碼,發現該程式碼alsamixer
不存在並且/proc/asound/
目錄不在我的根目錄中。我已經運行lspci
並獲得了聲卡作為回報,但運行aplay -l
沒有返回任何聲卡。運行lsmod
也沒有給我任何模組。我嘗試過重新安裝軟體包,但要么仍然不起作用,要么沒有 20.04 發行版的版本,所以我陷入了困境。 (我嘗試過重新安裝音響系統,aptitiude
但這似乎在 20.04 上也不起作用)任何幫助將不勝感激。
編輯:我忘了提及我在 ubuntu 上使用 wsl,而不是 Linux。