[Q] Playing back microphone input through audio out - Android Software Development

I've recently broken my PC microphone, and being a cheap SOB, I figured I could plug my Galaxy S into my PC via a standard two sided male 3.5mm wire.
I've been looking for an app that could playback audio input straight into speaker/headphone output, much like you can do in most Windows OSes. But I haven't had much luck. Does anyone know of an app that does what I want?
I've never developed for the android before, but I think I should have enough programming experience to make something this simple. Could anyone point me in the right direction, when it comes to APIs to use?
Thank you.

Virtual Amp
There is an app out there called Virtual Amp that should do the trick for you.
Audio from the mic straight out to the speaker, or headphone jack...

Related

Audio (MP3) through original Dockingstation. HELP!

Hi,
I'm only 13 and a proud owner of an O2 XDA 2.
This I what I need help with.
I would like to place my USB docking station on top of my subwoofer, and connect my XDA with it (only for audio purposes only).
I've read some of the forums here, but didn't find much info. :?
Could someone tell me which pins, on the connector, on the dockingstation send the sound? I would like to add 2 cinch cables to these pins, and attach them to my subwoofer (to kind of make my XDA like an Ipod or another MP3 player, where I simply stick it into my dockingstation and start playing MP3s through my sound system).
Thanks,
Kind Regards,
Tony Schattat
Hi mate.
Note sure you could connect the XDA directly to a speaker as I doubt it would have the required power output (but I don't know much about this, just being logical).
Take a look at the following thread: http://forum.xda-developers.com/viewtopic.php?t=26489&highlight=
This guy has basically modified the headset to have a 3.5mm jack - I've then suggested (and intend on doing this) that you could put 2 standard audio outputs instead.
On reflection though, I think his suggestion may be better as it reduces the number of leads. If you then needed to split the sound out to 2 seperate channels you could use something like this:
http://www.maplin.co.uk/Module.aspx?ModuleNo=43086&doy=3m9
Cheers
Wayne
Hi Wayne,
Thanks for your reply.
I would rather like to have a solution which is built in my dockingstation.
With alot of precision I was able to do the following.
1. Used http://wiki.xda-developers.com/wiki/Connectors for details.
2. On pin 19 on the dockingstation I placed a 10K SMD resistor (as the standard ones are too big), connected to GND, as stated in the text.
3. Using a double cinch cable I soldered them onto pins 3 (CAR_AUDIO_R) and 4 (CAR_AUDIO_L), and both GND wires to GND.
But nothing seems to work.
I used the ohm-metre to check if the 10K resistance even came up to pin 19 of the dockingstation. I does. Unfortunately the XDA doesn't turn off it's built-in speaker and microphone, as stated in the text.
This basically simulates a car-kit for the XDA, doesn't it?
Kind regards,
Tony Schattat
Audio playback
Hiya!
Well if yer are 13 then it seems UK Schools are way behind German ones if they're teaching you about using Ohm Meters, Resistors and electronic theory already!
Ok, overall to me this whole precision soldering and resistor checking etc is all overkill for what you ultimately seem to want to achieve.
I've just bought off eBay the little 2.5 mm to 3.5mm standard headphone jack converter lead for about £2.50. I'm going to go nip into a shop or again off eBay and get a 3.5mm stereo to 2 phono plug convertor lead.
Simple case of then slapping that into the Aux input of my Hi-Fi amplifier, or my mini deck hifi etc and playing the mp3's through that!
No need for faffing around with soldering irons, and electronic theory and all that!
Added benefit is of course that through the hifi unit, I have full control over the audio equaliser functions and so will have the full spectrum of audio frequencies to hear the music - Your requirements states you just want to connect it to a subwoofer. Low frequencies are great, but you do need the upper frequencies too!
That will all set you back the grand total of about £5, and i've assumed you do have some audio equipment with an Aux input!
For 'constant' playback, when yer battery gets flat,... just plug the charger in!
Another benefit is that you can take the leads with you on your travels and setup the same at any of your friends houses with minimal effort!
I don't see the point of the route you are wishing to take - unless I'm missing something (I got in at 7am this morning after clubbing and up at midday, so im knackered!)
Cheers!
Hope this helps!
Dennis! West London UK!
Hi Dennis,
Well the schools here aren't all that far ahead ( I think, because I`ve lived in Australia for 6 years)!
It runs in the family!
I was able to find some handy info on some dockingstations on google, but I'm not very sure.
Is it true that the serial dockingstations have an audio connector on the rear side, opposite of the power connector?
Is the audio connector on the dockingstation the same thing as the one, which is found at the bottom of the XDA (would it disable the built in mic and speaker of the XDA and send the audio through connector on the back)?
If this is true, could I simply attach a 2,5mm to 3,5mm converter to the back of the dockingstation and attach the converter to my subwoofer?
Kind regards,
Tony Schattat
Audio playback
Hi there Tony
I'm still not sure exactly why you want to connect your USB cradle to play music through.... seems pointless to me..
The method I described would be the easiest for you to 'amplify' the audio output from the XDA2.
I may be wrong but I dont think the USB cradles have an 'audio output' connector at the back, it's a bit pointless as these devices aren't devised as 'audio players' - so no, you cannot put the 2.5 to 3.5 mm converter on and then connect that to your subwoofer (signal is wayyy wayyy too small to drive a sub woofer) if there is an audio output at trhe back of the usb cradle, then I never knew about it!! and same again, you cannot connect directly to a sub woofer.
Out of the socket at the bottom of the xda2 in a 2.5mm size, is an audio jack. Get the converter to take that 2.5 mm and output it to a standard 3.5mm headphone socket size. Right, at this stage you can connect 'Hifi' headphones and enjoy your MP3's that way. If you now want your music 'louder' you need to convert that (now) 3.5mm output to be able to connect it to some audio equipment that can 'amplify' the signal and play through some loudspeakers (the 3.5mm socket to Phono converter lead). That will go to your hifi amplifier in turn to which 'full range'loudspeakers are connected. You mention 'sub woofer' .. You could then attach your sub woofer to the amplifier and you will only hear the low 'rumble' of the bass frequency content of the music (again, a bit pointless!). If that's what you want then at this point all will work but then what's your plan for hearing the mid range and high frequency elements of the music?
I'm just thinking that for your final 'aim' (to hear MP3 files on the xda through loudspeakers) the method you are using is cumbersome, time consuming and pointless when you can have a 'full range' output using the method I described.
Take a look at eBay for the connectors - and you'll find you should be hearing music in no time!
Cheers! Dennis! West London UK!

8125 Audio Output Jack Problems?

I recently have gone through two different Body Glove Sport Stereo headphones with some issues. I can't decide if I have another faulty headset or if the phone audio connector is the issue. The body glove headset is similar to the headset that comes with the 8125, but it looked more comfortable.
The problem I am having is this, the headphones only play in the right side. Messing with the plug on the headset results in some quick burst of audio on the left side and pulling it out a tad gives me some faint left audio and the right side audio goes out completely. It seems the plug and jack don't quite jive... anyone else experience this? It comes with an adapter for the "bigger jack" and upon trying one of my girls iPods, they work fine with the adapter in the mix.
My application is this... I listen to MP3's while riding my motorcycle and the earphones that came with the phone hurt my ears after a while. Plus they don't have the greatest audio quality. Looking for a comfy replacement, but the above issue has me scratcing my head.
Here is a link to the headphones: here
i think...
i think you have the wrong adapter. i tried using the slvrs adapter with my 8125 and it did not work same prob as you. i went to radioshack and got one from there and it did. im most absolutely sure is the inner wiring. what happens is that there's also a connection for a microphone on the 8125 so some adapters dont work.
http://www.pocketpctechs.com/main~unit~Cingular_8125-559~area~accessories~item~PPCPADPT21.htm
ps my friend got a mono one at radio shack and it worked for him both sides. hes not a audiophile but you get the idea, it has to be the connection of your plug.
The headphones in addition to be being stereo, have the microphone too, I think the paragraph in the page you linked clears up a few questions for me:
Most manufacturers create their devices allowing audio compatibility with only their specific brand headset or headphones. We have designed and engineered several different types of audio adapters to accommodate a variety of devices. Our unique audio adapters give you the freedom to use any standard 2.5/3.5 mm. 3 conductor headset and/or your favorite set of headphones.
Click to expand...
Click to collapse
It would seem although the Body Glove headset uses the 2.5mm jack, the internals of the 8125 are off enough that a select few aftermarket stereo headsets with mics will work with the phone. Interesting.
Upon further examination of the jack, it is different than the one that came with the phone. In spite of the BodyGlove being a stereo headet with a mic... just like the one that comes with the phone, the connector is different enough to not with aftermarket stuff I guess. Those dirty rascals!!!
The connector on the left is the one that comes with the 8125, the one on the right is the BodyGlove.
Searched and found this old thread. I went to connect my 8125 Wizard to my cars 3.5 jack using a standard adapter and it only came left channel.
Is there a more cost effective proprietary four-conductor jack to a 3.5 mm converter than posted above at PPC Techs? I was hoping to spend a few dollars.
I'm actually using my old Ngages audio cable to get Stereo sound out of my car stereo. It works but sometimes I can't use the mic on the cell phone to talk.
When it works it's really cool, but otherwise I gotta unplug the cable and use it like a regular phone during phone calls.

Does the HD2 work with external microphones?

I've was on the market for a high quality audio recorder but they seem way more expensive than they should be (£100+) yet the only difference between price ranges is the options offered to the consumer.
I was wondering if the HD2 works with a microphone such as this http://www.amazon.co.uk/Sony-ECM-DS70P-Microphone-Stereo-Plugin/dp/B00005QBV2 If so, it could probably equal the high end recording devices. 200 bucks worth. See I have the above microphone and I'm trying to record in notes but despite the microphone being read and distinguished by the headphone symbol in the HD2, it's not picking up the sound.
Does anyone know if the HD2 can support external microphones? If maybe a certain program needs to be used to activate it? It could be a great solution for high quality gig recordings and dictations.
The HD2 uses a jack plug with 3 rings, which you can see on the stock headphones, and the mic is wired to the "inboard" ring your mic doesn't have. That's to keep compatibility with any standard headphones.
So yes it can take an external mic, but it needs to be wired correctly to such a plug. And can obviously only be mono.
Then, whether it can record full quality or applies a "telephone" filter to the input needs testing.
Mono would be suffice, but as there are two mics on the external device, wouldn't there be any way to allow stereo?
What kind of plug are you talking about in regards to wiring it to one?
Thanks kilrah for your very useful post.
Just look at the headphones you received with the phone, and compare the plug with the one on your mic, you'll quickly understand
No way to get stereo as the HD2 only has a mono mic input.
kilrah said:
The HD2 uses a jack plug with 3 rings, which you can see on the stock headphones, and the mic is wired to the "inboard" ring your mic doesn't have. That's to keep compatibility with any standard headphones.
So yes it can take an external mic, but it needs to be wired correctly to such a plug. And can obviously only be mono.
Then, whether it can record full quality or applies a "telephone" filter to the input needs testing.
Click to expand...
Click to collapse
For the Axim X50 / X51 PDAs there was an adapter that took a 3-connector mic jack and rooted it to the correct ring on the 4-connector Axim socket. I tried to find an example with not much luck, but here is a link to start with:
(I am not allowed to post a link; sorry) go to mobilitysite and look up "seidio-audio-adapters".
Unfortunately, the seidio product does not seem to exist anymore... Anyway, would an adapter like this work on the LEO? I would think so, same concept.
Another alternative would be to use the USB port with sthg like the griffin imic but with a micro-USB adapter. Any chance for this?
Good question.
Anyone offer any enlightenment or an idea on adapters?
p34cdc2 said:
For the Axim X50 / X51 PDAs there was an adapter that took a 3-connector mic jack and rooted it to the correct ring on the 4-connector Axim socket. I tried to find an example with not much luck, but here is a link to start with:
(I am not allowed to post a link; sorry) go to mobilitysite and look up "seidio-audio-adapters".
Unfortunately, the seidio product does not seem to exist anymore... Anyway, would an adapter like this work on the LEO? I would think so, same concept.
Another alternative would be to use the USB port with sthg like the griffin imic but with a micro-USB adapter. Any chance for this?
Click to expand...
Click to collapse
I have a slightly different question: if I plug standar eraphones with no mic, when receiving a cal, can i talk into the device's mic?
Yes!
filler

In line microphone for car install

So I have my nexus 7 installed in my car all nice like. I am using the 3.5mm audio jack for simultaneous audio out as well as microphone in. Basically same wiring you have with an in line mic on a pair of headphones. And I want the mic to use on the home screen to use Google experience launchers "OK google" hot phrase while I'm driving. About half the time it works and half the time it doesn't and reverts back to using the internal microphone. Does anyone have any luck getting the mic to work all the time whole plugged into the audio jack.
Splitter (mic in/ audio out)
http://www.amazon.com/gp/product/B00D6NPH88/ref=oh_details_o02_s00_i00?ie=UTF8&psc=1
Small 3.5mm mic (included extension cable)
http://www.amazon.com/gp/product/B000MYPPPE/ref=oh_details_o03_s00_i00?ie=UTF8&psc=1
bossman137 said:
So I have my nexus 7 installed in my car all nice like. I am using the 3.5mm audio jack for simultaneous audio out as well as microphone in. Basically same wiring you have with an in line mic on a pair of headphones. And I want the mic to use on the home screen to use Google experience launchers "OK google" hot phrase while I'm driving. About half the time it works and half the time it doesn't and reverts back to using the internal microphone. Does anyone have any luck getting the mic to work all the time whole plugged into the audio jack
Click to expand...
Click to collapse
Pictures? Links to any supplies you used?
This is a neat idea!
skandranon314 said:
Pictures? Links to any supplies you used?
This is a neat idea!
Click to expand...
Click to collapse
Thanks! Ya i'll post a picture of my build when i get time, i posted links to my cables. The audio out and mic in work wonderfully, about half the time... It's definately something in the the android OS that determines when it uses it's build in mic and when it uses the plugged in mic. just not sure how
nice, i'm interested in trying this out too!

Use External Wired Mic for audio input and Bluetooth speaker for audio out

Hello,
As per the subject matter, I read about how to use Google Assistant on an android mobile/tablet instead of a separate smart speaker (Google Home/Mini). The functionality would be more or less similar with some exceptions with both the options. (comparisons are available around on different sites). Dont want to use the internal device mic/speaker, so looking for options for hooking up external mic/speakers.
[1]I was thinking of a setup to have an external wired mic hooked up to the tablet as being more sensitive to capture a wide area. I know I have to use a TRS to TRRS adapter to be able to hook up only a mic to the headphone jack on any standard android device. I believe android would still detect it as a headset (with microphone and speakers). I have an Audio-Technica ATR-4697 boundary mic which I intend to use for the purpose.
[2]For the audio output I am thinking of hooking up a Bluetooth speaker (always connected on charging) making it sort of a DIY smart speaker.
Can someone please inform if they have done a similar setup and how successful was it , and what are the main problems and not working functions.
One problem I can foresee is that due to point no.1 , the android will try to route the audio via the headphone jack, which would only have a mic connected.
I believe this can be forcefully redirected using the SoundAbout app, will it work.
Or else I can try to get a Y Splitter cable hooked to the headphone jack and connect both a wired mic and a wired AUX in speaker for the purpose. Not sure whether the Y splitter cable would have the same TRRS 3.5mm comaptible pin to hook up to the mobile head jack.
Any thoughts, guidance, product links would be appreciated.
Thanks.
Hmm...no noise as such...maybe i would try myself and would post the results. In the process of gathering stuff and hunting time slot to get at it.

Categories

Resources