Opus is a totally open, royalty-free, highly versatile audio codec. Opus is unmatched for interactive speech and music transmission over the Internet, but is also intended for storage and streaming applications. It is standardized by the Internet Engineering Task Force (IETF) as RFC 6716 which incorporated technology from Skype's SILK codec and Xiph.Org's CELT codec.
iOS build scripts for the Opus Codec.
- (Objective-C) Build the static library
- (Optionally for Swift) Build the framework
- (Optionally) Use the CocoaPod spec
Building the Static Library
Download the latest stable tar file and place it into the
Note: If it's a new version of opus or if the iOS SDKs changed since the last time you built it, update that version at the top of the
From the command line, run:
That will take the tar file and build the static library in a directory called
Follow the steps above for building the framework from the static library
Building the Framework
opus/opus.xcodeproj file, select
UniversalTarget with a
Generic iOS Device
Build the framework by pressing Run; this will overwrite the framework in the repo root.
Note: this runs a custom build script within Build Phases that will build a universal framework with both simulator and device slices
Ensure the framework includes slices for both simulator and device architectures (x86_64 i386 armv7 armv7s arm64)
$ lipo -info opus.framework/opus