loopback audio test - IDEs, Libraries, & Programming Tools

Hello all,
I am new in Android dev.
For an specfic device test purpose, I want to write an APP that gets the audio from the microphone and plays it back through the head-phone.
I was just wondering if this is possible at all (to get the signal in real-time and play it back through the headphone).
Would you please direct me, share any ideas you have or even introduce me a library or something that I should start with.
Many thanks in advance.
Vahid

Related

answering machine (without recording, I have read others)

Well from reading other threads I learned that an answering machine software is not possible due to lacking ability to record from the radio audio output (on most phones, possible on univ?).
Well then how about not recording, but automatic pickup and sending prerecorded audio? Would that be possible? Like in: someone calls my phone->software picks up and plays back prerecorded message to caller "I'm in a meeting, please call back at 5pm" ->software hangs up.
Possible or not? Who would be willing to write something like this?
I think there's the same issue - the phone audio path is seperated from the PDA audio path. Read Odeean's posts on TAPI and his frustrations. However, the http://teksoftco.com boys seem to have hinted that this may in fact be possible anyway.
It may be possible I suppose, by writing specific drivers, but I don't think any of us have ever tried I guess.
V
We'll keep you updated with what can be done altough the system is not built to support this kind of features. Firstly because in the US recording audio on phone conversation is ilegal so MSFT doesn't supports this and onestly i don't see HTC being able to offer this kind of support.
Also what Vijay outlined is correct... but we have a few more ideas that we are curently testing...as i said we'll post it if we succeded.
Cheers,
Raul
i believe that it is not a hardware limitation.
The sound from the gsm is not analogue. It passes through the OS somehow, otherwise how is the audio transmitted to the bt hfree?
I don't believe that the transmition of audio (from gsm) to the bt hfree is done only by hardware.
Please comment
andrew_sh is making a good point there. Maybe something can be done by "faking" bluetooth data input?
We have a working answering machine on Himalaya.
See last ROM from TofClock...
Good point made by Andrew. A new bluetooth headset driver or a fake one might do the trick. Cross your fingers guys.
The OS has evolved since Himalaya and HTC has restricted access to drivers by creating a locking mechanism and also the signing process is a hop to pass.
Guys, from my understanding and a poll I've run:
http://forum.xda-developers.com/viewtopic.php?t=40100&highlight=telephone+poll
it doesn't seem like many people have succeeded in recording calls, and those that have are generally using the Himalaya only. The gigabyte can, but it has custom hardware.
We've discussed spoofing the bluetooth audio path before by using a dummy driver and receiver, but mamaich has stated that the audio path for the bluetooth is in hardware only, and seperated from the interceptable paths in the OS.
Rain (for those who don't know, is one of the genii at http://teksoftco.com) - if you have any new ideas, may I ask you to PM me?
Odeean, Mamaich and I have had numerous discussions about this and I'd be interested to know how your research is going. I read that you guys have experience at low level audio driver work (great work on the speakerphone btw!), and I think that might be a good way to go. There is certainly some OS control of the audio path (speakerphone, mute, headset<>bluetooth etc), so I've thought about this way...
V

[REQ] Headphone mode switcher

Hey everybody,
I was wondering if somebody knew of an app that could force the desire to output the sound through the 3.5mm jack or could write one (doesn't have to look fancy)
I found toggleheadset2 but that doesn't work for android 2.2, also found sound route switcher but has the same problem.
So can anybody please help, because my phone has problems recognizing my headphones (some waterdamage) and heading on a trip in two weeks and I don't want to annoy everybody on the plane with the sound of the movies i want to watch on my phone.
Thanks in advance and hope I was clear
bump
Has nobody any idea?

[Q] New audio Routing + Bluetooth support from Rhod

Hi,
I was checking the Rhodium Android forum, and found the following developing work:
http://forum.xda-developers.com/showthread.php?t=1076884
Is anyone able to check if this may work on our blackstone?
I'm happy with the FRX6, but audio shutering and lack of BT make it not suitable for daily basis.
If someone make this fixes to work, pls post a tutorial!
Thanks
Audio stuttering has been 'worked around' ages ago, see http://forum.xda-developers.com/showthread.php?t=999544
As for BT, i don't know about that. In the second post there's something about Broadcom an TI chips, so if the Blackstone has a Broadcom chip why not just try it out. The instructions for the setup are all there in the thread
Let us know how it turns out
ypsmav said:
Is anyone able to check if this may work on our blackstone?
Click to expand...
Click to collapse
Why can't You try on your phone?
i had test libhtc_acoustic with acoustic supported kernel.Sound working but only on call speaker but not on loud speaker or audio jack.Need for viruscrazy to update the lib and kernel to support all devices.Audio stutter still there.Still no clean fix when u disable battery service during listen to mp3.You will end up listening to mp3 not knowing your phone going to die.Audio stutter will be fix when there are no resource and excessive service running

[Q] Music equalizers

Hello everyone,
I just recently made the jump from a S2 to the S4 and I must say this phone surpasses all my expectations so far. The only thing that I find I need to get working better is the audio for music. Playing music in the google music app seems kinda flat. My old phone phone was rooted and I had beats audio on it, but with my new phone I don't really need to root it till we get LTE in my area for wifi tethering. That's really all i need to root for. Can anyone recommend a way to increase my audio experience? I have tried a couple of equalizers off the play store but they only seem to work for a short time before they stop and I have to reboot or reload the app.
Thanks for any advice or help anyone can give.
Brian
EDIT: I mainly use a LG BT headset with my phone so that would need to be supported ( which has been part of my issue ) .
Any one help out ?

[Q] Bluetooth

Hello all,
I'm trying to make a short range messaging app that allows people in bluetooth range to just send messages out to whoever might be listening. I've been looking everywhere for how this might be done but I've come up nearly empty handed. I'm almost ready to give up, but when I was examining the way bump sends files there is no pairing to be done it just seems to work. Does anyone know how I might accomplish my goal?
Thank you!

Categories

Resources