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
+1 -1
View File
@@ -24,7 +24,7 @@ $socket = stream_socket_server('tcp://127.0.0.1:0', $errno, $error); $port = (in
$process = proc_open([PHP_BINARY, '-n', '-S', '127.0.0.1:' . $port, __DIR__ . '/fixtures/followup_audio/pipeline_router.php'],
[0 => ['pipe', 'r'], 1 => ['file', $dir . '/stdout', 'a'], 2 => ['file', $dir . '/stderr', 'a']], $pipes, null,
array_merge(getenv(), ['FOLLOWUP_AUDIO_PIPELINE_MOCK_DIR' => $dir])); fclose($pipes[0]);
$pcm = str_repeat(pack('v', 0), 24000);
$pcm = str_repeat(pack('v', 1000), 24000);
$wav = 'RIFF' . pack('V', 36 + strlen($pcm)) . 'WAVEfmt ' . pack('VvvVVvv', 16, 1, 1, 16000, 32000, 2, 16) . 'data' . pack('V', strlen($pcm)) . $pcm;
$path = $dir . '/short.wav'; file_put_contents($path, $wav); chmod($path, 0600);
$slot = ['driver' => 'asr_then_llm', 'label' => 'synthetic pipeline', 'allow_loopback_tunnel' => true,