如何在 dart flutter 中读取音频文件?

AJI*_*NTI 7 java android mobile-application dart flutter

在 Python 中,可以将音频文件作为样本数组读取并通过以下方式接收其采样率:

array_of_samples, samplerate = librosa.load('filename.mp3')
Run Code Online (Sandbox Code Playgroud)

还:

array_of_samples, samplerate = sf.read('existing_file.wav')
Run Code Online (Sandbox Code Playgroud)

Dart 代码中是否有类似的方法?