Record audio output from android device using Android SDK - android

Is it possible to record sound from android device's sound.
I mean.
Android record their sound itself.
or
Android Self Recording. ???

See MediaRecorder here and AudioRecord here
I have tried them both. I managed to record mic's input, but it didn't work for recording a VoIP call...

Related

Flutter audio package flutter_sound : volume gets too low after voice recording in Android

I am using flutter_sound to record and play audio in my Flutter app. Audio plays perfectly in iOS, but in android volume gets too low after recording. Any help is appreciated.

Android Call Recording app - In Call Recorder AudioSource.VOICE_COMMUNICATION not recording call from both side

I am trying to record call through my android app.
I am using
MediaRecorder.AudioSource.VOICE_COMMUNICATION
MediaRecorder.AudioEncoder.AMR_NB - encoding
MediaRecorder.AudioEncoder.AMR_NB - ourputformat
as audio configuration.
On my galaxy s8+ it is only recording my side of voice instead of both .
I have tried VOICE_CALL, UPLINK , DOWNLINK but nothing works. I have very feeble other end voice by using audio source as MIC. Please help how to resolve this . Thanks in advance.

Does Superpowered SDK Recorder Bypass audio processing on Android OS?

i am working with Superpowered SDK for Recording purpose and i am able to record it properly. now, thing is all about quality. getting hissing sound in recorded file. i thought it could be of Headphone issue, but its premium quality Headphone. can i have some suggestions to get good recorded quality with Superpowered Recorder on Android Platform?
Did you record the audio coming from the microphone or something else?

Android: Record raw audio and record video at the same time

I develop an Android app based on sound and video records. I would like to get a real-time playback of the mic audio in the headphones while previewing AND capturing the video and sound.
What i have now, working fine alone:
1) use Superpowered library to record audio and playing it back in real-time (during preview and record). Behind the scene, it does directly with C++ the work of AudioRecord by pushing the buffer to the output (headphones). The goal is to apply audio effects on the raw sound in real-time.
2) capture the video with mediaRecorder
When audio playback is running, I try to launch the video record, it crashes starting :
E/MediaRecorder: start failed: -2147483648
I imagine that i can't launch two recording process at the same time. I think using the AudioRecord or Superpowered lib is the good way to process the raw audio, but I can't figure out how to record video without conflicting with the current audio recording.
So is there a way to achieve my feature?
(minSdk 16)
According bigflake
The MediaCodec class first became available in Android 4.1 (API 16). It was added to allow direct access to the media codecs on the device.
In Android 4.3 (API 18), MediaCodec was expanded to include a way to provide input through a Surface (via the createInputSurface method). This allows input to come from camera preview or OpenGL ES rendering.
So if it's possible please think about increasing MinSDK to 18 and use AudioVideoRecordingSample or HWEncoderExperiments as examples.

Android MediaRecorder record voice only, not output

Writing an android application which will allow users to play music and record to that music. I've been using media player to play the background track and MediaRecorder to record in a background thread. When recording I get my voice from the mic and the output from the headphones. Is there a way to stop the output stream from being recorded as well? I'm using a 2012 Galaxy Nexus phone to test this.
I was using headphones with try connector which I think was the culprit. I tried with a regular trs connector and I only received the microphone feed.

Categories

Resources