flaky-scooter-85113
10/31/2025, 10:49 AMtall-airline-16756
10/31/2025, 10:49 AMtall-airline-16756
10/31/2025, 10:49 AMdownload-files function in LiveKit's TypeScript agent is designed to help you download the necessary model files for Noise and Background Voice Cancellation (BVC) smoothly. Here's how you can get started:
• First, make sure to install the @livekit/noise-cancellation-node package.
• Next, add a download-files script to your package.json to easily trigger the model downloads.
• Then, run pnpm download-files (or the equivalent command) during your build process to cache the models before runtime.
If you have any questions or need a hand with the setup, just let me know—I’m here to help!
Sources: plugins/livekit/src/hf_utils.ts | pkg/agentfs/examples/node.Dockerfile | Voice AI quickstart | LiveKit docsflaky-scooter-85113
10/31/2025, 10:51 AMtall-airline-16756
10/31/2025, 10:51 AMdownload-files command: After adding the script to your package.json, please run the command (like pnpm download-files). This step is key to getting those files.
2. Look out for initialization errors: Try initializing the agent with noise cancellation turned on. If the model files aren’t there, the agent will let you know with an error message about missing files.
3. Double-check explicitly: You can use the localFileOnly: true option in your model-loading function to verify if the files are present locally. If you see a "file not found" error, it means the model didn’t download properly.
If you hit any bumps or have questions while going through these steps, please don’t hesitate to reach out—I’m here to help you!
Sources: .cursor/rules/agent-core.mdc | SIP troubleshooting guide | LiveKit Docs | Voice AI quickstart | LiveKit docsflaky-scooter-85113
10/31/2025, 10:54 AMtall-airline-16756
10/31/2025, 10:54 AMLIVEKIT_URL, LIVEKIT_API_KEY, and LIVEKIT_API_SECRET are correctly set up in your environment.
2. Check external service URLs: If you’re using plugins like Beyond Presence, make sure the API URL (for example, api.bey.dev) is accurate and accessible.
3. Test without BVC: Try starting the session without enabling BVC to see if the issue is related to the session setup or audio processing.
4. Inspect logs: Take a look at the logs for any extra error details that might point to misconfigured endpoints or missing credentials.
Please feel free to reach out if the problem continues or if you'd like a hand walking through any of these steps—I’m here to help!
Sources: examples/src/frontdesk/frontdesk_agent.ts | Agent deployment CLI reference | LiveKit Docs | SIP troubleshooting guide | LiveKit Docs | examples/voice_agents/langgraph_agent.pyflaky-scooter-85113
10/31/2025, 10:55 AMtall-airline-16756
10/31/2025, 10:56 AM