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

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

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest