Shortcuts

torchaudio.functional.loudness

torchaudio.functional.loudness(waveform: Tensor, sample_rate: int)[source]

Measure audio loudness according to the ITU-R BS.1770-4 recommendation.

This feature supports the following devices: CPU, CUDA This API supports the following properties: TorchScript
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

Reference:

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources