Skip to content Skip to sidebar Skip to footer

Chrome Extension: Prevent Chrome.tabcapture.capture Choppy Sound By Increasing Buffer Size?

It's seems like audio capturing using chrome.tabCapture.capture can produce some choppy sounds. There is already a bug report for this. Is it possible to increase the buffer that r

Solution 1:

I had the same issue, but the choppy sound seems to disappear if you create the AudioContext with a LatencyHint argument:

new AudioContext({latencyHint: 'playback'});

Here you can read more about it: MDN AudioContext.AudioContext()

latencyHint: This value identifies type of playback, which affects tradeoffs between audio output latency and power consumption. The prefered values are "balanced", "interactive", and "playback", with the default value: "interactive". These values mean "balance audio output latency and power consumption", "provide lowest audio output latency as possible without glitching", and "prioritize sustained playback without interruption over audio output latency". You can also specify double value for the number of seconds of latency, for finer control.

Post a Comment for "Chrome Extension: Prevent Chrome.tabcapture.capture Choppy Sound By Increasing Buffer Size?"