feat: preserve stereo channels and require reviewed speaker roles
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user