Automatic Gain Control

This module contains the class for webrtc’s automatic gain control

class spokestack.agc.webrtc.AutomaticGainControl(sample_rate=16000, frame_width=20, target_level_dbfs=3, compression_gain_db=15, limit_enable=True, **kwargs)[source]

WebRTC Automatic Gain Control

Parameters
  • sample_rate (int) – audio sample_rate. (Hz)

  • frame_width (int) – audio frame width. (Ms)

  • target_level_dbfs (int) – target peak audio level. (dBFS)

  • compression_gain_db (int) – dynamic range compression rate. (dB)

  • limit_enable (bool) – enables limiter in compression.

close()[source]

method for pipeline compliance

Return type

None

reset()[source]

method for pipeline compliance

Return type

None