[android-developers] Recording audio from multipe device source simultaneously

2023-03-08 Thread Md Mainuddin


Dear All,

I need some support from yours, I want to record audio from multiple 
devices simultaneously. suppose the phone is connected to a Bluetooth 
device and a built-in microphone. The Bluetooth device keeps a little bit 
away from phone now I want to record from both (built-in microphone, 
Bluetooth) at a time.

have any way to achieve this?
If not please guide me about the technical limitation.

If anyone having any idea regarding this please help to achieve this. 


Thanks & Regards

*Md Mainuddin*

*Senior Software Engineer (Android) at BJIT Limited 
*
Email: mainuddin...@gmail.com
Mobile: +8801822800727
Facebook: www.facebook.com/mainuddinm55
LinkedIn: www.linkedin.com/in/mainuddinm55
Address: Narda, Bashudara, Dhaka-1230


-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/810c2ae3-4b8f-4163-b4d4-85d7b1c3302an%40googlegroups.com.


[android-developers] Recording Audio in Emulator

2010-09-09 Thread Priyank
Hi,
I am facing some problem when I try to run record an audio.
In my startRecord() method, this is what I do:

recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(outputfileformat);
 
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(path);

The logs throw a audio_input error in this line:
 recorder.setAudioSource(MediaRecorder.AudioSource.MIC);

The error is:
09-09 19:04:02.696: ERROR/audio_input(34): unsupported parameter: x-
pvmf/media-input-node/cap-config-interface;valtype=key_specific_value
09-09 19:04:02.696: ERROR/audio_input(34): VerifyAndSetParameter
failed

I am using a microphone connected to my pc to record the audio. I am
working on eclipse in windows xp.
I was wondering whether this is because my PC microphone is not
configured with the emulator ?

I have seen a similar thread regarding this issue.
I have configured the SD card and have set the path to the sdcard
location.
What is the command i need to give to configure my microphone to the
emulator?
emulator.exe -audio winaudio @androidvmdoesnt seem to work.

Someone please help.

Thanks,
Priyank

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Recording audio with AudioRecord

2009-05-09 Thread benmccann

Hi,
I'm having a hard time using the AudioRecord class.
I put some logging in the callback, but never see any output in the
logs.  Any idea what I'm doing wrong?

Thanks,
Ben



import android.media.AudioFormat;
import android.media.AudioRecord;
import android.media.MediaRecorder;
import android.util.Log;

public class AudioListener {

  public static final int DEFAULT_SAMPLE_RATE = 8000;
  private static final int DEFAULT_BUFFER_SIZE = 4096;
  private static final int CALLBACK_PERIOD = 4000;  // 500 msec
(sample rate / callback period)
  private final AudioRecord recorder;

  public AudioListener() {
this(DEFAULT_SAMPLE_RATE);
  }

  private AudioListener(int sampleRate) {
recorder = new AudioRecord(MediaRecorder.AudioSource.DEFAULT,
sampleRate, AudioFormat.CHANNEL_CONFIGURATION_DEFAULT,
AudioFormat.ENCODING_DEFAULT, DEFAULT_BUFFER_SIZE);
  }

  public void start() {
recorder.setPositionNotificationPeriod(CALLBACK_PERIOD);
recorder.setRecordPositionUpdateListener(new
AudioRecord.OnRecordPositionUpdateListener() {
  @Override
  public void onMarkerReached(AudioRecord recorder) {
Log.e(this.getClass().getSimpleName(), onMarkerReached
Called);
  }

  @Override
  public void onPeriodicNotification(AudioRecord recorder) {
Log.e(this.getClass().getSimpleName(), onPeriodicNotification
Called);
  }
});

recorder.startRecording();
  }

}

--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Recording Audio in a call

2009-04-24 Thread John Doe

Hi guys. I have a question and i am looking for an answer for a very
long time.

I am trying to record audio when i call someone and when someone calls
me.I am using phonestatelisteners and i am able to record audio from
outside (my voice) when i call someone. however when somebody calls me
it doesnt record my voice at all .

I am trying to record my voice. Even if somebody calls me. But it
works only in one direction :( If i call it records my voice if
somebody calls it doesnt record my voice. Do you know if this is
possible ?
--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Recording audio with 1.5 SDK

2009-04-16 Thread j

One known limitation of SDK 1.1 was that audio can be recorded only to
a File and not to a network stream.  Is this still an issue with 1.5
SDK?

Thanks!
--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Recording Audio

2009-02-24 Thread benmccann

Hi,
I'd like to create an audio recording in Android.  (Actually, I just
want access to the mic without recording it, but it seems that's not
supported so I'll have to create a recording and tail the file).
I'm having a very hard time getting started.  Mostly I'm just hoping
that someone from Google reads this and will update the documentation
because the example won't compile - it looks like it's from some
previous version of the SDK because there's an error in every other
line.  I made my best guess as to what the usage should be, but I keep
getting a number of different exceptions.
One question I had is whether I can just specify an arbitrary path to
the MediaRecorder to start recording or whether I have to create an
entry in the content database.  The JavaDoc for
MediaRecorder.setOutputFile isn't clear on what it's expecting.

Thanks,
Ben

--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Recording Audio with MediaRecorder on G1

2009-02-11 Thread michael

Hi,

I've written a little program (see below) to record audio using
MediaRecorder. While everything works fine in the emulator (SDK1r2),
the program does not work on the real phone (HTC G1). On the phone,
after pressing the start button, the audio file is created, but no
content is written to it (i.e. the file size remains 0). Also, no
exception is shown in logcat, and no AudioStreamInGeneric events are
generated (such events are generated when running the program on the
emulator).

Is there maybe a setting on the phone that I have to turn on (or off)?
Or am I missing something else?

I've set the permission to record audio in the android-manifest.xml
file using
uses-permission android:name=android.permission.RECORD_AUDIO/uses-
permission

Thanks for any help!

Michael
--
My program code:

package ch.ethz.dcg.mictest;

import android.app.Activity;
import android.media.MediaRecorder;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class MicTest extends Activity {

private final static String TAG = MicTest.class.getSimpleName();

private MediaRecorder recorder;
private Button button;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

recorder = new MediaRecorder();

button = (Button)findViewById(R.id.button);
button.setText(start);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
buttonClicked();
}
});
}

private void buttonClicked() {
if (button.getText().equals(start)) {
try {
recorder = new MediaRecorder();
String path = /sdcard/test.3gpp;


recorder.setAudioSource(MediaRecorder.AudioSource.MIC);

recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);

recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(path);

recorder.prepare();
recorder.start();
button.setText(stop);
} catch (Exception e) {
Log.w(TAG, e);
}
} else {
try {
recorder.stop();
recorder.release(); // Now the object cannot be 
reused
button.setEnabled(false);
} catch (Exception e) {
Log.w(TAG, e);
}
}
}

}
--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Recording Audio

2009-01-10 Thread Tez

Hi,

I want to record audio from the emulator using the mic. Can anyone
send me some sample code on how to do this.
Also, I want to know whether it is possible to redirect this mic o/p
to a memory buffer or network socket.

Cheers,
Earlence

--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Recording audio stream

2008-12-26 Thread vitalii.mi...@gmail.com

  Is there any way to record audio stream and send streaming audio  to
network ??  Instead of recording to file.

--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---