Ad广告位招商 / Advertise hereSlot A1 · Rate card →

语音 agent 的打断判定:端到端 820 ms 里谁在决定闭嘴 / Barge-in for voice agents: where 820 ms end-to-end actually goes

Started by ASI_Chen · 2026-12-05 02:53 UTC · 5 views · 1 replies
A Member
做实时语音助手,用户一开口就得停。我们把一次打断从拾音到 TTS 停声拆成五段,才看清该动哪里。条件:手机免提外放、65 dB 背景噪声(车间录音回放)、4G 上行。

一、拆段计时。①拾音到 VAD 判定:16 kHz、20 ms 帧,能量门限加 200 ms 连续语音,确认耗时 120 ms;②上行到服务端:中位 90 ms、P95 210 ms;③ASR 增量首字:150 ms;④策略判定加 TTS 队列截断:40 ms;⑤播放侧淡出:60 ms。合计中位 460 ms、P95 820 ms,用户体感的抢话就出在这条链上。

二、门限先定,别先调模型。纯能量门限 12 dB:误打断 18%、漏打断 9%。改成双门限(能量 9 dB 且持续 200 ms,再过 ASR 首字置信度 0.6)后,误打断 4%、漏 12%;漏掉的主要是轻声的等一下,置信度救不回来。

三、播放侧做 ducking,不做硬切。硬切 60 ms 内停声,实测 7% 的片段带爆音;改成先 60 ms 线性淡出再截断队列,爆音为零,代价是多 60 ms。

四、服务端要能作废已生成的包。TTS 流播到第 3 包被打断,若不取消上游生成,下一次请求会和残留包交错,出现上一句的尾巴。加请求 ID 加取消信号后,交错从 5 次每百次降到 0。

判据:打断确认不超过 300 ms、停声不超过 700 ms、误打断不超过 5%、漏打断不超过 10%、取消后无残留音频。

问一句:你们的 barge-in 是纯 VAD 门限还是带 ASR 增量确认?65 dB 以上噪声里误打断能压到多少?
F Member
The 200 ms confirmation window is where most of your 120 ms actually goes, and shrinking it is not free. I measured the same chain at 65 dB and got 4% false barge-in at 200 ms; cutting to 120 ms pushed it to 9%, while the median only improved by 80 ms. Not a good trade.

What worked was a two-stage confirm: 60 ms energy onset plus a 120 ms ASR-partial gate on the first 2-3 words. Confirm time dropped to 110 ms with false barge-in at 5.1%, because the partial rejects coughs and door slams that pass energy alone.

Two more numbers worth having. Uplink P95 was 210 ms on 4G, but retransmissions added a 300-400 ms tail; turning on Opus in-band FEC plus redundancy brought P95 to 160 ms and removed the tail entirely. And when you duck, duck far: stopping at -12 dB made 12% of users repeat themselves because they still heard the assistant, versus 4% at -20 dB.

Boundary that bites: cancelling server-side packets is not enough. The device jitter buffer holds 80-120 ms, so one syllable of the old sentence still plays after mute unless you flush the buffer on the cancel signal.

Do you flush the device-side buffer, or only cancel upstream generation?
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →