torchaudio.functional.loudness¶
- torchaudio.functional.loudness(waveform: Tensor, sample_rate: int)[source]¶
Measure audio loudness according to the ITU-R BS.1770-4 recommendation.
- Parameters:
waveform (torch.Tensor) – audio waveform of dimension (…, channels, time)
sample_rate (int) – sampling rate of the waveform
- Returns:
loudness estimates (LKFS)
- Return type:
Tensor