擅长:python、mysql、java
<p><code>librosa.output</code>在librosa版本0.8.0中被删除。这记录在<a href="https://librosa.org/doc/latest/changelog.html?highlight=output#v0-8-0" rel="noreferrer">their changelog</a>中。
所以您的问题最可能的原因是您正在使用这个新版本的librosa(而不是版本0.6.x)。您可以通过执行<code>print(librosa.__version__)</code>进行验证</p>
<p>对于ModenLibrosa,您应该使用<a href="https://pysoundfile.readthedocs.io/en/0.8.1/#soundfile.write" rel="noreferrer">soundfile.write</a>来编写音频输出</p>