*Inbound noise cancellation (NC/BVC) fails with “n...
# agents
m
Inbound noise cancellation (NC/BVC) fails with “not authenticated” on Python plugin Hi team, we’re trying to enable inbound noise cancellation inside our agent (Python). Both NC() and BVC() fail to initialize with “not authenticated”. Room/Worker connection is fine; only the noise filter gets disabled by the native plugin. Environment - Project URL: wss://huijin-test-gdwkd89w.livekit.cloud - Plan: Free - OS/Arch: macOS 14 (arm64) - Python: 3.13 - Packages: - livekit-agents 1.2.4 - livekit-rtc 1.0.12 - livekit-plugins-noise-cancellation 0.2.5 - Network: - NO_PROXY/no_proxy set (livekit.cloud and domains bypassed) - HTTP(S)_PROXY/ALL_PROXY unset - System time synced Minimal code (per docs)
Copy code
python
from livekit.plugins import noise_cancellation

await session.start(
    agent=agent,
    room=ctx.room,
    room_input_options=RoomInputOptions(
        noise_cancellation=noise_cancellation.BVC(),  # also tried NC()
        audio_enabled=True,
    ),
)
Logs (stable repro)
Copy code
text
... registered worker {"url": "wss://huijin-test-gdwkd89w.livekit.cloud", ...}
... input stream attached ...
not authenticated
livekit_ffi::server::audio_stream - failed to initialize the audio filter. it will not be enabled for this session.
What we tried - NC() and BVC() both fail with the same two lines. - Disabled all proxies, set NO_PROXY, synced system time → same result. - RUST_LOG=livekit_ffi=trace (and ureq=trace) → still only the two lines above (no visible HTTP). - Verified plugin files exist, readable, arm64, plugin v0.2.5 OK. - Also attempted constructing NoiseCancellationOptions with explicit options: - modelPath from livekit.plugins.noise_cancellation.plugin.model_path("bvc") - and optional url/token keys (Bearer ...) if provided via env - Result: unchanged (“not authenticated”). Clues from plugin binary (strings) - Keys: url, token, enhancedNoiseCancellation - “Bearer Authorization” - “enhancedNoiseCancellation is disabled” - “unknown model: not authenticated” - Uses ureq (proxy/HTTP error strings embedded) Questions 1) Is inbound Krisp (NC/BVC) gated by a project-side feature on Cloud? If yes, how to enable it for this project (Free plan)? 2) Does the Python noise-cancellation plugin expect a feature token? If so, what’s the official way to supply it (env var names or NoiseCancellationOptions keys)? Are {"url": "...", "token": "Bearer ..."} supported? 3) Is “not authenticated” the expected indicator for disabled/unauthorized inbound NC/BVC? Any way to obtain a more specific error for troubleshooting? 4) Are our versions (agents 1.2.4 / rtc 1.0.12 / plugin 0.2.5) known-good for inbound BVC on macOS arm64? Goal We need inbound noise cancellation for voice AI (BVC preferred; NC acceptable). Please advise whether to enable a project feature or provide a token and how to inject it in Python. Thanks!
r
As long as your are using LiveKit cloud it should work. NC/BVC is not available for self hosted servers. If you remove NC/BVC is it working fine? Be sure to verify your LIVEKIT_URL/API_KEY are correct and that your system clock is correct.
m
@refined-appointment-81829 Thanks! We’re on LiveKit Cloud (not self‑hosted) and verified env/time. • Project URL: wss://huijin-test-gdwkd89w.livekit.cloud • macOS arm64, Python 3.13 • Versions: livekit-agents 1.2.4, livekit-rtc 1.0.12, livekit-plugins-noise-cancellation 0.2.5 • Env in process: LIVEKIT_URL OK, LIVEKIT_API_KEY set, LIVEKIT_API_SECRET set • System clock: synced (offset ≈ +0.01s) (vocab-agent-py3.13) ➜ voice-agent git:(master) ✗ sudo sntp -sS time.apple.com Password: sntp: Exchange failed: Timeout sntp_exchange { result: 6 (Timeout) header: 00 (li:0 vn:0 mode:0) stratum: 00 (0) poll: 00 (1) precision: 00 (1.000000e+00) delay: 0000.0000 (0.000000000) dispersion: 0000.0000 (0.000000000) ref: 00000000 (" ") t_ref: 00000000.00000000 (0.000000000) t1: EC4D0B9F.02481F53 (3964472223.008912999) t2: 00000000.00000000 (0.000000000) t3: 00000000.00000000 (0.000000000) t4: 00000000.00000000 (0.000000000) offset: FFFFFFFF89D97A30.7EDBF05680000000 (-1982236111.504456520) delay: FFFFFFFF13B2F460.FDB7E0AD00000000 (-3964472223.008913040) mean: 0000000000000000.0000000000000000 (0.000000000) error: 0000000000000000.0000000000000000 (0.000000000) addr: 2403300a0a4000:1e2 } sntp: Exchange failed: Timeout sntp_exchange { result: 6 (Timeout) header: 00 (li:0 vn:0 mode:0) stratum: 00 (0) poll: 00 (1) precision: 00 (1.000000e+00) delay: 0000.0000 (0.000000000) dispersion: 0000.0000 (0.000000000) ref: 00000000 (" ") t_ref: 00000000.00000000 (0.000000000) t1: EC4D0BA0.04FCA42A (3964472224.019479999) t2: 00000000.00000000 (0.000000000) t3: 00000000.00000000 (0.000000000) t4: 00000000.00000000 (0.000000000) offset: FFFFFFFF89D97A2F.FD81ADEB00000000 (-1982236112.009740114) delay: FFFFFFFF13B2F45F.FB035BD600000000 (-3964472224.019480228) mean: 0000000000000000.0000000000000000 (0.000000000) error: 0000000000000000.0000000000000000 (0.000000000) addr: 2403300a0a4000:1e2 } sntp: Exchange failed: Timeout sntp_exchange { result: 6 (Timeout) header: 00 (li:0 vn:0 mode:0) stratum: 00 (0) poll: 00 (1) precision: 00 (1.000000e+00) delay: 0000.0000 (0.000000000) dispersion: 0000.0000 (0.000000000) ref: 00000000 (" ") t_ref: 00000000.00000000 (0.000000000) t1: EC4D0BA1.06AB7995 (3964472225.026053999) t2: 00000000.00000000 (0.000000000) t3: 00000000.00000000 (0.000000000) t4: 00000000.00000000 (0.000000000) offset: FFFFFFFF89D97A2F.7CAA433580000000 (-1982236112.513026953) delay: FFFFFFFF13B2F45E.F954866B00000000 (-3964472225.026053905) mean: 0000000000000000.0000000000000000 (0.000000000) error: 0000000000000000.0000000000000000 (0.000000000) addr: 2403300a0a4000:1e2 } +0.009835 +/- 0.045537 time.apple.com 2403300a0a4000:1f2 (vocab-agent-py3.13) ➜ voice-agent git:(master) ✗ date Mon Aug 18 101710 CST 2025 (vocab-agent-py3.13) ➜ voice-agent git:(master) ✗ poetry run python - <<'PY' import os print("LIVEKIT_URL =", os.getenv("LIVEKIT_URL")) print("LIVEKIT_API_KEY set =", bool(os.getenv("LIVEKIT_API_KEY"))) print("LIVEKIT_API_SECRET set =", bool(os.getenv("LIVEKIT_API_SECRET"))) PY LIVEKIT_URL = wss://huijin-test-gdwkd89w.livekit.cloud LIVEKIT_API_KEY set = True LIVEKIT_API_SECRET set = True
r
If you disable NC/BVC does it work fine?
m
@refined-appointment-81829 Yes
@refined-appointment-81829 Yes — conversation works either way. The only difference is the noise filter itself: • With NC/BVC enabled: session runs, but the plugin logs “not authenticated” and the audio filter is disabled. • With NC/BVC disabled: no error is logged. So functionality is fine; the issue is strictly that inbound noise_cancellation can’t be enabled without hitting the “not authenticated” message.
• @refined-appointment-81829 Has there been any progress on this?
r
Do you have any firewall that would be blocking HTTPs?
m
@refined-appointment-81829 No. sudo /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate Password: Firewall is disabled. (State = 0)
@refined-appointment-81829 If it were really a network issue, the call itself wouldn’t work properly. In fact, the call is running fine — the only problem happens specifically when trying to initialize the audio filter, which returns a “not authenticated” error.
r
Ok, I've asked for more help on this one. To be honest I am stumped and have never seen this before. I spoke to a couple of folks on the team about it and they were equally as stumped. I am looking for the Subject matter expert on this and will report back when I have something more helpful.
m
@refined-appointment-81829 Thanks for looking into this! Please let me know if there’s anything I can do to assist or provide on my side — I’ll be more than happy to help.
r
The problem might be firewall/proxy of some kind. could you let me know where the server your connecting from? Can you do a
curl https://<project-url>
from the agent server to see what it returns. That will help use to further isolate this issue. I am still quite stumped on this one but I think the answers here will help us get much closer to helping you solve the issue you are seeing.