audiblelight.augmentation.GSMFullRateCompressor#
- class audiblelight.augmentation.GSMFullRateCompressor(sample_rate=44100, quality=None)#
Bases:
EventAugmentationApplies GSM compression to the audio.
An audio degradation/compression plugin that applies the GSM “Full Rate” compression algorithm to emulate the sound of a 2G cellular phone connection. This plugin internally resamples the input audio to a fixed sample rate of 8kHz (required by the GSM Full Rate codec), although the quality of the resampling algorithm can be specified.
- Parameters:
sample_rate (custom_types.Numeric) – the sample rate for the effect to use.
quality (int | float | complex | integer | floating | DistributionLike | None) – the quality of the resampling. By default, will be sampled between 0 and 3 (inclusive).
- __init__(sample_rate=44100, quality=None)#
- Parameters:
sample_rate (int | float | complex | integer | floating)
quality (int | float | complex | integer | floating | DistributionLike | None)
Methods
__init__([sample_rate, quality])from_dict(input_dict)Initialise an augmentation from a dictionary.
process(input_array)Calls the underlying FX (or a list of FX)
sample_value(override, default_dist)Samples a value according to the following method:
to_dict()Returns the parameters used by this augmentation
Attributes
AUGMENTATION_TYPEnameReturns the name of this augmentation
- QUALITIES = range(0, 4)#