I want to record audio with Google Glass and be able to save into an audio file. I've tried with MediaStore.Audio.Media.RECORD_SOUND_ACTION
intent but it doesn't work. I've also tried with RecognizerIntent.ACTION_RECOGNIZE_SPEECH
intent but it neither works.
Has anybody tried to do this?
Thanks!
Here are the instructions from the Android Media Recording site(http://developer.android.com/guide/topics/media/audio-capture.html):
The reason for your error may be that you didn't ask for permission to access the microphone. Here is the permission I have in my AndroidManifest.xml file in my Glass project which successfully records audio:
<uses-permission android:name="android.permission.RECORD_AUDIO" />
Simply add that to AndroidManifest.xml and you should be good if you follow the instructions above.
Hope that helps :) Good luck!