user2583310
user2583310

Reputation: 17

Play audio file to iOS Simulator Mic

Is it possible at all to play a audio file directly to the iOS simulator?

In essence, redirect the audio output to the audio input on the computer so the iOS simulator could receive the audio through its mic?

Upvotes: 0

Views: 895

Answers (2)

user2583310
user2583310

Reputation: 17

My solution was using Rogue Amoeba's Sound Flower and creating new channels of audio. Then going into Mac's Audio MIDI Setup app under utilities to set the virtual channel to be both the input and output, allowing the audio file that I'm playing on iTunes to directly feed into the microphone of the simulator.

Upvotes: 1

Macrosoft-Dev
Macrosoft-Dev

Reputation: 2185

https://discussions.apple.com/thread/2104726?tstart=0

iOS Simulator does not support audio recording, you should use read device.

https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/iOS_Simulator_Guide/TestingontheiOSSimulator/TestingontheiOSSimulator.html#//apple_ref/doc/uid/TP40012848-CH4-SW1

Hardware Limitations While most of the functionality of iOS devices can be simulated in iOS Simulator, there are some hardware features that must be tested directly on a device. The hardware features that cannot be simulated are:

Accelerometer

Gyroscope Camera Proximity Sensor

Microphone Input

Upvotes: 1

Related Questions