MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / tempWavPath

Function tempWavPath

packages/cli/src/whisper/transcribe.ts:137–139  ·  view source on GitHub ↗

* 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 *

()

Source from the content-addressed store, hash-verified

135 * scene's audio and every colliding scene gets identical word timings.
136 */
137function 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).

Callers 2

extractAudioFunction · 0.85
prepareAudioFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected