![Aplay音频打开错误:设备或资源繁忙](https://linux22.com/image/1176429/Aplay%E9%9F%B3%E9%A2%91%E6%89%93%E5%BC%80%E9%94%99%E8%AF%AF%EF%BC%9A%E8%AE%BE%E5%A4%87%E6%88%96%E8%B5%84%E6%BA%90%E7%B9%81%E5%BF%99.png)
系统:Ubuntu 16.04
我想在命令行上执行的操作:
robotik@robotik:~/Desktop$ sudo aplay output.wav -D sysdefault:CARD=PCH > aplay.tht
结果 :
Home directory not accessible: Permission denied
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
aplay: main:788: audio open error: Device or resource busy
尝试 :
robotik@robotik:~/Desktop$ sudo aplay output.wav
Home directory not accessible: Permission denied
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
aplay: main:788: audio open error: Device or resource busy
robotik@robotik:~/Desktop$ sudo aplay output.wav
Home directory not accessible: Permission denied
Playing WAVE 'output.wav' : Signed 16 bit Little Endian, Rate 11025 Hz, Mono
robotik@robotik:~/Desktop$ sudo aplay output.wav -D sysdefault:CARD=PCH > aplay.tht
Home directory not accessible: Permission denied
Playing WAVE 'output.wav' : Signed 16 bit Little Endian, Rate 11025 Hz, Mono
robotik@robotik:~/Desktop$ sudo aplay output.wav -D sysdefault:CARD=PCH > aplay.tht
Home directory not accessible: Permission denied
Playing WAVE 'output.wav' : Signed 16 bit Little Endian, Rate 11025 Hz, Mono
robotik@robotik:~/Desktop$ sudo aplay output.wav -D sysdefault:CARD=PCH > aplay.tht
Home directory not accessible: Permission denied
Playing WAVE 'output.wav' : Signed 16 bit Little Endian, Rate 11025 Hz, Mono
robotik@robotik:~/Desktop$ sudo aplay output.wav -D sysdefault:CARD=PCH > aplay.tht
Home directory not accessible: Permission denied
Playing WAVE 'output.wav' : Signed 16 bit Little Endian, Rate 11025 Hz, Mono
robotik@robotik:~/Desktop$ sudo aplay output.wav -D sysdefault:CARD=PCH > aplay.tht
Home directory not accessible: Permission denied
Playing WAVE 'output.wav' : Signed 16 bit Little Endian, Rate 11025 Hz, Mono
robotik@robotik:~/Desktop$ sudo aplay output.wav -D sysdefault:CARD=PCH > aplay.tht
Home directory not accessible: Permission denied
Playing WAVE 'output.wav' : Signed 16 bit Little Endian, Rate 11025 Hz, Mono
robotik@robotik:~/Desktop$ sudo aplay output.wav -D sysdefault:CARD=PCH > aplay.tht
Home directory not accessible: Permission denied
Playing WAVE 'output.wav' : Signed 16 bit Little Endian, Rate 11025 Hz, Mono
robotik@robotik:~/Desktop$ sudo chown -R $USER:$USER $HOME/
robotik@robotik:~/Desktop$ sudo aplay output.wav -D sysdefault:CARD=PCH > aplay.tht