Menu

Failed to open audio device

Help
2016-03-03
2016-03-03
  • Dale Richardson

    Dale Richardson - 2016-03-03

    Hi again,

    I have been working on installing and configuring PocketSphinx for a TI L138 LCDK dev board, and I am having some trouble with the audio device. I am relatively new to linux and am not sure how to proceed. I cross-compiled SphinxBase and PocketSphinx on host with the following commands for each:

    ./autogen.sh --host=arm-arago-linux-gnueabi --build=i686-linux-gnu --without-python
    ./configure --host=arm-arago-linux-gnueabi --build=i686-linux-gnu --without-python
     make
     make install DESTDIR=/home/parallels/ps/install
    

    I attempted to run pocketsphinx_continuous with the following command and arguments:

    ./pocketsphinx_continuous -inmic yes -hmm /home/root/install/en-us/en-us -lm /home/root/install/en-us.lm.bin -dict /home/root/install/en-us/cmudict-en-us.dict
    

    After a few lines of output, I receive the following error:

    Error opening audio device (null) for capture: Connection refused
    FATAL: "continuous.c", line 245: Failed to open audio device
    

    I understand that this is likely an issue with configuring ALSA; however, I am unsure what steps are necessary to do so. Thanks in advance!

    I don't seem to have the option to attach a file, so I haven't included the rest of the output. I will try to post in a reply if possible.

     
    • Nickolay V. Shmyrev

      Connection refused means it was compiled with pulseaudio, you need to start pulseaudio daemon to record audio.

      Alternatively you can compile with alsa, you need to edit configure.ac for that, or you can termporary remove pulse headers. Unfortunately our system is not well suited for cross-compilation, it selects framework automatically based on detected headers.

      You can find details on what system was selected in config.log

      For more details see
      http://cmusphinx.sourceforge.net/wiki/faq#qfailed_to_open_audio_device_dev_dspno_such_file_or_directory

       
  • Dale Richardson

    Dale Richardson - 2016-03-03

    This is the full output from the terminal upon running the pocket_continuous command as described in my previous post

     

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.