I m working on an application in which i have to record the voice and play.it works fine,but when i write [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil];
in AppDelegate it will not allow me to record the voice.
Any idea ?! i want to listen the recorded voice with background music.
Asked
Active
Viewed 542 times
1

V.D
- 403
- 1
- 6
- 22
-
Try to use AVAudioSessionCategoryPlayAndRecord category – Ashish Kakkad May 14 '14 at 07:03
-
i tried,but then background music stops. – V.D May 14 '14 at 07:04
-
if you want to play background music also then look at this answer http://stackoverflow.com/questions/22591421/ios-background-audio-not-playing/22777813#22777813 – Ashish Kakkad May 14 '14 at 07:07
-
Thanks.but i don't want to play my voice recording in background. let us say i am listening music from iTunes and when i press Record button in my App.AVAudioRecorder doesn't start recording.I have check the state of MPMusicplayer and Pause it,then start recording.but fails. :( – V.D May 14 '14 at 07:13
-
I have the same problem as you with live streaming audio.. – Ashish Kakkad May 14 '14 at 07:19