WHITECOLOR
WHITECOLOR

Reputation: 26182

Web Audio API playbackRate (sound) voice distortion

If play audio file (vioce) with Web Audio API and use playback (0.75 or 1.5) voice is hugelly distorted comparing for example to HTML5 Audio element playbackRate effect. Is it possible to make changed speed voice less distorted in Web Audio?

Upvotes: 1

Views: 373

Answers (1)

padenot
padenot

Reputation: 1555

It's two different effect. <audio> and <video> use time-stretching. AudioBufferSourceNode.playbackRate uses simple resampling.

It is somewhat possible to implement time-stretching for the Web Audio API, but it's more involved (look into OLA, SOLA, PSOLA).

Upvotes: 1

Related Questions