I am trying to have some fun by playing some random audio using /dev/audio under Ubuntu 17.10. The command cat /dev/urandom > /dev/audio executes successfully but it outputs absolutely nothing to my default speaker. What is wrong here? Thanks...
UPDATE: after waiting a while, it says 'no space left on device'
2 Answers
There was no special file /dev/audio. You have created a regular file and run out of space.
I think /dev/audio is an interface of OSS. Ubuntu uses Pulseaudio instead.
Has been anwsered on SO: How to pipe /dev/urandom to linux sound output?Basically:
aplay -c 2 -f S16_LE -r 44100 /dev/random 1