Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. let settings = [
  2. AVFormatIDKey: Int(kAudioFormatMPEG4AAC),
  3. AVSampleRateKey: 44100.0,
  4. AVNumberOfChannelsKey: 1,
  5. AVEncoderAudioQualityKey: AVAudioQuality.high.rawValue
  6. ] as [String : Any]
  7.  
  8. do {
  9.  
  10. audioRecorder = try AVAudioRecorder(url: audioFilename, settings: settings)
  11. audioRecorder.delegate = self
  12. audioRecorder.record()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement