Running 'cat /dev/urandom > /dev/audio' does nothing

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like