[android-developers] AudioRecord sample rate + Touch Sounds + HDMI

2013-02-19 Thread RLScott
Here is a strange interaction that I discovered on one particular brand of Android Tablet. This interaction can cause the audio sample rate to change by 9% under certain condition. Those conditions are: 1. The HDMI video output to a TV monitor is connected. 2. The Touch Sounds are enabled in Se

[android-developers] AudioRecord error : Unsupported configuration: sampleRate 44100, format 1, channelCount 1

2012-05-29 Thread S!dhu
Hello, I am interested to record audio using the API AudioRecord at the following configurations: SAMPPERSEC = 44100; channelConfiguration = AudioFormat.CHANNEL_CONFIGURATION_MONO; audioEncoding = AudioFormat.ENCODING_PCM_16BIT; While initializing the AudioRecord API using the getMinBufferSize (

Re: [android-developers] AudioRecord

2012-05-10 Thread asheesh arya
just go through this link http://code.google.com/p/krvarma-android-samples/source/browse/trunk/AudioRecorder.2/?r=77 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To

Re: [android-developers] AudioRecord

2012-05-10 Thread Sandeep Ramankutty
Hi , Try to do recorder.stopRecording() at the end of record. Regards, Sandeep On 5/8/12, ron simon wrote: > Hi, > I want to create an recorder and take the buffer to play the sound but it > doesn't work. I have no idea for my misstake and hope for your help ;) > > > > public class input { > pri

Re: [android-developers] AudioRecord

2012-05-09 Thread asheesh arya
plz refer this link may be you get some idea!!! http://code.google.com/p/krvarma-android-samples/source/browse/#svn/trunk/AudioRecorder.2 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developer

[android-developers] AudioRecord

2012-05-09 Thread ron simon
Hi, I want to create an recorder and take the buffer to play the sound but it doesn't work. I have no idea for my misstake and hope for your help ;) public class input { private static final String TAG = "Aufnahme"; private AudioRecord recorder = null; private boolean isRecording = false; priva

[android-developers] AudioRecord is not working as expected

2012-02-28 Thread amit
I have written following code in which I am trying to record and play the audio... But all I get is just the noise... Please help .. I also want to know why my UI thread hangs when I have a separate thread for recording.Thanks in advance.. /** * @author amit * */ public class AudioR

[android-developers] AudioRecord StartRecording call doesnt returns when done thru JNI

2011-06-20 Thread vineet srivastava
hi, I m calling startRecording method of Audio Record thru JNI. 2 out of 10 calls the call doesnt return at all. I m using AudioRecord thru JNI in my application. Please find the code snippet attached: jni_env->CallVoidMethod(pRecStream->channelObject, record_method); Where channelObject refers

[android-developers] AudioRecord and AudioTrack

2011-05-17 Thread neha
Hello, My application uses AudioTrack in streaming mode and AudioRecord simultaneously. My problem is that I start them at the same time, but it is not actually start playback\recording in the same timestamp. There is some delay between recording and playback. -- You received this message because

[android-developers] AudioRecord producing no sound

2011-04-20 Thread Matt Smith
As i have re-written this several times now. It is very nasty. Im testing on a DroidX where everything i use to record a call is coming back empty. Anyone know why or a fix? My recording class: [code] package com.call.tests; import android.media.AudioFormat; import android.media.AudioRecord; imp

[android-developers] AudioRecord problem

2011-01-04 Thread khushi
Did any one try code of sipdroid given in [url]http://sipdroid.org/[/ url]. If yes than please help me. I have to read samples from microphone and send it to udp socket. For this I'm using AudioRecord class as given in RtpStreamSender.java and I have use read method to read the samples which is giv

[android-developers] AudioRecord on HTC Evo or ANdroid 2.2

2010-12-06 Thread cindy
I am using AudioRecord to record audio. It works very well on g1 and g7, However, when I tested on HTC evo, the record audio is much much faster than the real input. Does any one has the same experience? Thanks! Cindy -- You received this message because you are subscribed to the Google Group

[android-developers] AudioRecord is not working on emulator

2010-11-11 Thread cindy
Hi All, I used AudioRecord on emulator and phone. I found that AudioRecord is not working on phone: 1> the min-buffer-size on simulator is much smaller than phone 2> The audio data I read from phone is all zero. Does anyone has same experience? Thanks! Cindy -- You received this message becau

[android-developers] AudioRecord Class Problem: Callback is never called (revisited/resolved)

2010-09-27 Thread davemac
I've been perplexed by the AudioRecord documentation on the OnRecordPositionUpdateListener interface but I think I got it figured out. All of the posts in this group asking why the callbacks are never called were assuming that the callbacks would tell you when to do a read. But what you need to be

Re: [android-developers] AudioRecord weirdness on Samsung Moment (SPH-M900)

2010-09-08 Thread dan raaka
Try the "soundcheck" app on the android market to check the valid frequencies supported on the device. -Dan On Tue, Sep 7, 2010 at 10:52 PM, Krishna Mohan wrote: > Hi, >Android's AudioFlinger does the job of downsampling to 8khz irrespective > of whatever be the top level applications sampl

Re: [android-developers] AudioRecord weirdness on Samsung Moment (SPH-M900)

2010-09-07 Thread Krishna Mohan
Hi, Android's AudioFlinger does the job of downsampling to 8khz irrespective of whatever be the top level applications sampling rate setting. AudioFlinger will down sample to 8khz and record. You may try another method of recording using arecord utility of alsa. #alsa_arecord -f 16000 -c 2 -Dhw

Re: [android-developers] AudioRecord weirdness on Samsung Moment (SPH-M900)

2010-09-06 Thread dan raaka
what is the build fingerprint on your device ? $ adb shell getprop | grep finger -Dan On Wed, Sep 1, 2010 at 12:44 PM, Steve Hugg wrote: > Our app has a problem with AudioRecord where the recorded audio is > very slw (sound like it's 2x slower). We use > AudioRecord.getMinBufferSize to try

[android-developers] AudioRecord weirdness on Samsung Moment (SPH-M900)

2010-09-03 Thread Steve Hugg
Our app has a problem with AudioRecord where the recorded audio is very slw (sound like it's 2x slower). We use AudioRecord.getMinBufferSize to try 16000 Hz first and then back down to 8000 Hz if that function returns an error. So my guess is that the audio is reported as 8000 Hz even though it

[android-developers] AudioRecord weirdness on Samsung Moment (SPH-M900)

2010-09-01 Thread Steve Hugg
Our app has a problem with AudioRecord where the recorded audio is very slw (sound like it's 2x slower). We use AudioRecord.getMinBufferSize to try 16000 Hz first and then back down to 8000 Hz if that function returns an error. So my guess is that the audio is reported as 8000 Hz even though it

[android-developers] AudioRecord API - STATE_UNITIALIZED - What do you do?

2010-07-14 Thread Gene R.
I have an app that records 8Khz audio, saves to the SD and plays it back. It uses the AudioRecord API and it works just fine on my Nexus One (2.2), Behold II (1.6), Cliq XT (1.5) and the emulator (tested from 1.5 to 2.2). However, on the market error report, I am seeing the following IllegalState

[android-developers] AudioRecord class - Disable AGC and noise suppression

2010-06-07 Thread Brian
Hi, Is there a way to disable AGC and noise suppression in the AudioRecord class? I see in the cpp source that these are enabled with no method to disable on the java side. Thanks, Brian -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To

[android-developers] AudioRecord: onPeriodicNotification and onMarkerReached are not called

2010-05-13 Thread pac
I've seen posts regarding problems with the AudioRecord OnRecordPositionUpdateListener, but I haven't seen any real answers. I'm using AudioRecord to record from the mic, and I want to get the input from the mic periodically so I can check sound levels and update a meter. I set up the listener li

[android-developers] AudioRecord Problem, please help!

2010-05-07 Thread powerventure
Hi all, I am using AudioRecord to get raw PCM data from the audio device and do some extra processing with NDK. It works fine in the first 16 seconds, and crashes after that. There is meaningful debug info I can refer to. Here is my code and the Log info. Please help! thanks! class AudioR

[android-developers] AudioRecord delay in recording

2010-05-05 Thread pac
I'm using a class that uses AudioRecord. RehearsalAudioRecorder recorder = new RehearsalAudioRecorder( RehearsalAudioRecorder.RECORDING_UNCOMPRESSED, MediaRecorder.Audi

[android-developers] AudioRecord creates a stereo file instead of a mono file.

2010-04-29 Thread pac
I'm developing with Android 2.1 on a Nexus One with firmware 2.1 update 1. I'm using the RehearsalAudioRecorder class from here: http://rehearsalassist.svn.sourceforge.net/viewvc/rehearsalassist/android/trunk/src/urbanstew/RehearsalAssistant/RehearsalAudioRecorder.java?view=markup public

[android-developers] AudioRecord fails on Android 2.1

2010-04-12 Thread Olivier Guilyardi
Hi, I can successfully create an AudioRecord instance on the emulator, on Android 1.5, 1.6, and 2.0 with the following statement : new AudioRecord( MediaRecorder.AudioSource.MIC, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, 16384); But it fail

[android-developers] AudioRecord amplitude

2010-04-06 Thread r0ytlay
How can I get the amplitude/volume when recording with AudioRecord? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to andro

[android-developers] AudioRecord on Emulator with friquency > 8 kHz

2010-03-26 Thread garaus
Hello dear developers, I'm doing a voice recording using AudioRecord class and the main requirement that the frequency must be 16000 Hz. I'm using only emulator in development process for now and met the problem that I can't set frequency more than 8000, otherwise I get bufferSize == -2, and can't

[android-developers] AudioRecord Class Problem: Callback is never called

2010-02-15 Thread Wanderer
Hello Android Developers! My Android Java Application needs to record audio data into the RAM and process it. This is why I use the class "AudioRecord" and not the "MediaRecorder" (records only to file). Till now, I used a busy loop polling with "read()" for the audio data. this has been working

Re: [android-developers] AudioRecord on Samsung Moment

2010-01-20 Thread dan raaka
What build does this device have? There is new update for this device. Did you try on this build ? http://community.sprint.com/baw/thread/26322?featured=true -Dan On Mon, Jan 18, 2010 at 12:02 PM, Rico wrote: > When switching between the emulator (which supports 8KHz) and a real > phone like

[android-developers] AudioRecord on Samsung Moment

2010-01-18 Thread Rico
When switching between the emulator (which supports 8KHz) and a real phone like the G1 (which supports 16KHz), I used the following code to set up a valid AudioRecord object: AudioRecord ar; // Try to construct at 16KHz ar = new AudioRecord( MediaRecorder.AudioSource.MIC, 16000, AudioFormat

Re: [android-developers] AudioRecord works with short but static with byte

2010-01-08 Thread Jason Proctor
knee-jerk answer: because the individual samples are 16 bits wide, and by reading just a byte each time, you're only getting half the sample. Any idea why reading bytes from AudioRecord would cause an error while reading shorts would not? The sound comes through great with short but I get o

[android-developers] AudioRecord works with short but static with byte

2010-01-08 Thread Biosopher
Any idea why reading bytes from AudioRecord would cause an error while reading shorts would not? The sound comes through great with short but I get only static with bytes. Working code with short[]: int minBufferSize = AudioRecord.getMinBufferSize(this.getSampleRate(),

[android-developers] AudioRecord callbacks

2010-01-04 Thread kk_Kiran
Hi, I am trying to develop an app which will consume data from mic. I have used AudioRecord for the same. To read the data from mic I am usingh a separate thread. I want to change this. Is there any way to register the callback to AudioRecord object so as to get notification when data has started

[android-developers] AudioRecord + Android 1.5 = Error

2009-12-28 Thread Hunter Peress
Hi, I'm using the AudioRecord to capture raw PCM sound data. On both 1.5 devices (Motorola Cliq, and Droid Eris) I get: AudioRecord(28661): Error obtaining an audio buffer, giving up.I/ AudioHardwareMSM72XX( 2224): AudioHardware PCM record is going to standby. Any ideas why? -- You received thi

[android-developers] AudioRecord producing no-sound data. Why??

2009-12-06 Thread Hunter Peress
Here is my AudioRecorder class, using audio record, why is it not producing any sound data? import java.io.FileOutputStream; import java.io.IOException; import android.content.Context; import android.media.AudioFormat; import android.media.AudioRecord; import android.media.MediaRecorder; public

[android-developers] AudioRecord APIs

2009-09-06 Thread Tez
Hi, I have two questions 1. Has anyone been able to use an AudioRecord properly WITHOUT the "buffer overflow" messages? 2. What is the audio latency parameter? Cheers, Earlence --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] audioRecord buffer overflow

2009-08-09 Thread Tez
Hi, Can anyone send me some pseudo code to record from AudioRecord without getting buffer overflow messages? This is the code i am using : this is my setup for AudioRecord 8khz, 16bit pcm, mono buffer size spec during object creation - 1024 i read 480shorts(960 bytes) every 60ms in addition,

[android-developers] AudioRecord , buffer overflow issue.

2009-06-29 Thread Anu
Hi, Iam using Android 1.5 sdk . I have audio capture working using audiorecord, but then after few seconds , I get buffer overflow and thats tearing down the whole call. Can anyone of you please let me know how to fix this issue. Thanks, Anu --~--~-~--~~~---~--~---

[android-developers] AudioRecord

2009-05-12 Thread benmccann
Hi, I'd like to use the AudioRecord API, but it's not clear to me how it should be called. I put a call to the logger in the listener callback, but don't see an message logged anywhere. Any pointers? Thanks, Ben import android.media.AudioFormat; import android.media.AudioRecord; import androi

[android-developers] AudioRecord can't get any notification when record/marker position updated

2009-04-23 Thread Steven_T
hi all I want use AudioRecord class to record audio in PCM formate. after create class and set setRecordPositionUpdateListener, then start recording. I can't get any notification from system. why? please help me, thanks public class Recorder { private static final int AUDIO_SAMPLE_FREQ =

[android-developers] AudioRecord can't get any notification when record/marker position updated

2009-04-23 Thread Steven_T
hello everyone, I would like to use the new AudioRecord class to record in PCM format. Create class and setRecordPositionUpdateListener to it, then start recording, I can't get any notification from system forever,why?(I didn't get any error when running) please help me, thanks. the next is my c