Reputation: 9143
Is it possible record the actual sound on the simulator using the mic.
I have created the recorder which record the sound in simulator but not recording the actual audio its just null(empty) audio.
Upvotes: 11
Views: 13172
Reputation: 430
The old answer for this question is now incorrect; the iOS Simulator now supports audio input/recording.
Pic below related: where you set your audio input device (defaults to your system default)
Also be warned, some online Apple dev docs still say audio input is unsupported by the simulator ("as of 8.2") even though it is with newer versions...
Edit: Screenshot from OS X 10.12 (Sierra), Xcode 9.1 (function is also available in later Xcode 8, > 8.2)
Upvotes: 20
Reputation: 21726
iOS Simulator does not support audio recording, you should use real device to test.
Here you can read about Limitations of Testing in iOS Simulator
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 SensorMicrophone Input
Upvotes: 14