Android :: Inject Audio To Microphone Source During A Call?
Sep 29, 2009Is possible to inject audio such as mp3 in the output of microphone streaming? I've found an application : spoofApp that change the voice during a call. How is possible?

Is possible to inject audio such as mp3 in the output of microphone streaming? I've found an application : spoofApp that change the voice during a call. How is possible?
The use case that I have to emulate is to inject random keypresses. I have observed it that it is possible using adb shell command "input". Can someone point me to the source code in the android build tree, so that I can accordingly implement the same in our test app.
View 2 Replies View RelatedI've read a lot of posts in this group regarding raw audio processing. Most of them include references by Mr. Sparks about support for this in "future releases". I hope maybe he was referring to Android 2.0? To be clear, all I want to do is obtain audio data from the microphone in as high a fidelity as possible to perform DSP against it. This is blissfully outside the realm of any DRM-laden audio output issues (I hope).
So, in short, can we get raw audio off the microphone using Android 2.0 and a Droid, for example?
How do i get access to the audio recorded by the microphone before it is accessed by the other applications.
View 1 Replies View RelatedIs there anyway in android to loop a recorded audio through microphone. I mean that instead of speaking in microphone, i should be able to send a recorded audio from code into it.
View 3 Replies View RelatedI have searched the whole group but wasn't able to find a answer for my problem.I want to record audio from the microphone, apply some audio signal processing and than save the processed audio data in a compressed format.I figured out, how to record audio uncompressed but now I wonder if I can use some api functions to store this data in a supported compressed format.
View 4 Replies View Relatedwe're a group of students and trying to implement some kind of voice cryptography over a gsm connection (without modifing any gsm related codecs, we render pure audio which gets transmitted via gsm). Is it possible to initiate a voice call and transmit our generated audio signal (means bypassing the microphone as the primary audio source for that call)? I write this because I'm slightly worried after reading some posts on this list/group which states that the android.telphony APIs are private and can't be called from processes outside the the telephone subsystem.
View 3 Replies View Related1st. Are our phones (HTC Incredible) capable of digitally recording audio from a mic? For example, can I plug a microphone into the 3.5mm jack and start recording the audio. (given the hardware is capable) Which leads me to my next question, if so, is there an app for it? I searched and searched but couldn't find much info on it...
View 3 Replies View RelatedIs it only possible for one object to access the microphone at a time? That is, could I simultaneously use an AudioRecord to do some audio processing and use a MediaRecorder to record the incoming audio?
View 2 Replies View RelatedHow can I get the volume of the audio stream coming in through the android microphone?
View 2 Replies View RelatedI am trying to understand how to go about determining the frequency of various sounds captured on the phone via microphone. I am attempting to display a graph plotting the frequency of the note.
View 1 Replies View RelatedI've implemented "Audio Capture Setup and Start" example (http:// developer.android.com/guide/topics/media/index.html) with small modification - the output format is MPEG_4 not THREE_GPP.
The result - records with extremely poor audio quality.
Could you help me to understand where is error and how is possible to do really good audio records with Android?
I've done an experiment with Camcorder - standard Android application. Sound quality of the video is same poor. The audio signal is extremely low (quite).
Is it "by design" or may be some hardware problem (T-Mobile G1)?
I've found description similar problem here - http://osdir.com/ml/AndroidDevelopers/2009-06/msg00752.html - "Microphone audio capture with emulator is of very poor quality". In my case this problem reproduces on the real device. Unfortunately I have not found answer. I read about some "custom" encoders.. but have not found any example how implement them.
As a first step toward a speech recognition project, we wrote a simple voice recording application based on the information in this thread: http://groups.google.com/group/android-developers/browse_thread/threa...
It is working; however, the audio is extremely poor -- too staticy for our needs code...
As a comparison, here is a similar audio file captured with audacity on a PC: http://juzzam.org:9090/myAudioFile_onPC.mp3
Has anyone been able to record high quality audio with the emulator? If not, is it any better on the android dev phone?
According to the documentation of MediaRecorder, there is only one audio encoder "AMR (Narrowband) audio codec" and three output formats--3gpp, mpeg, and raw AMR: http://developer.android.com/reference/android/media/MediaRecorder.html
Here is the Activity source: http://juzzam.org:9090/RecordMicrophone.java.txt
We are testing on Windows XP, with a Logitec USB microphone, eclipse ganymede, and we are using all the defaults for an android 1.5 app (no emulator command-line options.. we defined the sdcard in the avd manager).
I have a Galaxy Note 2 and can't figure out how to record via my bluetooth headset not via the phone mic. Tried 20+ apps that record great via the phone mic but not via my headset.
View 10 Replies View RelatedI would like to detect if microphone in the device or in a headset is mute during a call. Currently I've taken the following approach (unfortunately - it does not work): 1) register PhoneStateListener to detect when a call is started/ finished 2) when call is started then I start a thread that periodically calls audioManager.isMicrophoneMute() method to discover a microphone status. (audioManager is obtained by calling getSystemService (AUDIO_SERVICE) ) 3) when call is finished I stop a thread started in bullet 2
Unfortunately audioManager.isMicrophoneMute() always returns 'true', does not matter if I select or deselect the 'Mute' option in the menu during a call. Does anybody know if it is possible to detect the state of a microphone during a call?
I want to build an application which will play an audio file when call is connected so that other person on the call can hear this audio file.
View 4 Replies View RelatedI'm getting the above error message when i run below code. please let me know if you have found any solution for this? code...
View 2 Replies View RelatedI'm new in Android development and I have the next question/problem. I'm playing around with the Media Recorder class to record just audio from the microphone. I'm following the steps indicated in the official site:
http://developer.android.com/reference/android/media/MediaRecorder.html
So I have a method that initializes and configure the MediaRecorder object in order to start recording. Here you have the code:
this.mr = new MediaRecorder();
this.mr.setAudioSource(MediaRecorder.AudioSource.MIC);
this.mr.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
this.mr.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
this.mr.setOutputFile(this.path + this.fileName);
try { this.mr.prepare();
} catch (IllegalStateException e) { Log.d("Syso", e.toString());
e.printStackTrace();
} catch (IOException e) { Log.d("Syso", e.toString());
e.printStackTrace();
}
When I execute this code in the simulator, thanks to logcat, I can see that the method setAudioSource(MediaRecorder.AudioSource.MIC) gives the next error (with the tag audio_ipunt) when it is called:
ERROR/audio_input(34): unsupported parameter: x-pvmf/media-input-node/cap-config-interface;valtype=key_specific_value
ERROR/audio_input(34): VerifyAndSetParameter failed
And then when the method prepare() is called, I get the another error again:
ERROR/PVOMXEncNode(34): PVMFOMXEncNode-Audio_AMRNB::DoPrepare(): Got Component OMX.PV.amrencnb handle
If I start to record by calling the method start(). I get lots of messages saying:
AudioFlinger(34):RecordThread: buffer overflow
Then after stop and release, I can see that a file has been created, but it doesn't seem that it been well recorded. Anyway, if I try this in a real device I can record with no problems, but I CAN'T play what I just recorded. I guess that the key is in these errors that I've mentioned before.
I have researched extensively and am pretty sure this is not possible. I want to make a call and then inject DTMF when the far end answers. So 2 questions Is it possible ?
If not, how do I work to get it on the list of upcoming features to be provided on Android. I can say that this is possible on BlackBerry and Symbian, so Android is falling behind in this regard.
I would like to know whether there is a way to insert/inject a <string> element defined in an XML file into another <string> element, doing that just with XML.
For example I could have:
<string name="author">Francesco</string>`
and I am looking for something like:
<string name="about_application">Author: @string/author</string>`
so that getString(R.string.about_application) would result in "Author: Francesco".
I know that I could combine the two elements in Java code using String.format(string, formatArgs)like for example:
<string name="author">Francesco</string>
<string name="about_application">Author: %1$s</string>`
and then in code use
String.format(getString(R.string.about_application), getString(R.string.author))
but I would like to do it in XML directly. Can anyone suggest me a way to do it?
I would like to inject code in an android application at runtime. I have tried to use dx tool to generate a dexfile in the sdcard but when i want to instantiate, it fails. Are there any tools to inject code generating new dalvik bytecode? I am studying some libraries, aspecjt or guise for android. Is it better to work with a script language?
View 2 Replies View Related1. Can I call ADT Layout Editor in my java source file, not by XML file "open with" menu ?
2. When I click "add" button in the outline view of ADT Layout Editor , it will show such a list of UI components as "AbsoluteLayout AnalogClock AutoCompleteTextView Button ....." My question is where it gets this list? Can I config this path to get my customized UI components?
I want to run audio in call duration, which hear from both sides, is there any way to do this?
View 2 Replies View RelatedWithin all the call recorder app available on the play store, which one has fulfill your needs ? One of them is open source ? I don't know which one to choose and there are no reviews about it...And I heard that a lot of these apps record only mic and not the other voice during the call.
View 7 Replies View RelatedI have read that in-call audio is not available to SDK applications. Does that mean that there is no way by which we can access the up link/ down link audio stream? I don't want to do any call recording but instead I would like to use VOICE_CALL or VOICE_UP LINK or VOICE_DOWN LINK through my app which is interfaced with the blue tooth headset, so that I can use the Noise Cancellation capability of my blue tooth (which gets activated only when you are in phone-call mode). But am not sure how to go about doing it. To record and playback am using Audio Record and Audio Track classes.
View 2 Replies View RelatedI have seen apps in the Android Marketplace with regards to an app recording an ongoing phone conversation. I am interested in how this is done. Anyone knows how the call is being recorded?Is there a way to maybe get an Audio Stream for a call in Android?
View 2 Replies View RelatedI want to accept incoming calls and play an audio file for the caller. Is there a possibility of playing an audio file during a phonecall, so that the caller hears a wav- file? It seems to me that nothing is possible during a phone call since release 1.0. Hope this is getting better in the next release.
View 5 Replies View RelatedI would like to access the audio that my call manager captures while a call is active.
I would like to access it before it is transmitted to the other party.
My application is making call from application. Now I want to play some audio on speaker when the caller will receive call. So can some one tell me will i have to play audio in new thread or I will have to do some change? Can someone give me any code snippet?
View 3 Replies View RelatedIs it possible to modify an active call by overlaying a sound track during the call? I looked up the SDK, but couldn't find any api to do this in the documentation. I am trying to investigate the feasibility of playing a previously recorded call/audio clip onto an ongoing call.
View 1 Replies View Related