Do DO servers have soundcards? If not how can I play audio?

The program ‘beep’ seems to run, but I don’t hear anything. Where is the sound going? If I want to do work with playing midi (PortMidi) is this possible too?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

To enable sound, you need to load a “dummy” sound card. You can do this with:

sudo modprobe snd-dummy

After doing so, you’ll notice that /proc/asound becomes populated:

$ ls /proc/asound
card0  cards  devices  Dummy  modules  pcm  seq  timers  version

You’ll also want to install alsa-base as it is not included on Ubuntu Server by default:

sudo apt-get install alsa-base

This comment has been deleted