Read from "output" as from "input" - iphone

Some on of you saw this.
So the question is, how to access mobile audio out in read mode?
Thank you!

That's fundamentally impossible, at least from the level of a software application (it could be possible in hardware or even firmware). That device works by taking advantage of the microphone jack included in the headphone jack. The hardware communicates with the application via an audio signal that is read from the microphone input.

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.

iPhone Bluetooth Audio API

My car has bluetooth capabilities for connecting to my iphone for phone calls; however, it does NOT support bluetooth audio for music streaming. I know apps like viber or skype also use bluetooth for phone calls. My question is: is it possible to write an app that fakes phone calls to stream music to my car, as if someone is calling me (but is actually playing music)? Is there some other way to hack this to get bluetooth audio streaming?
No need to jailbreak your phone. Just buy the A2DPblocker app. Costs $2.99. Sound quality isn't perfect but better than the alternative. Worked for my 2010 Volkswagen so should work for any other car that supports bluetooth but not streaming music.
First poster -
There is already an app to do this - it's part of SBSettings called Bluetooth Mono that needs to be installed (so only MONO and only for JB'd phones).
Second poster -
I suspect you are correct about HSP - I've installed the app and the sound quality is terrible.
So, I've put all my music on a USB stick and leave it permanently plugged in. Far superior sound.
Mike
I don't think there's an easy way to do this. But the bigger issue is that it would sound terrible. The bluetooth connections for doing phone calls use headset profile (HSP) and are low bitrate, mono, and frequency limited to voice ranges.
Applications for streaming audio/music over bluetooth use A2DP profile, which is much higher bandwidth and stereo.
If you try to pipe music over a an HSP phone link it will sound horrible, just as it does if you are talking to someone on the phone and they have music playing in the background.

Capture audio from dock connector

I'm writing an app which captures audio from the mic input which works fine but I want to capture audio from the dock connector rather than the mic input. I know that pins 5 and 6 are audio inputs, so my question is from a software point of view, is this possible and would I just use the AudioToolbox framework functions as I am now?
No. This is not possible for regular apps on stock OS iOS devices. Inputs on the dock connector appear to be inaccessible from any app except when working under Apple's MFi program. You have to contact Apple for any information on enrolling in this program, which may involve some paperwork.
Apples Camera Connection Kit might allow using USB microphones for input. There are also some 3rd-party audio dock input products.

Is it possible to read iPhone or Android display data through the audio jack?

I'm not very well versed in the iPhone and Android API, so please bear with me if this is a stupid question.
As I understand it, Square's card reader works by converting the magnetic information on the card stripe into an audio tone that its software can then process. [1]
In a similar way, is there a way to somehow read what exactly is being displayed on the device screen simply through a small device inserted into the audio jack on that device?
[1] http://www.quora.com/How-does-Squares-hardware-work
It's not quite clear what you wish to achieve. You can indeed make an app that would output a representation (perhaps audio frequency-shift keying?) of the screen's contents to the iPhone's audio jack.
The iPhone (and other iOS-based devices) use TRRS connectors for bi-directional audio (and hence arbitrary modulated data) communication and there are well-supported publicly-documented APIs for using these interfaces.
That said, if you're writing your own app: why would you want to output the contents of the screen? If you are developing the app in question, why not transmit the salient data in a more effective manner? Which leads me to my next assumption:
You want to read what's being displayed on the device's screen at any time, not just when an app of your creation is open. In this case, the answer is that it is not possible, with the possible exception of a jailbroken solution. That said, I can't imagine a jailbroken solution being useful much longer on account of iOS 5 introduced "display mirroring" by means of AirPlay.
On Android, I have no idea. :-)
No. The screen is not connected to the audio jack.
I think you can make an app to take a screenshot and then encode that photo as music to play it.
It won't sound good though :)
For this kind of task, there is built in camera

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.