使用了 IPython.display.Audio库
如果有问题可以升级库
pip install --upgrade IPython
import IPython.display as ipd
audio_path = 'output.wav'
ipd.Audio(audio_path)
使用了 IPython.display.Audio库
如果有问题可以升级库
pip install --upgrade IPython
import IPython.display as ipd
audio_path = 'output.wav'
ipd.Audio(audio_path)