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
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 (
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
I'm using a class that uses AudioRecord.
RehearsalAudioRecorder recorder = new
RehearsalAudioRecorder(
RehearsalAudioRecorder.RECORDING_UNCOMPRESSED,
MediaRecorder.Audi
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
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
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
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
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
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
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
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
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(),
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
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
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
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
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,
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
--~--~-~--~~~---~--~---
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
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 =
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
42 matches
Mail list logo