https://github.com/alta/swift-opus
Opus audio codec for Swift Package Manager
https://github.com/alta/swift-opus
opus opus-codec swift swift-package-manager
Last synced: 29 days ago
JSON representation
Opus audio codec for Swift Package Manager
- Host: GitHub
- URL: https://github.com/alta/swift-opus
- Owner: alta
- License: bsd-3-clause
- Created: 2021-03-21T01:18:55.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-08-05T19:53:17.000Z (over 1 year ago)
- Last Synced: 2026-01-22T07:33:50.739Z (3 months ago)
- Topics: opus, opus-codec, swift, swift-package-manager
- Language: Swift
- Homepage:
- Size: 132 KB
- Stars: 113
- Watchers: 5
- Forks: 42
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swift Opus
Type-safe [Swift](https://swift.org/) bindings for the [Opus audio codec](https://opus-codec.org/) 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](https://swift.org/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](Sources/Copus), which Swift Package Manager will automatically download as part of the build process. See [Package.swift](Package.swift) for details.
## Usage
TODO
## License
See [LICENSE](LICENSE) for more information.