How To Fix The Voice Live API issue so that it can use the agents knowledge

Intikhab Hussain 0 Reputation points
2025-08-05T04:22:36.0866667+00:00

I have an agent in AI Foundry with knowledge sources including uploaded documents and Bing Search. I have created a chat app using ReactJS (TypeScript) and FastAPI, where I can upload documents; these documents are also used as part of the agent's knowledge. I've connected my chat app to the agent in AI Foundry so that it can utilize the agent's knowledge, and this integration works fine.

Now I want to integrate the Azure Voice Live API with this setup. When I test the Azure Voice Live API within Azure AI Foundry, it uses the agent’s knowledge as expected. However, when I try to use the Azure Voice Live API in my chat app, it does not leverage the agent’s knowledge."

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pavankumar Purilla 10,350 Reputation points Microsoft External Staff Moderator
    2025-08-05T13:28:22.41+00:00

    Hi Intikhab Hussain,

    When using the Azure Voice Live API outside of Azure AI Foundry, the voice session does not automatically connect to the agent runtime or its knowledge sources. This is why testing within AI Foundry works as expected, but your custom application does not leverage the agent’s knowledge. To fix this, you need to explicitly bind the Voice Live API session to the agent by creating a session through the Agent Runtime API and passing the agentId and, if required, a threadId. This ensures that the voice session is routed through the agent runtime, enabling it to access the same knowledge sources that are available in the Foundry environment. Without this binding, the Voice Live API will only interact with the base model and will not include the agent’s knowledge.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.