Reputation: 1417
Is there any way to access the micro phone in a android phones similar to accessing the android.hardware.Camera?. I know we can use MediaRecorder to record audio from android application into a file as shown in this link .
Let me explain what I want to do. I'm accessing Camera from android program to capture video and get each captured frame using Camera.Preview callback function. After decoding the frame I'll upload to say a streaming server (haven't tried practically yet :) ) These frames will contain only image information how can I get audio along with frames?
Can any one suggest me technique for implementing the above idea?
Upvotes: 4
Views: 28203
Reputation: 58103
yes here it is
http://developer.android.com/reference/android/media/AudioRecord.html
Upvotes: 4