transform_mu_law_encoding: Mu Law Encoding

transform_mu_law_encodingR Documentation

Mu Law Encoding

Description

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

Usage

transform_mu_law_encoding(quantization_channels = 256)

Arguments

quantization_channels

(int, optional): Number of channels. (Default: 256)

Details

forward param: x (Tensor): A signal to be encoded.

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

x_mu (Tensor): An encoded signal.


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