python - 使用tensorflow.contrib.framework.python.ops.audio_ops.audio_spectrogram生成频谱图

标签 python tensorflow

如何改变FFT的长度?

  Args:
    input: A `Tensor` of type `float32`. Float representation of audio data.
    window_size: An `int`.
      How wide the input window is in samples. For the highest efficiency
      this should be a power of two, but other values are accepted.
    stride: An `int`.
      How widely apart the center of adjacent sample windows should be.
    magnitude_squared: An optional `bool`. Defaults to `False`.
      Whether to return the squared magnitude or just the
      magnitude. Using squared magnitude can avoid extra calculations.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `float32`.
    3D representation of the audio frequencies as an image.

以上是函数的参数和返回值。

最佳答案

输入张量的形状是FFT长度

关于python - 使用tensorflow.contrib.framework.python.ops.audio_ops.audio_spectrogram生成频谱图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48660391/

相关文章:

python - 包含的 urlconf 中没有任何模式 + django

python - TensorFlow 图像读取和显示

python - Tensorflow:计算每个样本的 Hessian 矩阵

python-3.x - 一张训练图像上相同或不同类的多个实例的 TFRecord 格式

python - 在 python 中查找行和列中的最小对值?

python - OpenCV 在轮廓旋转后将不规则轮廓区域复制到另一幅图像

python - 通过 PIP 在虚拟环境上安装 NLTK - Python3 - Windows 64 位

python - 无法找出给定 for 循环的原因(Python 3.11)

python - 未知批量大小的 Tensorflow tensordot

python - 如何使用 TensorFlow 计算矩阵运算?