OpusCAF

Install

Example Usage

import OpusCAF

let docDir = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0]

let inputFile = Bundle.main.path(forResource: "sample", ofType: "opus")!
let outputFile = docDir.appendingPathComponent("sample.caf")

OpusCAF.ConvertOpusToCaf(inputFile: inputFile, outputPath: outputFile.path)