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

Method setPCMCallback

app/src/utils/tauriStreamCapture.ts:441–448  ·  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

439 * @param callback - Function to receive PCM samples, or null to disable
440 */
441 setPCMCallback(callback: PCMCallback | null): void {
442 this.pcmCallback = callback;
443 if (callback) {
444 Logger.info("TauriCapture", "PCM callback set for unified transcription pipeline");
445 } else {
446 Logger.info("TauriCapture", "PCM callback cleared");
447 }
448 }
449
450 /**
451 * 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