resample audio buffer from 44100 to 16000

前端 未结 5 394
不思量自难忘°
不思量自难忘° 2021-02-04 09:56

I have audio data in format of data-uri, then I converted this data-uri into a buffer now I need this buffer data in new samplerate, currently audio data is in 44.1khz and I nee

5条回答
  •  温柔的废话
    2021-02-04 10:51

    An easier way is to have a standalone call to resample, which simply takes an input audio buffer, an input sample rate, an output sample rate, and returns the output buffer. I found this link to do this: audio resampling

    This works quite well (not much noise introduced at audio frequency ranges..). Thanks to the author.

提交回复
热议问题