3 ms·
Certainly an improvement on the ol' "cat /dev/urandom > /dev/audio"!
by dimatura 4y ago
Certainly an improvement on the ol' "cat /dev/urandom > /dev/audio"!
- bertman 4y agoOr (from the readme): cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("0,2,4,5,7,9,11,12",a,","); for (i = 0; i < 1; i+= 0.0001) printf("%08X\n", 100*sin(1382*exp((a[$1%8+1]/12)*log(2))*i)) }' | xxd -r -p | aplay -c 2 -f S32_LE -r 16000
- FeepingCreature 3y ago"sudo mplayer -demuxer rawaudio -ao alsa:device=hw=0.0 /dev/sd* /dev/nvme*" Hard drive is more fun than urandom because it actually contains audibly structured data. Note: You may have to stop Pulseaudio or Pipewire if you have it running. Note: May create very loud noises or even break your headphones.