Menu

continuous recognize live stream

Help
Weilip Kho
2015-11-14
2015-11-14
  • Weilip Kho

    Weilip Kho - 2015-11-14

    Hello. I am developing a game which is about teaching simple mandarin words. The target platform is Android. The game will basically take the user's speech as input and process with pocketsphinx and output the result. The result part will be handled by the game engine. My problem is how to continuously recognise the speech from live audio stream? I have referred some of the method stated here but I got 'undefined reference to 'ad_open_dev'/'ad_start_rec'/'ad_read'/'ad_close' ' error. I think I have read somewhere that sphinxbase library is not supported on Android. So what should I do to get the open device's mic and start recoding and decoding? By the way the game engine is using c++.

     
    • Nickolay V. Shmyrev

      So what should I do to get the open device's mic and start recoding and decoding?

      If you want to record audio from NDK without using MediaRecorded in Java, you can try OpenSL ES API, you can find details here:

      http://mobilepearls.com/labs/native-android-api/ndk/docs/opensles/

       

Log in to post a comment.