%% Remove Augmentation Method
% Create a default audioDataAugmenter object.

aug = audioDataAugmenter

%
% Add a custom augmentation method that applies a random DC offset.

algorithmName = 'DCOffset';
algorithmHandle = @(x)x+rand(1,'like',x);
addAugmentationMethod(aug,algorithmName,algorithmHandle)
aug

% Remove the custom augmentation method.

removeAugmentationMethod(aug,algorithmName)
aug

% Copyright 2019 The MathWorks, Inc.