Audiokit trim 音频
Audiokit trim audio
我正在制作音频编辑应用,我想要 trim 我的音频。对于音频编辑,我使用 AudioKit 框架。但是我在教程和示例中找不到如何使用此框架 trim 音频?
异步导出允许设置开始和结束样本:
/// 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()
我正在制作音频编辑应用,我想要 trim 我的音频。对于音频编辑,我使用 AudioKit 框架。但是我在教程和示例中找不到如何使用此框架 trim 音频?
异步导出允许设置开始和结束样本:
/// 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()