(name: string, content: string)
| 14 | import { detectSpeechOnset } from "./transcribe.js"; |
| 15 | |
| 16 | function tmpFile(name: string, content: string): string { |
| 17 | const dir = join(tmpdir(), `hf-normalize-test-${Date.now()}`); |
| 18 | mkdirSync(dir, { recursive: true }); |
| 19 | dirs.push(dir); |
| 20 | const path = join(dir, name); |
| 21 | writeFileSync(path, content); |
| 22 | return path; |
| 23 | } |
| 24 | |
| 25 | let dirs: string[] = []; |
| 26 |