functional_mu_law_encoding: Mu Law Encoding (functional)

functional_mu_law_encodingR Documentation

Mu Law Encoding (functional)

Description

Encode signal based on mu-law companding. For more info see the Wikipedia Entry

Usage

functional_mu_law_encoding(x, quantization_channels)

Arguments

x

(Tensor): Input tensor

quantization_channels

(int): Number of channels

Details

This algorithm assumes the signal has been scaled to between -1 and 1 and returns a signal encoded with values from 0 to quantization_channels - 1.

Value

tensor: Input after mu-law encoding


curso-r/torchaudio documentation built on May 4, 2023, 2:27 a.m.