Aplay音频打开错误:设备或资源繁忙

Aplay音频打开错误:设备或资源繁忙

系统: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

相关内容