Latest 1.1.1
License MIT
Platforms ios 8.0, requires ARC

The easiest way to prepare, play, and remove sounds in your Swift app!


CocoaPods Installation

Chirp is available on CocoaPods. Just add the following to your project Podfile:

pod 'Chirp', '~> 1.1'

Non-CocoaPods Installation

You can drop Chirp.swift directly into your project, or drag the Chirp project into your workspace.

Sample code

prepareSound is used to preload a sound into memory. This increases the retain count of the sound by 1. You must call this method before calling playSound

/* MyViewController.swift */

override func viewDidLoad() {

    // Load sounds into memory
    Chirp.sharedManager.prepareSound("boop") // default extension is .wav
    Chirp.sharedManager.prepareSound("ding.mp3") // so other extensions you must name explicitly

playSound plays the preloaded sound

func submitButtonTouched(button: UIButton) {
    // Since the sound is already loaded into memory, this will play immediately

    // example function that might get called when you touch a button

removeSound removes the sound from memory

deinit {
    // Cleanup is really simple!

    // If you never loaded the sounds, e.g. viewDidLoad wasn't called, or submission never failed or succeeded,
    // that's ok, because these will function as no-ops

Enjoy! I know sound management can be a little annoying. Hopefully this helps your project out a little bit.

Latest podspec

    "name": "Chirp",
    "version": "1.1.1",
    "summary": "The easiest way to prepare, play, and remove sounds in your Swift app!",
    "description": "Bored of manually managing SystemSoundIDs?  Chirp gives you a quick and easy way to prepare, play, and remove sounds in your app!  Each of those only taking 1 line of code.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "JP McGlone": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.1.1"
    "platforms": {
        "ios": "8.0"
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "Chirp": [

Pin It on Pinterest

Share This