* Unique path for the temporary 16kHz mono WAV fed to whisper. * * MUST be unique per call AND per process: callers run many `transcribe` * invocations in parallel (e.g. the product-launch-video audio pipeline spawns * one `hyperframes transcribe` per scene at once). A `Date.now()`-based name *
()
| 135 | * scene's audio and every colliding scene gets identical word timings. |
| 136 | */ |
| 137 | function tempWavPath(): string { |
| 138 | return join(tmpdir(), `hyperframes-audio-${process.pid}-${randomUUID()}.wav`); |
| 139 | } |
| 140 | |
| 141 | /** |
| 142 | * Extract audio from a video file as 16kHz mono WAV (whisper requirement). |
no outgoing calls
no test coverage detected