wonjsohn / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
0 stars 0 forks source link

Crash configuring MediaRecorder to record audio #454

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Setup a MediaRecorder

        MediaRecorder mRecorder = new MediaRecorder();
        mRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT);
        mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
        mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);

What is the expected output? What do you see instead?

2. App crashes on setAudioSource or setOutputFormat.

03-31 10:02:32.158: E/AndroidRuntime(18568): FATAL EXCEPTION: main
03-31 10:02:32.158: E/AndroidRuntime(18568): java.lang.IllegalStateException
03-31 10:02:32.158: E/AndroidRuntime(18568):    at 
android.media.MediaRecorder.setOutputFormat(Native Method)

What version of the product are you using? On what operating system?
Google Glass, 4.0.4

Please provide any additional information below.

To be clear, the app we are building needs to record raw audio (not voice 
transcription) and we'd prefer not to have the camera interface up while 
recording.

Original issue reported on code.google.com by j...@brightmediums.com on 31 Mar 2014 at 2:06

GoogleCodeExporter commented 8 years ago
Noob mistake. I forgot to include the RECORD_AUDIO permission.

Original comment by j...@brightmediums.com on 31 Mar 2014 at 2:14

GoogleCodeExporter commented 8 years ago
Does glass support audio recording if yes can anybody send me the demo 

Original comment by anujacom...@gmail.com on 6 May 2014 at 9:36