Skip to content

Opus audio codec for Swift Package Manager

License

Notifications You must be signed in to change notification settings

alta/swift-opus

Repository files navigation

Swift Opus

Type-safe Swift bindings for the Opus audio codec on Apple platforms (iOS, tvOS, macOS, watchOS).

This package enables low-level Opus packet encoding and decoding to an AVAudioPCMBuffer suitable for playback via an AVAudioEngine and AVAudioPlayerNode. This was built for a now-defunct audio app for iOS and macOS, and runs reliably with multiple 48khz Opus audio channels over a typical 4G connection on modern iPhone devices.

Installation

Use Swift Package Manager to add this to your Xcode project or Swift package.

Note

This package neither vendors the original Opus source code or embeds precompiled libraries or binary frameworks. It embeds the current Opus C source as a git submodule, which Swift Package Manager will automatically download as part of the build process. See Package.swift for details.

Usage

TODO

License

See LICENSE for more information.