Menu

Audio ioctl(SYNC) failed on pocketsphinx_continuous

Help
2021-10-22
2021-10-27
  • Michael Coryer

    Michael Coryer - 2021-10-22

    Hello,
    I seem to be stuck on a problem running pocketsphinx_continuous. I am using a Beaglebone Black device running Debian version 10 (buster). I have downloaded and installed sphinxBase and pocketSphinx; the -5prealpha version of both. I am using a Logitech H340 Headset as a USB audio input and output device.

    I run the command as follows: pocketsphinx_continuous -adcdev "/proc/asound/H340" -inmic yes
    In response I get a bunch of output, but the last 2 lines are:

    Audio ioctl(SYNC) failed: Inappropriate ioctl for device
    FATAL: "continuous.c", line 245: Failed to open audio device

    I first had difficulty specifying the device because I thought the name should be "hw1,0" which is what I use when recording input using the "arecord" command. However, when I use the specify the argument to pocketsphinx_continuous, -adcdev hw:1,0, it always complains that it can't open the device. Here is that message:

    INFO: continuous.c(307): pocketsphinx_continuous COMPILED ON: Oct 21 2021, AT: 17:42:26

    ad_oss.c(115): Failed to open audio device(hw:1,0): No such file or directory
    FATAL: "continuous.c", line 245: Failed to open audio device

    I find it interesting in this case that it fails and shows a line in ad_oss.c It shouldn't be using OSS, it should use the ALSA driver. I have ensured that ALSA libraries are installed. I am not using pulseaudio this seemed to use a lot of memory which I would like to conserve on this embedded device.

    I also plugged in two USB audio interface devices, and I keep getting the Audio ioctl SYNC failure. If anyone has any thoughts on this, it would be much appreciated.

     
    • Nickolay V. Shmyrev

      It shouldn't be using OSS

      OSS is selected during sphinxbase configuration. You need to install alsa development headers, reconfigure sphinxbase and make sure alsa is selected, then reinstall sphinxbase, then reinstall pocketsphinx.

      I also recommend you to try more powerful boards for voice experiments.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.