iOS capturing audio via jack port - iphone

I know ios audio programming can route the audio signal to headphone jack port instead the speakers.
But How to treat the headphone jack port as input mic (and be able to capture the signal)?
is that possible?
this is what I need
cool video explaining what I need
thanks in advance
Dario

Apple has a nice demonstration project about using Audio Queue Services
http://developer.apple.com/library/ios/#samplecode/SpeakHere/Introduction/Intro.html
I would suggest going through this project, and it should show you what you need.

Related

iOS line in via headphone jack (adapter?)

I want to record an audio signal with my Audio Unit on my iPhone which comes from a normal 3.5mm audio cable (e.g. with another iPhone acting as sound source).
A direct line-in is not possible, because the iPhone has a 4 port headphone jack.
I tried different kinds of these adapters:
http://www.amazon.com/StarTech-com-headsets-separate-headphone-microphone/dp/B004SP0WAQ/ref=sr_1_3?ie=UTF8&qid=1446196112&sr=8-3&keywords=3.5mm+headphone+mic+splitter
But none of these worked.
Am I doing something wrong?
What else could I try?
Thanks a lot and have a nice day!
You have to match the expected impedance for the microphone. Otherwise the device treats it as if it weren't there. Check this out for details.

Audio streaming from microphone to Speaker in iphone xcode

Actually i'm a newbee to iOS development.
My requirement from a client is to make iPhone work as a MegaPhone. i.e, Audio input should be taken from the bluetooth or microphone and broadcast it through phone speakers.
I am able to record audio from microphone and play it using AVAudioRecorder and AVAudioPlayer,but what actually i needed is to broadcast to the speakers not recording.
Guys any sample codes available for this??
Thanks in advance.
AurioTouch sample code is available for this purpose
http://developer.apple.com/library/ios/#samplecode/aurioTouch/Introduction/Intro.html

iPhone API - Sending electric signals thru audio jack

Anyone know if this is allowed by the iPhone's various Api's or even if Apple allows this?
Example: Plug something in the audio jack and use it as a "taser" (this is just a hypothetical/proof-of-concept example).
Yes. The standard way of "sending electrical signals through the audio jack" is
known as "playing audio", and I'm pretty sure this is possible on the iPhone.

Outputting sound using multiple audio routes at the same time in an iPhone App?

I'm playing around with audio routes in AVAudioSession at the moment and I'm wondering whether it is possible to output sound to multiple audio routes at the same time i.e. a sound playing from the speaker and a different sound playing in the headphones? Ideally I'd like to be able to play separate sounds via a dock connector (using a 3.5mm jack adapter) and the headphone jack at the same time so if someone could tell me whether or not this is actually possible that would be a great help.
Thanks
I don't think it was possible three years ago when you wrote this, but it is possible now to play one sound through the headphone jack and another through a USB audio interface connected to the dock connector. This WWDC presentation walks you through it and provides sample code.
I don't think it's possible to play separate sounds through the headphone jack and the speaker because the AVAudioSessionRouteDescription only shows one of these built-in output ports at a time. You'd have to add a second audio interface via USB, which adds a second output port to the AVAudioSessionRouteDescription. I'm testing with a Roland Duo-Capture mk2 right now and it's working.

Audio using Yeti Mic does not work on iPhone Simulator

I am following iPhone Core Audio Tutorial by Tim Bolstad. It works as expected. I can hear the audio successfully.
But when I plug-in USB Yeti Stereo Microphone by BlueMic on my MacMini. It does not produce the sound anymore.
Why is that?
Thanks in advance for your help.
Great news! It turns out that the output (sound) is sent to the Yeti speaker.
I connect my speaker to Yeti's headphone output. Now I can hear the sound.