How is it possible that some apps serve the function to record the audio output of the android system? Everything I am finding is the very same tutorial on different sites where you can record MIC input. I don't care about mic input, I want the audio output and just can't imagine how to access it. like this and this link app
-
The linked apps most likely have a number of pre-recorded sounds that are played based off of which "drum" you hit. – Jax Sep 02 '15 at 16:00
-
Yes. But how this recorded ? They used soundpool so mixer sound occur, they not marge pre recoded sound. – Salauddin Gazi Sep 02 '15 at 16:19
-
The [ToneGenerator](http://developer.android.com/reference/android/media/ToneGenerator.html) might be what you are looking for. [This](http://stackoverflow.com/questions/6731155/how-to-merge-two-mp3-files-into-one-combine-join) might also be helpful. – Jax Sep 02 '15 at 16:49
-
This class provides methods to play DTMF tones (ITU-T Recommendation Q.23), call supervisory tones (3GPP TS 22.001, CEPT) and proprietary tones (3GPP TS 31.111). Depending on call state and routing options, tones are mixed to the downlink audio or output to the speaker phone or headset. This API is not for generating tones over the uplink audio path. but my issue is different – Salauddin Gazi Sep 02 '15 at 17:09
-
and the maximum number 32 of simultaneous streams for this SoundPool object so merge mp3 not good idea – Salauddin Gazi Sep 02 '15 at 17:14
3 Answers
You can always try getting a set of earphones with a mic, loop the earphone output back into the mic input electrically. Now whatever you would normally hear on the earphones will get fed back into the mic. Use a small capacitor to remove any DC bias, maybe 10nF or 0.1uF. DC bias is present on some devices as a way to allow switch inputs to be used on the earphone jack.

- 21
- 3
-
Ash, there no way to use or add small capacitor in android phone .my app have a one feature it can record that played form the app. – Salauddin Gazi Sep 02 '15 at 16:32
-
The small cap does not go into the phone, it goes on the earphone/mic wire. – Ash Sep 12 '15 at 03:36
After long reaches i found the solution.
Bad solution : at first i use Visualizer.OnDataCaptureListener this listener provide 8 bit fft and
waveform frequency , but wav and android audio form at least contain 16 bit frequency , i save 8 bit frequency and played , this audio
quality is low and audio contain many noise.Good idea is : Eery game and audio recoded app that record their audio output , they originally not recorded anything , they
recoded which sound is played and they merge recoded file and created a audio file

- 1,497
- 1
- 13
- 18
As your links shows they are about playing music instruments. If you want to vary your audio based on pressure of the touch, might be Good idea too.
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MotionEvent;
import android.widget.TextView;
public class MainActivity extends Activity {
TextView textinfo;
MotionEvent pressure;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
float press = pressure.getPressure();
Toast.makeText(MainActivity.this,
press.toString(),
Toast.LENGTH_SHORT).show();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
}

- 424
- 5
- 15
-
Tanks. but my issue is not about playing music instruments .my issue is how to record android audio output – Salauddin Gazi Sep 04 '15 at 08:12