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++.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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++.
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/