feat: preserve stereo channels and require reviewed speaker roles

This commit is contained in:
2026-10-08 16:15:41 +08:00
parent 13948f5982
commit a20d3565af
28 changed files with 1134 additions and 113 deletions
@@ -26,6 +26,7 @@ $makeWave = static function (int $seconds) use ($directory): string {
$handle = fopen($path, 'xb'); chmod($path, 0600);
fwrite($handle, 'RIFF' . pack('V', 36 + $dataBytes) . 'WAVEfmt ' . pack('VvvVVvv', 16, 1, 1, 16000, 32000, 2, 16)
. 'data' . pack('V', $dataBytes));
fwrite($handle, pack('v', 1)); // One nonzero LSB must still reach ASR; not a silence/energy threshold.
fseek($handle, 44 + $dataBytes - 1); fwrite($handle, "\0"); fclose($handle);
return $path;
};