MCPcopy Create free account
hub / github.com/Roy3838/Observer / setPCMCallback

Method setPCMCallback

app/src/utils/tauriStreamCapture.ts:420–427  ·  view source on GitHub ↗

* Set PCM callback for unified transcription pipeline. * When set, decoded PCM samples (Float32Array @ 16kHz) are passed to this callback * instead of just being used for playback. * * @param callback - Function to receive PCM samples, or null to disable

(callback: PCMCallback | null)

Source from the content-addressed store, hash-verified

418 * @param callback - Function to receive PCM samples, or null to disable
419 */
420 setPCMCallback(callback: PCMCallback | null): void {
421 this.pcmCallback = callback;
422 if (callback) {
423 Logger.info("TauriCapture", "PCM callback set for unified transcription pipeline");
424 } else {
425 Logger.info("TauriCapture", "PCM callback cleared");
426 }
427 }
428
429 /**
430 * Get the latest base64 frame directly (for pre-processor).

Callers 2

startPCMCaptureMethod · 0.80

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected