Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/279.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在python scipy中获取所有音频参数?_Python_Audio_Feature Detection - Fatal编程技术网

如何在python scipy中获取所有音频参数?

如何在python scipy中获取所有音频参数?,python,audio,feature-detection,Python,Audio,Feature Detection,我必须使用scipy.io.wavfile库来提取音频参数。我知道我可以使用pythonwave获取所有音频参数。但是如何使用scipy.io.wavfile import scipy.io.wavfile as wav (sample_rate,signal) = wav.read("english.wav") n_channels = signal.shape[1] 但是我怎样才能得到其他参数呢 frame_rate = ? total_n_frames = ? frame_rate =

我必须使用
scipy.io.wavfile
库来提取音频参数。我知道我可以使用python
wave
获取所有音频参数。但是如何使用
scipy.io.wavfile

import scipy.io.wavfile as wav
(sample_rate,signal) = wav.read("english.wav")
n_channels = signal.shape[1]
但是我怎样才能得到其他参数呢

frame_rate = ?
total_n_frames = ?
frame_rate = sample_rate
total_n_frames = signal.shape[0]