auditok.signal.compute_average_channel_stereo¶
-
auditok.signal.
compute_average_channel_stereo
(data, sample_width)[source]¶ Compute and return average channel of stereo audio data. This function should be used when the number of channels is exactly 2 because in that case we can use standard audioop module which much faster then calling
compute_average_channel()
.Parameters: - data (bytes) – 2-channel audio data to mix down.
- sample_width (int) – size in bytes of one audio sample (one channel considered).
Returns: mono_audio – mixed down audio data.
Return type: bytes