I'm working on speech recognition with HTK, and when I run HSLab I have this.

InitAudi: Cannot open OSS audio device /dev/dsp

The sound works normally in other applications.

Any help please?

  • You should purge the OSS4 packages, may be Apr 16, 2018 at 14:26
  • Thank you for replying, I got this error "apt transaction returned result exit-failed" when i tried to install the packages
    – Chakikou11
    Apr 16, 2018 at 14:34
  • 1
    Try 'sudo apt-get install oss-compat' It adds a compatibility layer between alsa and oss. Apr 16, 2018 at 14:48
  • it worked, but i still have the same error, other suggestion please ?
    – Chakikou11
    Apr 16, 2018 at 15:01

1 Answer 1



sudo apt-get install pulseaudio

sudo apt-get install libpulse-dev

sudo apt-get install osspd

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .