This course is available as part of the Professional subscription. To learn more click here

Audio with AVFoundation

Jul 29 2021 · Video Course (38 mins) · Intermediate

AVFoundation is Apple’s advanced framework for working with time-based media, such as audio and video. This course covers the essentials to using the AVFoundation framework to create audio based apps. You’ll learn how to set up audio sessions; record and playback audio; audio metering, how to control volume and rate; special effects, such as pitch and reverb; and generating speech from text.


  • Swift 5.3, iOS 14, Xcode 12

Audio with AVFoundation

Record Audio

8:10 Free

Get started with AVFoundation by recording some spoken audio with the AVRecorder.


Play Audio


Learn how to play back audio with the AVAudioPlayer and configure it with audio settings.


Understand how to configure your app to respond to headphone changes or phone interuptions.


Incorporate audio metering by making a penguin animate to the sound of your voice.


Learn how to add reverb and pitch effects into your audio by way of the AVAudioEngine.


Use the speech synthesizer to add text to speech to your app.


Who is this for?

This course is for intermediate iOS developers who are comfortable with the Swift language, SwiftUI and know their way around Xcode.

Covered concepts

  • Audio Recording
  • Audio Playback
  • Interuptionss and Route Changes
  • Audio Metering
  • Reverb, Rate and Pitch Effects
  • Audio Engine
  • Speech Synthesizer