快捷鍵

torchaudio.functional.mu_law_encoding

torchaudio.functional.mu_law_encoding(x: Tensor, quantization_channels: int) Tensor[原始碼]

基於 μ-law 壓縮編碼訊號。

This feature supports the following devices: CPU, CUDA This API supports the following properties: TorchScript

更多資訊請參閱維基百科條目

此演算法預期訊號已縮放到 -1 和 1 之間,並傳回編碼後的訊號,其值介於 0 到 quantization_channels - 1 之間。

參數:
  • x (Tensor) – 輸入張量

  • quantization_channels (int) – 通道數量

返回:

μ-law 編碼後的輸入

返回類型:

Tensor

文件

存取 PyTorch 的完整開發者文件

查看文件

教學

取得適合初學者和進階開發者的深入教學

查看教學

資源

尋找開發資源並獲得問題解答

查看資源