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