Menu

Getting the file recorded from PocketSphinx

Help
2016-04-21
2016-06-05
  • Senjam Shantirani

    Is there a way to capture the wave file recorded from pocketsphinx.
    Please help.

    Regards,
    Shanti

     
    • Nickolay V. Shmyrev

      From the command line use option -rawlogdir <dir> to store dumps in a folder.

      From the code use ps_set_rawdata_size and ps_get_rawdata to retrieve recorded audio.

       
  • Senjam Shantirani

    How do we improve the PocketSphinx accuracy?
    Any parameter to tune for better accuracy?

     
  • Senjam Shantirani

    I get the raw data using the -rawlogdir

    and when I tried to convert to wav it has huge noise.

    I used both the commands below, but I cannot hear what was recorded instead huge noise.

    sox -r 44100 -e unsigned -b 8 -c1 000000002.raw test_file.wav
    sox -r 44100 -e unsigned -b 8 -c1 000000002.raw test_file.wav

    Can you suggest me a conversion process which can give me a good .wav file.

     
    • Nickolay V. Shmyrev

      The correct command is

      sox -r 16000 -e signed -b 16 000000002.raw test_file.wav
      
       

Log in to post a comment.