MCPcopy Create free account
hub / github.com/MagicCube/agentara / handleDataAvailable

Function handleDataAvailable

web/src/components/ai-elements/speech-input.tsx:208–212  ·  view source on GitHub ↗
(event: BlobEvent)

Source from the content-addressed store, hash-verified

206 audioChunksRef.current = [];
207
208 const handleDataAvailable = (event: BlobEvent) => {
209 if (event.data.size > 0) {
210 audioChunksRef.current.push(event.data);
211 }
212 };
213
214 const handleStop = async () => {
215 for (const track of stream.getTracks()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected