revert(voice): restore working transmit pipeline

- Rollback frontend latency changes (keep processor.connect(destination))
- Rollback FFmpeg aggressive optimizations (keep 20ms frames)
- Transmit was working before latency optimization; restore stable state

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
MythEclipse
2026-06-09 01:43:41 +07:00
co-authored by Claude Opus 4.8
parent 7b74061788
commit d0d9e1669e
2 changed files with 8 additions and 17 deletions
@@ -50,16 +50,8 @@ export class VoiceTransmitter {
"-ar", "48000", // Output sample rate: 48kHz
"-ac", "2", // Output channels: stereo
"-application", "lowdelay", // Low delay mode for real-time
"-frame_duration", "10", // 10ms frames (smaller = less latency)
"-frame_duration", "20", // 20ms frames
"-packet_loss", "0", // No packet loss expected
"-compression_level", "0", // Fastest compression (lowest CPU latency)
"-cutoff", "20000", // Audio cutoff frequency
"-vsync", "0", // No video sync
"-fflags", "nobuffer", // No buffering
"-flags", "low_delay", // Low delay processing
"-strict", "experimental",
"-analyzeduration", "0", // No analysis duration
"-probesize", "32", // Minimal probe size
"pipe:1", // Write to stdout
], {
stdio: ["pipe", "pipe", "pipe"],