* 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)
| 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). |
no test coverage detected