我尝试在 Jupyter Notebook(soundfile.read()) 中读取音频文件并得到错误:
打开“gruesome.flac”时出错:无法识别格式。
如何解决问题?
代码:
import librosa
import librosa.display
import soundfile as sf
import numpy as np
import pandas as pd
from glob import glob
import random
import matplotlib.pyplot as plt
import IPython.display as ipd
%matplotlib inline
import warnings
audio, sr = sf.read('gruesome.flac')
错误: