I'm making audio editing app, and I want trim my audio. For audio editing I use AudioKit framework. But I can't find in tutorials, and examples, how I can trim audio using this framework?
Audiokit trim audio
Export asynchronously allows for setting the start and end samples:
/// Exports Asynchronously to a new AKAudiofile with trimming options.
///
...
/// - fromSample: start range in samples
/// - toSample: end range time in samples
...
public func exportAsynchronously(name: String,
baseDir: BaseDirectory,
exportFormat: ExportFormat,
fromSample: Int64 = 0,
toSample: Int64 = 0,
callback: @escaping AsyncProcessCallback) {
let fromFileExt = fileExt.lowercased()
Thank you! That's what I was looking for. –
Snazzy
exportAsynchronously it's not supported in AudioKit 5 –
Lina
© 2022 - 2024 — McMap. All rights reserved.