Record Speakers & Microphone At Same Time

Viewed 16

I'm recording audio with AVAudioRecorder,

But is recorded only from microphone, I want a recorder the speaker and microphone at same time.

(The app should record a call)

    func record() {
    do {
        try AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryAmbient)
    } catch {
        print("Error")
    }

    do {
        try AVAudioSession.sharedInstance().setActive(true)
    } catch {
        print("Error")
    }
}

what i do wrong?

0 Answers
Related