Swiftpack.co - ybrid/opus-swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by ybrid.
ybrid/opus-swift 0.8.0
A swift xcframework wrapper for opus audio codec libraries.
⭐️ 13
🕓 2 years ago
iOS macOS
.package(url: "https://github.com/ybrid/opus-swift.git", from: "0.8.0")

opus-swift

A swift wrapper to use the Opus Interactive Audio Codec libopus API.

Intension of this project is to support audio player SDK with a platform independend XCFramework that can be integrated in swift projects via CocoaPod.

It supports iOS devices and simulators (version 9 to 14) and macOS (versions 10.10 to 11.5)

Versions

We support version 1.3.1 of libopus API.

Integration

After integration use

import YbridOpus

in your Swift code.

If you use CocoaPods

The Cocoa Podfile of a project using this framework, should look like

platform :ios, '9.0'
target 'player-sdk-swift' do
  use_frameworks!
  source 'https://github.com/CocoaPods/Specs.git'
  pod 'YbridOpus'
end

If you use Swift Package Management

The Package.swift using this framework should look like

  ...
  dependencies: [
    .package(
      name: "YbridOpus", 
      url: "https://github.com/ybrid/opus-swift.git", 
      from: "0.8.0"),
  ...

If you don't use CocoaPods or Swift Package Managenment

If you manage packages in another way you may download YbridOpus.xcframework.zip from the latest release of this repository and embed it into your own project manually.

Unzip the file into a directory called 'Frameworks' of your XCode project. In the properties editor, drag and drop the directory into the section 'Frameworks, Libraries and Embedded Content' of the target's 'General' tab.

Contributing

You are welcome to contribute.

Licenses

This project is under MIT license. We create the opus binaries for iOS and macOS from opus sources of version 1.3.1. Opus is freely licensed under BSD, see the LICENSE file.

GitHub

link
Stars: 13
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

2 years ago

XCFramework wraps libopus 1.3.1 to use in Swift.

Changes:

  • support for Swift Package Management

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics