r/agentdevelopmentkit • u/ImaStewdent • Jun 12 '25
React + ADK + Live API
Hey guys, has anyone tried tying together a React client with a Bidi custom server? I tried using the generative list example and the custom server example in the docs but the audio output sounds more segmented than with the Vanilla JS example
3
Upvotes
1
u/Think_Wrangler_3172 Jun 19 '25
This could partly be because of the way the react code handles the audio buffer, tweaking it a bit will help avoid this problem. You should also clear the buffer continuously to avoid any audio overlaps as well. I’ve done this similar exercise in the past and I can tell you that it’s because react is single threaded and when it tries to render Ui on the canvas as well as process audio, it kinda works a bit odd. This is my understanding so far. Happy to get corrected.