快捷方式

torchaudio.functional.detect_pitch_frequency

torchaudio.functional.detect_pitch_frequency(waveform: Tensor, sample_rate: int, frame_time: float = 0.01, win_length: int = 30, freq_low: int = 85, freq_high: int = 3400) Tensor[源代码]

检测音高频率。

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

它使用归一化互相关函数和中值平滑来实现。

参数
  • waveform (Tensor) – 音频张量,维度为 (..., freq, time)

  • sample_rate (int) – 波形的采样率 (Hz)

  • frame_time (float, 可选) – 帧的持续时间 (默认: 10 ** (-2))。

  • win_length (int, 可选) – 中值平滑的窗口长度 (以帧数为单位) (默认: 30)。

  • freq_low (int, 可选) – 可检测的最低频率 (Hz) (默认: 85)。

  • freq_high (int, 可选) – 可检测的最高频率 (Hz) (默认: 3400)。

返回

频率张量,维度为 (..., frame)

返回类型

张量

使用 detect_pitch_frequency 的教程
Audio Feature Extractions

音频特征提取

音频特征提取

文档

访问全面的 PyTorch 开发者文档

查看文档

教程

为初学者和高级开发者提供深入的教程

查看教程

资源

查找开发资源并让您的问题得到解答

查看资源