{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Microsoft Foundry Docs","colors":{"primary":"#0078D4","light":"#50A0E0","dark":"#003C6B"},"favicon":"https://mintlify.s3.us-west-1.amazonaws.com/hobbyist-e43fa225/images/favicon.png","contextual":{"options":["copy","view",{"title":"Open in GitHub Copilot","description":"Ask questions about this page","icon":"github","href":{"base":"https://github.com/copilot","query":[{"key":"prompt","value":"Read from https://hobbyist-e43fa225.mintlify.app$path so I can ask questions about it."}]}},"chatgpt","claude","perplexity","grok","mcp","add-mcp","vscode",{"title":"Connect to VS Code Insiders","description":"Install MCP server on VS Code Insiders","icon":"https://code.visualstudio.com/assets/branding/code-stable.png","href":"vscode-insiders://mcp/install?%7B%22name%22%3A%22Microsoft%20Foundry%20Docs%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A//hobbyist-e43fa225.mintlify.app/mcp%22%7D"},"cursor"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"hobbyist-e43fa225","hasAudioNarration":false,"actualSubdomain":"hobbyist-e43fa225","customDomains":[],"gitSource":{"type":"github","owner":"nicholasdbrady","repo":"foundry-docs","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":false,"issues":false,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"REMOVE_BRANDING":{"status":"DISABLED"},"CONTEXTUAL_FEEDBACK":{"status":"DISABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6abd7195fe6008b1f9fa4cf0","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"Documentation","count":389},{"language":"default","tag":"Models","count":132},{"language":"default","tag":"Agents","count":105},{"language":"default","tag":"Hosted agents","count":67},{"language":"default","tag":"Toolboxes","count":50},{"language":"default","tag":"Add tools and skills","count":45},{"language":"default","tag":"Evaluation","count":37},{"language":"default","tag":"Developer tools and integrations","count":32},{"language":"default","tag":"Explore Foundry Models","count":26},{"language":"default","tag":"Model capabilities","count":23}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"#navbar{background:rgb(255, 255, 255);backdrop-filter:blur(12px)}:root.dark #navbar,.dark #navbar{background:rgb(24, 24, 27)}.model-desc{line-height:1.4!important;display:block!important}"}]}
{"page":{"pagePath":"toolboxes/voice-live-agents-quickstart","slug":"/toolboxes/voice-live-agents-quickstart","pageMetadata":{"title":"Quickstart: Voice Agent with Foundry Agent Service (new)","description":"Learn how to create a real-time voice agent with Foundry Agent Service and Voice Live.","sidebarTitle":"Quickstart: Voice Agent with Foundry Agent Service (new)","href":"/toolboxes/voice-live-agents-quickstart"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Learn how to create a real-time voice agent with Foundry Agent Service and Voice Live.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const ZonePivot=({group,options=[],defaultValue,label=`Choose an experience`})=>{const values=options.map(option=>option.id);const optionKey=options.map(option=>`${option.id}:${option.title}`).join(`|`);const[activePivot,setActivePivot]=useState(defaultValue||values[0]);const slugify=value=>value.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-|-$/g,``);const resolvePivot=()=>{if(typeof window===`undefined`)return defaultValue||values[0];const params=new URLSearchParams(window.location.search);const requested=params.get(`pivots`);if(requested){const requestedIds=requested.split(`,`).map(value=>value.trim()).filter(Boolean);const match=requestedIds.find(id=>values.includes(id));if(match)return match}const hash=window.location.hash.replace(/^#/,``);if(hash){const match=options.find(option=>option.id===hash||slugify(option.title)===hash);if(match)return match.id}try{const stored=window.localStorage.getItem(`foundry-zone-pivot:${group}`);if(values.includes(stored))return stored}catch{return defaultValue||values[0]}return defaultValue||values[0]};const publishPivotChange=value=>{if(typeof window===`undefined`)return;window.dispatchEvent(new CustomEvent(`foundry-zone-pivot-change`,{detail:{group,value}}))};const syncTableOfContents=()=>{if(typeof window===`undefined`)return;window.requestAnimationFrame(()=>{const toc=document.getElementById(`table-of-contents-content`);if(!toc)return;const links=Array.from(toc.querySelectorAll(`a[href^=\"#\"]`));for(const link of links){const item=link.closest(`li`);const rawId=link.getAttribute(`href`)?.slice(1);if(!item||!rawId)continue;let id=rawId;try{id=decodeURIComponent(rawId)}catch{}item.style.display=document.getElementById(id)?``:`none`}})};useEffect(()=>{const resolvedPivot=resolvePivot();setActivePivot(resolvedPivot);publishPivotChange(resolvedPivot);window.setTimeout(syncTableOfContents,0)},[group,defaultValue,values.join(`|`),optionKey]);const selectPivot=value=>{setActivePivot(value);if(typeof window!==`undefined`){try{window.localStorage.setItem(`foundry-zone-pivot:${group}`,value)}catch{}const url=new URL(window.location.href);const current=url.searchParams.get(`pivots`);const preserved=current?current.split(`,`).map(id=>id.trim()).filter(id=>id\u0026\u0026!values.includes(id)):[];url.searchParams.set(`pivots`,[...preserved,value].join(`,`));window.history.replaceState(null,``,`${url.pathname}${url.search}${url.hash}`)}publishPivotChange(value);window.setTimeout(syncTableOfContents,0)};if(options.length\u003c2)return null;return _jsxs(`div`,{className:`not-prose mint-my-6 mint-border-b mint-border-slate-200 mint-pb-3 dark:mint-border-slate-800`,children:[_jsx(`div`,{className:`mint-mb-2 mint-text-xs mint-font-semibold mint-uppercase mint-tracking-wide mint-text-slate-500 dark:mint-text-slate-400`,children:label}),_jsx(`div`,{className:`mint-flex mint-flex-wrap mint-gap-2`,role:`tablist`,\"aria-label\":label,children:options.map(option=>{const selected=option.id===activePivot;return _jsx(`button`,{type:`button`,role:`tab`,\"aria-selected\":selected,onClick:()=>selectPivot(option.id),className:`mint-rounded-md mint-border mint-px-3 mint-py-1.5 mint-text-sm mint-font-medium mint-transition ${selected?`mint-border-slate-900 mint-bg-slate-900 mint-text-white mint-shadow-sm dark:mint-border-slate-100 dark:mint-bg-slate-100 dark:mint-text-slate-950`:`mint-border-slate-200 mint-bg-white mint-text-slate-700 hover:mint-border-slate-400 hover:mint-text-slate-950 dark:mint-border-slate-700 dark:mint-bg-slate-950 dark:mint-text-slate-200 dark:hover:mint-border-slate-500`}`,children:option.title},option.id)})})]})};const ZoneContent=({group,value,options=[],values=[],defaultValue,children})=>{const optionKey=options.map(option=>`${option.id}:${option.title}`).join(`|`);const[activePivot,setActivePivot]=useState(defaultValue||values[0]);const slugify=value=>value.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-|-$/g,``);const resolvePivot=()=>{if(typeof window===`undefined`)return defaultValue||values[0];const params=new URLSearchParams(window.location.search);const requested=params.get(`pivots`);if(requested){const requestedIds=requested.split(`,`).map(value=>value.trim()).filter(Boolean);const match=requestedIds.find(id=>values.includes(id));if(match)return match}const hash=window.location.hash.replace(/^#/,``);if(hash){const match=options.find(option=>option.id===hash||slugify(option.title)===hash);if(match)return match.id}try{const stored=window.localStorage.getItem(`foundry-zone-pivot:${group}`);if(values.includes(stored))return stored}catch{return defaultValue||values[0]}return defaultValue||values[0]};useEffect(()=>{setActivePivot(resolvePivot())},[group,defaultValue,values.join(`|`),optionKey]);useEffect(()=>{const onPivotChange=event=>{if(event.detail?.group===group\u0026\u0026values.includes(event.detail.value)){setActivePivot(event.detail.value)}};window.addEventListener(`foundry-zone-pivot-change`,onPivotChange);return()=>window.removeEventListener(`foundry-zone-pivot-change`,onPivotChange)},[group,values.join(`|`)]);if(activePivot!==value)return null;return _jsx(_Fragment,{children})};function _createMdxContent(props){const _components={a:`a`,blockquote:`blockquote`,code:`code`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,CodeBlock,Heading,Info,Note,Table,Tip,_MdxComponentBoundary}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This quickstart connects Voice Live to a Foundry text agent.`}),`\n`,_jsxs(_components.p,{children:[`For new voice experiences, consider starting with `,_jsx(_components.a,{href:`/get-started/prompt-voice-agent`,children:`Microsoft Foundry voice agents (preview)`}),`. They support speech-to-speech and text models, with built-in telephony and voice-pipeline tracing. To compare the approaches or plan a migration, see `,_jsx(_components.a,{href:`/agents/migrate-from-voice-live`,children:`Compare and migrate to Microsoft Foundry voice agents`}),`.`]}),`\n`,_jsx(_MdxComponentBoundary,{name:`ZonePivot`,children:_jsx(ZonePivot,{group:`ai-foundry-portal__programming-language-csharp__programming-language-java__programming-language-javascript__programming-language-python`,options:[{\"id\":`ai-foundry-portal`,\"title\":`Foundry portal`},{\"id\":`programming-language-python`,\"title\":`Python`},{\"id\":`programming-language-csharp`,\"title\":`C#`},{\"id\":`programming-language-javascript`,\"title\":`JavaScript`},{\"id\":`programming-language-java`,\"title\":`Java`}],defaultValue:`ai-foundry-portal`})}),`\n`,_jsx(_MdxComponentBoundary,{name:`ZoneContent`,children:_jsxs(ZoneContent,{group:`ai-foundry-portal__programming-language-csharp__programming-language-java__programming-language-javascript__programming-language-python`,value:`ai-foundry-portal`,options:[{\"id\":`ai-foundry-portal`,\"title\":`Foundry portal`},{\"id\":`programming-language-python`,\"title\":`Python`},{\"id\":`programming-language-csharp`,\"title\":`C#`},{\"id\":`programming-language-javascript`,\"title\":`JavaScript`},{\"id\":`programming-language-java`,\"title\":`Java`}],values:[`ai-foundry-portal`,`programming-language-python`,`programming-language-csharp`,`programming-language-javascript`,`programming-language-java`],defaultValue:`ai-foundry-portal`,children:[_jsxs(_components.p,{children:[`Learn how to use Voice Live with `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-foundry/agents/overview`,children:`Microsoft Foundry Agent Service`}),` and `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-services/speech-service/overview`,children:`Azure Speech in Foundry Tools`}),` in the Microsoft Foundry portal.`]}),_jsx(_components.p,{children:`You can create and run an application to use Voice Live with agents for real-time voice agents.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Using agents allows leveraging a built-in prompt and configuration managed within the agent itself, rather than specifying instructions in the session code.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Agents encapsulate more complex logic and behaviors, making it easier to manage and update conversational flows without changing the client code.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`The agent approach streamlines integration. The agent ID is used to connect and all necessary settings are handled internally, reducing the need for manual configuration in the code.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`This separation also supports better maintainability and scalability for scenarios where multiple conversational experiences or business logic variations are needed.`}),`\n`]}),`\n`]}),_jsxs(_components.p,{children:[`To use the Voice Live API without Foundry agents, see the `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-services/speech-service/voice-live-quickstart`,children:`Voice Live API quickstart`}),`.`]}),_jsx(Tip,{children:_jsxs(_components.p,{children:[`To use Voice Live, you don’t need to deploy an `,_jsx(_components.strong,{children:`audio`}),` model with your Microsoft Foundry resource. Voice Live is fully managed, and the model is automatically deployed for you. For more information about models availability, see the `,_jsx(_components.a,{href:`/voice-live`,children:`Voice Live overview documentation`}),`.`]})}),_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),_jsx(Note,{children:_jsxs(_components.p,{children:[`This document refers to the `,_jsx(_components.a,{href:`https://learn.microsoft.com/en-us/azure/ai-foundry/what-is-foundry#microsoft-foundry-portals`,children:`Microsoft Foundry (new)`}),` portal.`]})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`An Azure subscription. `,_jsx(_components.a,{href:`https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=msft_learn`,children:`Create one for free`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`A `,_jsx(_components.a,{href:`/multi-service-resource`,children:`Microsoft Foundry resource`}),` created in one of the supported regions. For more information about region availability, see the `,_jsx(_components.a,{href:`/voice-live`,children:`Voice Live overview documentation`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`A Foundry agent created in `,_jsx(_components.a,{href:`https://ai.azure.com/?cid=learnDocs`,children:`Microsoft Foundry`}),`. For more information about creating an agent, see the `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-foundry/agents/quickstart`,children:`Create an agent quickstart`}),`.`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`try-out-voice-live-in-the-playground`,children:`Try out Voice Live in the playground`}),_jsx(_components.p,{children:`To try out the Voice Live demo, follow these steps:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Go to the `,_jsx(_components.a,{href:`https://aka.ms/foundry-voice-live`,children:`Voice Live feature page`}),` and select `,_jsx(_components.strong,{children:`Open in playground`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Select the agent you created previously to go to the `,_jsx(_components.strong,{children:`Agent playground`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Switch the `,_jsx(_components.strong,{children:`Voice mode`}),` toggle `,_jsx(_components.strong,{children:`On`}),`. Your agent now connects to Voice Live.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Expand the right pane, which contains the Voice Live settings. Optionally choose a voice, adjust the VAD settings, set the voice temperature and speed, and change other settings to configure voice behavior.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Select `,_jsx(_components.strong,{children:`Start session`}),` to start the voice conversation, and select `,_jsx(_components.strong,{children:`End`}),` to end the chat session.`]}),`\n`]}),`\n`]})]})}),`\n`,_jsx(_MdxComponentBoundary,{name:`ZoneContent`,children:_jsxs(ZoneContent,{group:`ai-foundry-portal__programming-language-csharp__programming-language-java__programming-language-javascript__programming-language-python`,value:`programming-language-python`,options:[{\"id\":`ai-foundry-portal`,\"title\":`Foundry portal`},{\"id\":`programming-language-python`,\"title\":`Python`},{\"id\":`programming-language-csharp`,\"title\":`C#`},{\"id\":`programming-language-javascript`,\"title\":`JavaScript`},{\"id\":`programming-language-java`,\"title\":`Java`}],values:[`ai-foundry-portal`,`programming-language-python`,`programming-language-csharp`,`programming-language-javascript`,`programming-language-java`],defaultValue:`ai-foundry-portal`,children:[_jsxs(_components.p,{children:[`Learn how to use Voice Live with `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-foundry/agents/overview`,children:`Microsoft Foundry Agent Service`}),` using the VoiceLive SDK for Python.`]}),_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://learn.microsoft.com/python/api/overview/azure/ai-voicelive-readme`,children:`Reference documentation`}),` | `,_jsx(_components.a,{href:`https://pypi.org/project/azure-ai-voicelive/`,children:`Package (PyPi)`}),` | `,_jsx(_components.a,{href:`https://aka.ms/voicelive/github-python`,children:`Additional samples on GitHub`})]}),_jsx(_components.p,{children:`You can create and run an application to use Voice Live with agents for real-time voice agents.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Using agents allows leveraging a built-in prompt and configuration managed within the agent itself, rather than specifying instructions in the session code.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Agents encapsulate more complex logic and behaviors, making it easier to manage and update conversational flows without changing the client code.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`The agent approach streamlines integration. The agent ID is used to connect and all necessary settings are handled internally, reducing the need for manual configuration in the code.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`This separation also supports better maintainability and scalability for scenarios where multiple conversational experiences or business logic variations are needed.`}),`\n`]}),`\n`]}),_jsxs(_components.p,{children:[`To use the Voice Live API without Foundry agents, see the `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-services/speech-service/voice-live-quickstart`,children:`Voice Live API quickstart`}),`.`]}),_jsx(Tip,{children:_jsxs(_components.p,{children:[`To use Voice Live, you don’t need to deploy an `,_jsx(_components.strong,{children:`audio`}),` model with your Microsoft Foundry resource. Voice Live is fully managed, and the model is automatically deployed for you. For more information about models availability, see the `,_jsx(_components.a,{href:`/voice-live`,children:`Voice Live overview documentation`}),`.`]})}),_jsx(_components.p,{children:`Follow the quickstart below or get a fully working web app with browser-based voice UI:`}),_jsx(Card,{title:`Voice Live universal assistant sample`,icon:`arrow-right`,href:`https://github.com/microsoft-foundry/voicelive-samples/tree/main/voice-live-universal-assistant`}),_jsx(Heading,{level:`2`,id:`prerequisites-2`,children:`Prerequisites`}),_jsx(Note,{children:_jsxs(_components.p,{children:[`This document refers to the `,_jsx(_components.a,{href:`https://learn.microsoft.com/en-us/azure/ai-foundry/what-is-foundry#microsoft-foundry-portals`,children:`Microsoft Foundry (new)`}),` portal and the latest Foundry Agent Service version.`]})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`An Azure subscription. `,_jsx(_components.a,{href:`https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=msft_learn`,children:`Create one for free`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`a`,{href:`https://www.python.org/`,target:`_blank`,children:`Python 3.10 or later version`}),`. If you don’t have a suitable version of Python installed, you can follow the instructions in the `,_jsx(_components.a,{href:`https://code.visualstudio.com/docs/python/python-tutorial#_install-a-python-interpreter`,children:`VS Code Python Tutorial`}),` for the easiest way of installing Python on your operating system.`]}),`\n`,_jsxs(_components.li,{children:[`The required language runtimes, global tools, and Visual Studio Code extensions as described in `,_jsx(_components.a,{href:`https://learn.microsoft.com/en-us/azure/ai-foundry/how-to/develop/install-cli-sdk`,children:`Prepare your development environment`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`A `,_jsx(_components.a,{href:`/multi-service-resource`,children:`Microsoft Foundry resource`}),` created in one of the supported regions. For more information about region availability, see the `,_jsx(_components.a,{href:`/voice-live`,children:`Voice Live overview documentation`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`A model deployed in Microsoft Foundry. If you don’t have a model, first complete `,_jsx(_components.a,{href:`https://learn.microsoft.com/en-us/azure/foundry/tutorials/quickstart-create-foundry-resources`,children:`Quickstart: Set up Microsoft Foundry resources`}),`.`]}),`\n`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Assign the `,_jsx(_components.code,{children:`Foundry User`}),` role to your user account. You can assign roles in the Azure portal under `,_jsx(_components.strong,{children:`Access control (IAM)`}),` > `,_jsx(_components.strong,{children:`Add role assignment`}),`.`]}),`\n`]}),_jsx(Info,{}),_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[`The Foundry RBAC roles were recently renamed. `,_jsx(_components.strong,{children:`Foundry User`}),`, `,_jsx(_components.strong,{children:`Foundry Owner`}),`, `,_jsx(_components.strong,{children:`Foundry Account Owner`}),`, and `,_jsx(_components.strong,{children:`Foundry Project Manager`}),` were previously named Azure AI User, Azure AI Owner, Azure AI Account Owner, and Azure AI Project Manager. You might still see the previous names in some places while the rename rolls out. The role IDs and core permissions are unchanged by the rename.`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`prepare-the-environment`,children:`Prepare the environment`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create a new folder `,_jsx(_components.code,{children:`voice-live-quickstart`}),` and go to the quickstart folder with the following command:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mkdir`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` voice-live-quickstart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026 `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` voice-live-quickstart`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Create a virtual environment. If you already have Python 3.10 or higher installed, you can create a virtual environment using the following commands:`}),`\n`,_jsx(Heading,{level:`1`,id:`windows`,children:_jsx(_components.a,{href:`#tab/windows`,children:`Windows`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`py`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -3`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -m`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` venv`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .venv`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`.venv\\\\scripts\\\\activate`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`1`,id:`linux`,children:_jsx(_components.a,{href:`#tab/linux`,children:`Linux`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`python3`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -m`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` venv`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .venv`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`source`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .venv/bin/activate`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`1`,id:`macos`,children:_jsx(_components.a,{href:`#tab/macos`,children:`macOS`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`python3`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -m`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` venv`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .venv`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`source`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .venv/bin/activate`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(_components.p,{children:[`Activating the Python environment means that when you run `,_jsx(_components.code,{children:`python`}),` or `,_jsx(_components.code,{children:`pip`}),` from the command line, you then use the Python interpreter contained in the `,_jsx(_components.code,{children:`.venv`}),` folder of your application. You can use the `,_jsx(_components.code,{children:`deactivate`}),` command to exit the python virtual environment, and can later reactivate it when needed.`]}),`\n`]}),`\n`]}),_jsx(Tip,{children:_jsx(_components.p,{children:`We recommend that you create and activate a new Python environment to use to install the packages you need for this tutorial. Don’t install packages into your global Python installation. You should always use a virtual or conda environment when installing Python packages, otherwise you can break your global installation of Python.`})}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create a file named `,_jsx(_components.strong,{children:`requirements.txt`}),`. Add the following packages to the file:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`// Source: requirements.txt (not available)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Install the packages:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -r`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` requirements.txt`})]}),`\n`]})})}),`\n`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`retrieve-resource-information`,children:`Retrieve resource information`}),_jsx(Note,{children:_jsx(_components.p,{children:`The agent integration requires Entra ID authentication. Key-based authentication isn’t supported in Agent mode.`})}),_jsxs(_components.p,{children:[`Create a new file named `,_jsx(_components.code,{children:`.env`}),` in the folder where you want to run the code.`]}),_jsxs(_components.p,{children:[`In the `,_jsx(_components.code,{children:`.env`}),` file, add the following environment variables for authentication:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# Settings for Foundry Agent`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`PROJECT_ENDPOINT=\u003cendpoint copied from welcome screen>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`AGENT_NAME=\"MyVoiceAgent\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`MODEL_DEPLOYMENT_NAME=\"gpt-4.1-mini\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# Settings for Voice Live`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`AGENT_NAME=\u003cname-used-to-create-agent> # See above`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`AGENT_VERSION=\u003cversion-of-the-agent>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`CONVERSATION_ID=\u003cspecific conversation id to reconnect to>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`PROJECT_NAME=\u003cyour_project_name>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`VOICELIVE_ENDPOINT=\u003cyour_endpoint>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`VOICELIVE_API_VERSION=2026-04-10`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:`Replace the default values with your actual project name, agent name, and endpoint values.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable name`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PROJECT_ENDPOINT`})}),_jsx(_components.td,{children:`The Foundry project endpoint copied from the project welcome screen.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AGENT_NAME`})}),_jsx(_components.td,{children:`The name of the agent to use.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AGENT_VERSION`})}),_jsx(_components.td,{children:`Optional: The version of the agent to use.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CONVERSATION_ID`})}),_jsx(_components.td,{children:`Optional: A specific conversation ID to reconnect to.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PROJECT_NAME`})}),_jsx(_components.td,{children:`The name of your Microsoft Foundry project. Project name is the last element of the project endpoint value.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`VOICELIVE_ENDPOINT`})}),_jsxs(_components.td,{children:[`This value can be found in the `,_jsx(_components.strong,{children:`Keys and Endpoint`}),` section when examining your resource from the Azure portal.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FOUNDRY_RESOURCE_OVERRIDE`})}),_jsxs(_components.td,{children:[`Optional: The Foundry resource name hosting the agent project (for example, `,_jsx(_components.code,{children:`my-resource-name`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AGENT_AUTHENTICATION_IDENTITY_CLIENT_ID`})}),_jsx(_components.td,{children:`Optional: The managed identity client ID of the Voice Live resource.`})]})]})]}),_jsxs(_components.p,{children:[`Learn more about `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-services/authentication`,children:`keyless authentication`}),` and `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-services/cognitive-services-environment-variables`,children:`setting environment variables`}),`.`]}),_jsx(Heading,{level:`2`,id:`create-an-agent-with-voice-live-settings`,children:`Create an agent with Voice Live settings`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create a file `,_jsx(_components.strong,{children:`create_agent_with_voicelive.py`}),` with the following code:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`//`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Source: create_agent_v2_with_voicelive.py (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`not`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` available)`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Sign in to Azure with the following command:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`az`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` login`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Run the Python file.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`python`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` create_agent_with_voicelive.py`})]}),`\n`]})})}),`\n`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`talk-with-a-voice-agent`,children:`Talk with a voice agent`}),_jsx(_components.p,{children:`The sample code in this quickstart uses Microsoft Entra ID for authentication as the current integration only supports this authentication method.`}),_jsxs(_components.p,{children:[`The sample connects to Foundry Agent Service by passing `,_jsx(_components.code,{children:`agent_config`}),` in `,_jsx(_components.code,{children:`connect(...)`}),` using these fields:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`agent_name`}),`: The agent name to invoke.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`project_name`}),`: The Foundry project containing the agent.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`agent_version`}),`: Optional pinned version for controlled rollouts. If omitted, the latest version is used.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`conversation_id`}),`: Optional conversation ID to continue prior conversation context.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`foundry_resource_override`}),`: Optional resource name when the agent is hosted on a different Foundry resource.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`authentication_identity_client_id`}),`: Optional managed identity client ID used with cross-resource agent connections.`]}),`\n`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[`Agent mode in Voice Live doesn’t support key-based authentication for agent invocation. Use Microsoft Entra ID (for example, `,_jsx(_components.code,{children:`AzureCliCredential`}),`) for agent access. Voice Live resource configuration might still include API keys for non-agent scenarios.`]})}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create the `,_jsx(_components.code,{children:`voice-live-agents-quickstart.py`}),` file with the following code:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`//`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Source: voice`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`live`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`agent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`v2.py (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`not`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` available)`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Sign in to Azure with the following command:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`az`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` login`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Run the Python file.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`python`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` voice-live-agents-quickstart.py`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`You can start speaking with the agent and hear responses. You can interrupt the model by speaking. Enter “Ctrl+C” to quit the conversation.`}),`\n`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`output`,children:`Output`}),_jsx(_components.p,{children:`The output of the script is printed to the console. You see messages indicating the status of the connection, audio stream, and playback. The audio is played back through your speakers or headphones.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`29`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`29`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎙️ Basic Voice Assistant with Azure VoiceLive SDK`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`==================================================`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`============================================================`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 VOICE ASSISTANT READY`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Start speaking to begin conversation`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Press Ctrl+C to exit`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`============================================================`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 Listening...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🤔 Processing...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`👤 You said: User Input: Hello.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 Ready for next input...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🤖 Agent responded with audio transcript: Agent Audio Response: Hello! I'm Tobi the agent. How can I assist you today?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 Listening...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🤔 Processing...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`👤 You said: User Input: What are the opening hours of the Eiffel Tower?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 Ready for next input...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🤖 Agent responded with audio transcript: Agent Audio Response: The Eiffel Tower's opening hours can vary depending on the season and any special events or maintenance. Generally, the Eiffel Tower is open every day of the year, with the following typical hours:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Mid-June to early September: 9:00 AM to 12:45 AM (last elevator ride up at 12:00 AM)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Rest of the year: 9:30 AM to 11:45 PM (last elevator ride up at 11:00 PM)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`These times can sometimes change, so it's always best to check the official Eiffel Tower website or contact them directly for the most up-to-date information before your visit.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Would you like me to help you find the official website or any other details about visiting the Eiffel Tower?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`👋 Voice assistant shut down. Goodbye!`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The script that you ran creates a log file named `,_jsx(_components.code,{children:`\u003ctimestamp>_voicelive.log`}),` in the `,_jsx(_components.code,{children:`logs`}),` folder.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`logging.basicConfig(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` filename`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'logs/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`timestamp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`_voicelive.log'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` filemode`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"w\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` format`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`%(asctime)s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`%(name)s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`%(levelname)s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`%(message)s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` level`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`logging.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`INFO`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`voicelive.log`}),` file contains information about the connection to the Voice Live API, including the request and response data. You can view the log file to see the details of the conversation.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`28`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`28`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:19,183:__main__:INFO:Using Azure token credential`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:19,184:__main__:INFO:Connecting to VoiceLive API with Foundry agent connection MyVoiceAgent for project my-voiceagent-project`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:20,801:azure.identity.aio._internal.decorators:INFO:AzureCliCredential.get_token succeeded`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:21,847:__main__:INFO:AudioProcessor initialized with 24kHz PCM16 mono audio`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:21,847:__main__:INFO:Setting up voice conversation session...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:21,848:__main__:INFO:Session configuration sent`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:22,174:__main__:INFO:Audio playback system ready`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:22,174:__main__:INFO:Voice assistant ready! Start speaking...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:22,384:__main__:INFO:Session ready: sess_1m1zrSLJSPjJpzbEOyQpTL`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:22,386:__main__:INFO:Sending proactive greeting request`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:22,419:__main__:INFO:Started audio capture`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:22,722:__main__:INFO:\\\\U0001f916 Assistant response created`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:26,054:__main__:INFO:\\\\U0001f916 Assistant finished speaking`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:26,074:__main__:INFO:\\\\u2705 Response complete`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:32,015:__main__:INFO:User started speaking - stopping playback`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:32,866:__main__:INFO:\\\\U0001f3a4 User stopped speaking`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:32,972:__main__:INFO:\\\\U0001f916 Assistant response created`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:35,750:__main__:INFO:User started speaking - stopping playback`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:35,751:__main__:INFO:\\\\U0001f916 Assistant finished speaking`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:36,171:__main__:INFO:\\\\u2705 Response complete`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:37,117:__main__:INFO:\\\\U0001f3a4 User stopped speaking`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:37,207:__main__:INFO:\\\\U0001f916 Assistant response created`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:41,016:__main__:INFO:\\\\U0001f916 Assistant finished speaking`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:41,023:__main__:INFO:\\\\u2705 Response complete`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:44,818:__main__:INFO:Stopped audio capture`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:44,949:__main__:INFO:Stopped audio playback`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:44,950:__main__:INFO:Audio processor cleaned up`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`Further a session log file is created in the `,_jsx(_components.code,{children:`logs`}),` folder with the name `,_jsx(_components.code,{children:`\u003ctimestamp>_conversation.log`}),`. This file contains detailed information about the session, including the request and response data.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`20`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`SessionID: sess_1m1zrSLJSPjJpzbEOyQpTL`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Agent Name: VoiceAgentQuickstartTest`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Agent Description: `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Agent ID: None`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Voice Name: en-US-Ava:DragonHDLatestNeural`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Voice Type: azure-standard`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Voice Temperature: 0.8`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`User Input:\tHello.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Agent Audio Response:\tHello! I'm Tobi the agent. How can I assist you today?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`User Input:\tWhat are the opening hours of the Eiffel Tower?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Agent Audio Response:\tThe Eiffel Tower's opening hours can vary depending on the season and any special events or maintenance. Generally, the Eiffel Tower is open every day of the year, with the following typical hours:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Mid-June to early September: 9:00 AM to 12:45 AM (last elevator ride up at 12:00 AM)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Rest of the year: 9:30 AM to 11:45 PM (last elevator ride up at 11:00 PM)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`These times can sometimes change, so it's always best to check the official Eiffel Tower website or contact them directly for the most up-to-date information before your visit.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Would you like me to help you find the official website or any other details about visiting the Eiffel Tower?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`Here are the key differences between the `,_jsx(_components.a,{href:`#technical-log`,children:`technical log`}),` and the `,_jsx(_components.a,{href:`#conversation-log`,children:`conversation log`}),`:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Aspect`}),_jsx(_components.th,{children:`Conversation Log`}),_jsx(_components.th,{children:`Technical Log`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Audience`})}),_jsx(_components.td,{children:`Business users, content reviewers`}),_jsx(_components.td,{children:`Developers, IT operations`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Content`})}),_jsx(_components.td,{children:`What was said in conversations`}),_jsx(_components.td,{children:`How the system is working`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Level`})}),_jsx(_components.td,{children:`Application/conversation level`}),_jsx(_components.td,{children:`System/infrastructure level`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Troubleshooting`})}),_jsx(_components.td,{children:`”What did the agent say?\"`}),_jsx(_components.td,{children:`\"Why did the connection fail?”`})]})]})]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Example`}),`: If your agent wasn’t responding, you’d check:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`voicelive.log`}),` → “WebSocket connection failed” or “Audio stream error”`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`conversation.log`}),` → “Did the user actually say anything?”`]}),`\n`]}),_jsx(_components.p,{children:`Both logs are complementary - conversation logs for conversation analysis and testing, technical logs for system diagnostics!`}),_jsx(Heading,{level:`3`,id:`technical-log`,children:`Technical log`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Purpose`}),`: Technical debugging and system monitoring`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Contents`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`WebSocket connection events`}),`\n`,_jsx(_components.li,{children:`Audio stream status`}),`\n`,_jsx(_components.li,{children:`Error messages and stack traces`}),`\n`,_jsx(_components.li,{children:`System-level events (session.created, response.done, etc.)`}),`\n`,_jsx(_components.li,{children:`Network connectivity issues`}),`\n`,_jsx(_components.li,{children:`Audio processing diagnostics`}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Format`}),`: Structured logging with timestamps, log levels, and technical details`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Use Cases`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Debugging connection problems`}),`\n`,_jsx(_components.li,{children:`Monitoring system performance`}),`\n`,_jsx(_components.li,{children:`Troubleshooting audio issues`}),`\n`,_jsx(_components.li,{children:`Developer/operations analysis`}),`\n`]}),_jsx(Heading,{level:`3`,id:`conversation-log`,children:`Conversation log`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Purpose`}),`: Conversation transcript and user experience tracking`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Contents`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Agent and project identification`}),`\n`,_jsx(_components.li,{children:`Session configuration details`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`User transcripts`}),`: “Tell me a story”, “Stop”`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Agent responses`}),`: Full story text and follow-up responses`]}),`\n`,_jsx(_components.li,{children:`Conversation flow and interactions`}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Format`}),`: Plain text, human-readable conversation format`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Use Cases`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Analyzing conversation quality`}),`\n`,_jsx(_components.li,{children:`Reviewing what was actually said`}),`\n`,_jsx(_components.li,{children:`Understanding user interactions and agent responses`}),`\n`,_jsx(_components.li,{children:`Business/content analysis`}),`\n`]})]})}),`\n`,_jsx(_MdxComponentBoundary,{name:`ZoneContent`,children:_jsxs(ZoneContent,{group:`ai-foundry-portal__programming-language-csharp__programming-language-java__programming-language-javascript__programming-language-python`,value:`programming-language-csharp`,options:[{\"id\":`ai-foundry-portal`,\"title\":`Foundry portal`},{\"id\":`programming-language-python`,\"title\":`Python`},{\"id\":`programming-language-csharp`,\"title\":`C#`},{\"id\":`programming-language-javascript`,\"title\":`JavaScript`},{\"id\":`programming-language-java`,\"title\":`Java`}],values:[`ai-foundry-portal`,`programming-language-python`,`programming-language-csharp`,`programming-language-javascript`,`programming-language-java`],defaultValue:`ai-foundry-portal`,children:[_jsxs(_components.p,{children:[`Learn how to use Voice Live with `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-foundry/agents/overview`,children:`Microsoft Foundry Agent Service`}),` using the VoiceLive SDK for C#.`]}),_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://learn.microsoft.com/dotnet/api/overview/azure/ai.voicelive-readme`,children:`Reference documentation`}),` | `,_jsx(_components.a,{href:`https://www.nuget.org/packages/Azure.AI.VoiceLive`,children:`Package (NuGet)`}),` | `,_jsx(_components.a,{href:`https://aka.ms/voicelive/github-csharp`,children:`Additional samples on GitHub`})]}),_jsx(_components.p,{children:`You can create and run an application to use Voice Live with agents for real-time voice agents.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Using agents allows leveraging a built-in prompt and configuration managed within the agent itself, rather than specifying instructions in the session code.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Agents encapsulate more complex logic and behaviors, making it easier to manage and update conversational flows without changing the client code.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`The agent approach streamlines integration. The agent ID is used to connect and all necessary settings are handled internally, reducing the need for manual configuration in the code.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`This separation also supports better maintainability and scalability for scenarios where multiple conversational experiences or business logic variations are needed.`}),`\n`]}),`\n`]}),_jsxs(_components.p,{children:[`To use the Voice Live API without Foundry agents, see the `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-services/speech-service/voice-live-quickstart`,children:`Voice Live API quickstart`}),`.`]}),_jsx(Tip,{children:_jsxs(_components.p,{children:[`To use Voice Live, you don’t need to deploy an `,_jsx(_components.strong,{children:`audio`}),` model with your Microsoft Foundry resource. Voice Live is fully managed, and the model is automatically deployed for you. For more information about models availability, see the `,_jsx(_components.a,{href:`/voice-live`,children:`Voice Live overview documentation`}),`.`]})}),_jsx(_components.p,{children:`Follow the quickstart below or get a fully working web app with browser-based voice UI:`}),_jsx(Card,{title:`Voice Live universal assistant sample`,icon:`arrow-right`,href:`https://github.com/microsoft-foundry/voicelive-samples/tree/main/voice-live-universal-assistant`}),_jsx(Heading,{level:`2`,id:`prerequisites-3`,children:`Prerequisites`}),_jsx(Note,{children:_jsxs(_components.p,{children:[`This document refers to the `,_jsx(_components.a,{href:`https://learn.microsoft.com/en-us/azure/ai-foundry/what-is-foundry#microsoft-foundry-portals`,children:`Microsoft Foundry (new)`}),` portal and the latest Foundry Agent Service version.`]})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`An Azure subscription. `,_jsx(_components.a,{href:`https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=msft_learn`,children:`Create one for free`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://dotnet.microsoft.com/download/dotnet/8.0`,children:`.NET 8.0 SDK`}),` or later.`]}),`\n`,_jsxs(_components.li,{children:[`The required language runtimes, global tools, and Visual Studio Code extensions as described in `,_jsx(_components.a,{href:`https://learn.microsoft.com/en-us/azure/ai-foundry/how-to/develop/install-cli-sdk`,children:`Prepare your development environment`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`A `,_jsx(_components.a,{href:`/multi-service-resource`,children:`Microsoft Foundry resource`}),` created in one of the supported regions. For more information about region availability, see the `,_jsx(_components.a,{href:`/voice-live`,children:`Voice Live overview documentation`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`A model deployed in Microsoft Foundry. If you don’t have a model, first complete `,_jsx(_components.a,{href:`https://learn.microsoft.com/en-us/azure/foundry/tutorials/quickstart-create-foundry-resources`,children:`Quickstart: Set up Microsoft Foundry resources`}),`.`]}),`\n`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Assign the `,_jsx(_components.code,{children:`Foundry User`}),` role to your user account. You can assign roles in the Azure portal under `,_jsx(_components.strong,{children:`Access control (IAM)`}),` > `,_jsx(_components.strong,{children:`Add role assignment`}),`.`]}),`\n`]}),_jsx(Info,{}),_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[`The Foundry RBAC roles were recently renamed. `,_jsx(_components.strong,{children:`Foundry User`}),`, `,_jsx(_components.strong,{children:`Foundry Owner`}),`, `,_jsx(_components.strong,{children:`Foundry Account Owner`}),`, and `,_jsx(_components.strong,{children:`Foundry Project Manager`}),` were previously named Azure AI User, Azure AI Owner, Azure AI Account Owner, and Azure AI Project Manager. You might still see the previous names in some places while the rename rolls out. The role IDs and core permissions are unchanged by the rename.`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`prepare-the-environment-2`,children:`Prepare the environment`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create a new folder `,_jsx(_components.code,{children:`voice-live-quickstart`}),` and go to the quickstart folder with the following command:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mkdir`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` voice-live-quickstart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026 `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` voice-live-quickstart`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create a `,_jsx(_components.strong,{children:`.csproj`}),` file with the following project configuration:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`xml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`xml`,children:_jsxs(_components.code,{language:`xml`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`// Source: VoiceLiveWithAgent.csproj (not available)`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Restore NuGet packages:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dotnet`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` restore`})]}),`\n`]})})}),`\n`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`retrieve-resource-information-2`,children:`Retrieve resource information`}),_jsx(Note,{children:_jsx(_components.p,{children:`The agent integration requires Entra ID authentication. Key-based authentication isn’t supported in Agent mode.`})}),_jsxs(_components.p,{children:[`Create a new file named `,_jsx(_components.code,{children:`.env`}),` in the folder where you want to run the code.`]}),_jsxs(_components.p,{children:[`In the `,_jsx(_components.code,{children:`.env`}),` file, add the following environment variables for authentication:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# Settings for Foundry Agent`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`PROJECT_ENDPOINT=\u003cendpoint copied from welcome screen>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`AGENT_NAME=\"MyVoiceAgent\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`MODEL_DEPLOYMENT_NAME=\"gpt-4.1-mini\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# Settings for Voice Live`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`AGENT_NAME=\u003cname-used-to-create-agent> # See above`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`AGENT_VERSION=\u003cversion-of-the-agent>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`CONVERSATION_ID=\u003cspecific conversation id to reconnect to>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`PROJECT_NAME=\u003cyour_project_name>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`VOICELIVE_ENDPOINT=\u003cyour_endpoint>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`VOICELIVE_API_VERSION=2026-04-10`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:`Replace the default values with your actual project name, agent name, and endpoint values.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable name`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PROJECT_ENDPOINT`})}),_jsx(_components.td,{children:`The Foundry project endpoint copied from the project welcome screen.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AGENT_NAME`})}),_jsx(_components.td,{children:`The name of the agent to use.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AGENT_VERSION`})}),_jsx(_components.td,{children:`Optional: The version of the agent to use.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CONVERSATION_ID`})}),_jsx(_components.td,{children:`Optional: A specific conversation ID to reconnect to.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PROJECT_NAME`})}),_jsx(_components.td,{children:`The name of your Microsoft Foundry project. Project name is the last element of the project endpoint value.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`VOICELIVE_ENDPOINT`})}),_jsxs(_components.td,{children:[`This value can be found in the `,_jsx(_components.strong,{children:`Keys and Endpoint`}),` section when examining your resource from the Azure portal.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FOUNDRY_RESOURCE_OVERRIDE`})}),_jsxs(_components.td,{children:[`Optional: The Foundry resource name hosting the agent project (for example, `,_jsx(_components.code,{children:`my-resource-name`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AGENT_AUTHENTICATION_IDENTITY_CLIENT_ID`})}),_jsx(_components.td,{children:`Optional: The managed identity client ID of the Voice Live resource.`})]})]})]}),_jsxs(_components.p,{children:[`Learn more about `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-services/authentication`,children:`keyless authentication`}),` and `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-services/cognitive-services-environment-variables`,children:`setting environment variables`}),`.`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[`The C# Foundry Agent SDK (`,_jsx(_components.code,{children:`Azure.AI.Projects`}),`) uses a connection string instead of an endpoint URL. Set `,_jsx(_components.code,{children:`PROJECT_CONNECTION_STRING`}),` to your project connection string (found in the Foundry portal under `,_jsx(_components.strong,{children:`Project settings`}),` > `,_jsx(_components.strong,{children:`Connected resources`}),`).`]})}),_jsx(Heading,{level:`2`,id:`create-an-agent-with-voice-live-settings-2`,children:`Create an agent with Voice Live settings`}),_jsx(_components.p,{children:`The agent creation script is a separate utility. Create a temporary console project to run it:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Create a separate folder for the agent creation utility:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mkdir`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` create-agent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026 `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` create-agent`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dotnet`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` new`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` console`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --framework`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` net8.0`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Add the required NuGet packages:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dotnet`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` package`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Azure.AI.Projects`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dotnet`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` package`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Azure.Identity`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Replace the contents of `,_jsx(_components.strong,{children:`Program.cs`}),` with the following code:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Source: CreateAgentWithVoiceLive.cs (not available)`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Sign in to Azure with the following command:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`az`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` login`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Build and run the agent creation script:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dotnet`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Return to the quickstart folder:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ..`})]}),`\n`]})})}),`\n`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`talk-with-a-voice-agent-2`,children:`Talk with a voice agent`}),_jsx(_components.p,{children:`The sample code in this quickstart uses Microsoft Entra ID for authentication as the current integration only supports this authentication method.`}),_jsxs(_components.p,{children:[`The sample connects to Foundry Agent Service by passing `,_jsx(_components.code,{children:`AgentSessionConfig`}),` to `,_jsx(_components.code,{children:`StartSessionAsync(SessionTarget.FromAgent(...))`}),` using these properties:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`agentName`}),`: The agent name to invoke.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`projectName`}),`: The Foundry project containing the agent.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`AgentVersion`}),`: Optional pinned version for controlled rollouts. If omitted, the latest version is used.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`ConversationId`}),`: Optional conversation ID to continue prior conversation context.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`FoundryResourceOverride`}),`: Optional resource name when the agent is hosted on a different Foundry resource.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`AuthenticationIdentityClientId`}),`: Optional managed identity client ID used with cross-resource agent connections.`]}),`\n`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[`Agent mode in Voice Live doesn’t support key-based authentication for agent invocation. Use Microsoft Entra ID (for example, `,_jsx(_components.code,{children:`AzureCliCredential`}),`) for agent access. Voice Live resource configuration might still include API keys for non-agent scenarios.`]})}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create the `,_jsx(_components.strong,{children:`VoiceLiveWithAgentV2.cs`}),` file with the following code:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Source: VoiceLiveWithAgentV2.cs (not available)`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Sign in to Azure with the following command:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`az`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` login`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Build and run the voice assistant:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dotnet`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`You can start speaking with the agent and hear responses. You can interrupt the model by speaking. Enter “Ctrl+C” to quit the conversation.`}),`\n`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`output-2`,children:`Output`}),_jsx(_components.p,{children:`The output of the script is printed to the console. You see messages indicating the status of the connection, audio stream, and playback. The audio is played back through your speakers or headphones.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`29`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`29`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎙️ Basic Foundry Voice Agent with Azure VoiceLive SDK (Agent Mode)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`=================================================================`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`=================================================================`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 VOICE ASSISTANT READY`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Start speaking to begin conversation`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Press Ctrl+C to exit`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`=================================================================`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 Listening...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🤔 Processing...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`👤 You said:\tHello.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 Ready for next input...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🤖 Agent responded:\tHello! I'm Tobi the agent. How can I assist you today?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 Listening...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🤔 Processing...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`👤 You said:\tWhat are the opening hours of the Eiffel Tower?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 Ready for next input...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🤖 Agent responded:\tThe Eiffel Tower's opening hours can vary depending on the season and any special events or maintenance. Generally, the Eiffel Tower is open every day of the year, with the following typical hours:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Mid-June to early September: 9:00 AM to 12:45 AM (last elevator ride up at 12:00 AM)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Rest of the year: 9:30 AM to 11:45 PM (last elevator ride up at 11:00 PM)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`These times can sometimes change, so it's always best to check the official Eiffel Tower website or contact them directly for the most up-to-date information before your visit.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Would you like me to help you find the official website or any other details about visiting the Eiffel Tower?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`👋 Voice assistant shut down. Goodbye!`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`A conversation log file is created in the `,_jsx(_components.code,{children:`logs`}),` folder with the name `,_jsx(_components.code,{children:`conversation_YYYYMMDD_HHmmss.log`}),`. This file contains session metadata and the conversation transcript, including user inputs and agent responses.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`SessionID: sess_1m1zrSLJSPjJpzbEOyQpTL`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`User Input:\tHello.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Agent Audio Response:\tHello! I'm Tobi the agent. How can I assist you today?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`User Input:\tWhat are the opening hours of the Eiffel Tower?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Agent Audio Response:\tThe Eiffel Tower's opening hours can vary depending on the season...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`Here are the key differences between the `,_jsx(_components.a,{href:`#technical-log`,children:`technical log`}),` and the `,_jsx(_components.a,{href:`#conversation-log`,children:`conversation log`}),`:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Aspect`}),_jsx(_components.th,{children:`Conversation Log`}),_jsx(_components.th,{children:`Technical Log`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Audience`})}),_jsx(_components.td,{children:`Business users, content reviewers`}),_jsx(_components.td,{children:`Developers, IT operations`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Content`})}),_jsx(_components.td,{children:`What was said in conversations`}),_jsx(_components.td,{children:`How the system is working`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Level`})}),_jsx(_components.td,{children:`Application/conversation level`}),_jsx(_components.td,{children:`System/infrastructure level`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Troubleshooting`})}),_jsx(_components.td,{children:`”What did the agent say?\"`}),_jsx(_components.td,{children:`\"Why did the connection fail?”`})]})]})]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Example`}),`: If your agent wasn’t responding, you’d check:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Console log`}),` → “WebSocket connection failed” or “Audio stream error”`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`conversation log`}),` → “Did the user actually say anything?”`]}),`\n`]}),_jsx(_components.p,{children:`Both logs are complementary - conversation logs for conversation analysis and testing, technical logs for system diagnostics!`}),_jsx(Heading,{level:`3`,id:`technical-log-2`,children:`Technical log`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Purpose`}),`: Technical debugging and system monitoring`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Contents`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`WebSocket connection events`}),`\n`,_jsx(_components.li,{children:`Audio stream status`}),`\n`,_jsx(_components.li,{children:`Error messages and stack traces`}),`\n`,_jsx(_components.li,{children:`System-level events (session.created, response.done, etc.)`}),`\n`,_jsx(_components.li,{children:`Network connectivity issues`}),`\n`,_jsx(_components.li,{children:`Audio processing diagnostics`}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Format`}),`: Structured logging with timestamps, log levels, and technical details`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Use Cases`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Debugging connection problems`}),`\n`,_jsx(_components.li,{children:`Monitoring system performance`}),`\n`,_jsx(_components.li,{children:`Troubleshooting audio issues`}),`\n`,_jsx(_components.li,{children:`Developer/operations analysis`}),`\n`]}),_jsx(Heading,{level:`3`,id:`conversation-log-2`,children:`Conversation log`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Purpose`}),`: Conversation transcript and user experience tracking`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Contents`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Agent and project identification`}),`\n`,_jsx(_components.li,{children:`Session configuration details`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`User transcripts`}),`: “Tell me a story”, “Stop”`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Agent responses`}),`: Full story text and follow-up responses`]}),`\n`,_jsx(_components.li,{children:`Conversation flow and interactions`}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Format`}),`: Plain text, human-readable conversation format`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Use Cases`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Analyzing conversation quality`}),`\n`,_jsx(_components.li,{children:`Reviewing what was actually said`}),`\n`,_jsx(_components.li,{children:`Understanding user interactions and agent responses`}),`\n`,_jsx(_components.li,{children:`Business/content analysis`}),`\n`]})]})}),`\n`,_jsx(_MdxComponentBoundary,{name:`ZoneContent`,children:_jsxs(ZoneContent,{group:`ai-foundry-portal__programming-language-csharp__programming-language-java__programming-language-javascript__programming-language-python`,value:`programming-language-javascript`,options:[{\"id\":`ai-foundry-portal`,\"title\":`Foundry portal`},{\"id\":`programming-language-python`,\"title\":`Python`},{\"id\":`programming-language-csharp`,\"title\":`C#`},{\"id\":`programming-language-javascript`,\"title\":`JavaScript`},{\"id\":`programming-language-java`,\"title\":`Java`}],values:[`ai-foundry-portal`,`programming-language-python`,`programming-language-csharp`,`programming-language-javascript`,`programming-language-java`],defaultValue:`ai-foundry-portal`,children:[_jsxs(_components.p,{children:[`Learn how to use Voice Live with `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-foundry/agents/overview`,children:`Microsoft Foundry Agent Service`}),` using the VoiceLive SDK for JavaScript.`]}),_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://learn.microsoft.com/javascript/api/overview/azure/ai-voicelive-readme`,children:`Reference documentation`}),` | `,_jsx(_components.a,{href:`https://www.npmjs.com/package/@azure/ai-voicelive`,children:`Package (npm)`}),` | `,_jsx(_components.a,{href:`https://aka.ms/voicelive/github-javascript`,children:`Additional samples on GitHub`})]}),_jsx(_components.p,{children:`You can create and run an application to use Voice Live with agents for real-time voice agents.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Using agents allows leveraging a built-in prompt and configuration managed within the agent itself, rather than specifying instructions in the session code.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Agents encapsulate more complex logic and behaviors, making it easier to manage and update conversational flows without changing the client code.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`The agent approach streamlines integration. The agent ID is used to connect and all necessary settings are handled internally, reducing the need for manual configuration in the code.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`This separation also supports better maintainability and scalability for scenarios where multiple conversational experiences or business logic variations are needed.`}),`\n`]}),`\n`]}),_jsxs(_components.p,{children:[`To use the Voice Live API without Foundry agents, see the `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-services/speech-service/voice-live-quickstart`,children:`Voice Live API quickstart`}),`.`]}),_jsx(Tip,{children:_jsxs(_components.p,{children:[`To use Voice Live, you don’t need to deploy an `,_jsx(_components.strong,{children:`audio`}),` model with your Microsoft Foundry resource. Voice Live is fully managed, and the model is automatically deployed for you. For more information about models availability, see the `,_jsx(_components.a,{href:`/voice-live`,children:`Voice Live overview documentation`}),`.`]})}),_jsx(_components.p,{children:`Follow the quickstart below or get a fully working web app with browser-based voice UI:`}),_jsx(Card,{title:`Voice Live universal assistant sample`,icon:`arrow-right`,href:`https://github.com/microsoft-foundry/voicelive-samples/tree/main/voice-live-universal-assistant`}),_jsx(Note,{children:_jsxs(_components.p,{children:[`The JavaScript Voice Live SDK is designed for browser-based applications with built-in WebSocket and Web Audio support. This quickstart uses Node.js with `,_jsx(_components.code,{children:`node-record-lpcm16`}),` and `,_jsx(_components.code,{children:`speaker`}),` for a console experience.`]})}),_jsx(Heading,{level:`2`,id:`prerequisites-4`,children:`Prerequisites`}),_jsx(Note,{children:_jsxs(_components.p,{children:[`This document refers to the `,_jsx(_components.a,{href:`https://learn.microsoft.com/en-us/azure/ai-foundry/what-is-foundry#microsoft-foundry-portals`,children:`Microsoft Foundry (new)`}),` portal and the latest Foundry Agent Service version.`]})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`An Azure subscription. `,_jsx(_components.a,{href:`https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=msft_learn`,children:`Create one for free`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://nodejs.org/`,children:`Node.js`}),` version 18 or later.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://sox.sourceforge.io/`,children:`SoX`}),` installed on your system (required by `,_jsx(_components.code,{children:`node-record-lpcm16`}),` for microphone capture).`]}),`\n`,_jsxs(_components.li,{children:[`The required language runtimes, global tools, and Visual Studio Code extensions as described in `,_jsx(_components.a,{href:`https://learn.microsoft.com/en-us/azure/ai-foundry/how-to/develop/install-cli-sdk`,children:`Prepare your development environment`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`A `,_jsx(_components.a,{href:`/multi-service-resource`,children:`Microsoft Foundry resource`}),` created in one of the supported regions. For more information about region availability, see the `,_jsx(_components.a,{href:`/voice-live`,children:`Voice Live overview documentation`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`A model deployed in Microsoft Foundry. If you don’t have a model, first complete `,_jsx(_components.a,{href:`https://learn.microsoft.com/en-us/azure/foundry/tutorials/quickstart-create-foundry-resources`,children:`Quickstart: Set up Microsoft Foundry resources`}),`.`]}),`\n`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Assign the `,_jsx(_components.code,{children:`Foundry User`}),` role to your user account. You can assign roles in the Azure portal under `,_jsx(_components.strong,{children:`Access control (IAM)`}),` > `,_jsx(_components.strong,{children:`Add role assignment`}),`.`]}),`\n`]}),_jsx(Info,{}),_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[`The Foundry RBAC roles were recently renamed. `,_jsx(_components.strong,{children:`Foundry User`}),`, `,_jsx(_components.strong,{children:`Foundry Owner`}),`, `,_jsx(_components.strong,{children:`Foundry Account Owner`}),`, and `,_jsx(_components.strong,{children:`Foundry Project Manager`}),` were previously named Azure AI User, Azure AI Owner, Azure AI Account Owner, and Azure AI Project Manager. You might still see the previous names in some places while the rename rolls out. The role IDs and core permissions are unchanged by the rename.`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`prepare-the-environment-3`,children:`Prepare the environment`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create a new folder `,_jsx(_components.code,{children:`voice-live-quickstart`}),` and go to the quickstart folder with the following command:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mkdir`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` voice-live-quickstart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026 `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` voice-live-quickstart`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create a `,_jsx(_components.strong,{children:`package.json`}),` file with the following content:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Source: package.json (not available)`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Install the dependencies:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`})]}),`\n`]})})}),`\n`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`retrieve-resource-information-3`,children:`Retrieve resource information`}),_jsx(Note,{children:_jsx(_components.p,{children:`The agent integration requires Entra ID authentication. Key-based authentication isn’t supported in Agent mode.`})}),_jsxs(_components.p,{children:[`Create a new file named `,_jsx(_components.code,{children:`.env`}),` in the folder where you want to run the code.`]}),_jsxs(_components.p,{children:[`In the `,_jsx(_components.code,{children:`.env`}),` file, add the following environment variables for authentication:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# Settings for Foundry Agent`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`PROJECT_ENDPOINT=\u003cendpoint copied from welcome screen>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`AGENT_NAME=\"MyVoiceAgent\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`MODEL_DEPLOYMENT_NAME=\"gpt-4.1-mini\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# Settings for Voice Live`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`AGENT_NAME=\u003cname-used-to-create-agent> # See above`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`AGENT_VERSION=\u003cversion-of-the-agent>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`CONVERSATION_ID=\u003cspecific conversation id to reconnect to>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`PROJECT_NAME=\u003cyour_project_name>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`VOICELIVE_ENDPOINT=\u003cyour_endpoint>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`VOICELIVE_API_VERSION=2026-04-10`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:`Replace the default values with your actual project name, agent name, and endpoint values.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable name`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PROJECT_ENDPOINT`})}),_jsx(_components.td,{children:`The Foundry project endpoint copied from the project welcome screen.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AGENT_NAME`})}),_jsx(_components.td,{children:`The name of the agent to use.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AGENT_VERSION`})}),_jsx(_components.td,{children:`Optional: The version of the agent to use.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CONVERSATION_ID`})}),_jsx(_components.td,{children:`Optional: A specific conversation ID to reconnect to.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PROJECT_NAME`})}),_jsx(_components.td,{children:`The name of your Microsoft Foundry project. Project name is the last element of the project endpoint value.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`VOICELIVE_ENDPOINT`})}),_jsxs(_components.td,{children:[`This value can be found in the `,_jsx(_components.strong,{children:`Keys and Endpoint`}),` section when examining your resource from the Azure portal.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FOUNDRY_RESOURCE_OVERRIDE`})}),_jsxs(_components.td,{children:[`Optional: The Foundry resource name hosting the agent project (for example, `,_jsx(_components.code,{children:`my-resource-name`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AGENT_AUTHENTICATION_IDENTITY_CLIENT_ID`})}),_jsx(_components.td,{children:`Optional: The managed identity client ID of the Voice Live resource.`})]})]})]}),_jsxs(_components.p,{children:[`Learn more about `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-services/authentication`,children:`keyless authentication`}),` and `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-services/cognitive-services-environment-variables`,children:`setting environment variables`}),`.`]}),_jsx(Heading,{level:`2`,id:`create-an-agent-with-voice-live-settings-3`,children:`Create an agent with Voice Live settings`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create a file `,_jsx(_components.strong,{children:`create-agent-with-voicelive.js`}),` with the following code:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Source: create-agent-with-voicelive.js (not available)`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Sign in to Azure with the following command:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`az`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` login`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Run the agent creation script:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`node`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` create-agent-with-voicelive.js`})]}),`\n`]})})}),`\n`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`talk-with-a-voice-agent-3`,children:`Talk with a voice agent`}),_jsx(_components.p,{children:`The sample code in this quickstart uses Microsoft Entra ID for authentication as the current integration only supports this authentication method.`}),_jsxs(_components.p,{children:[`The sample connects to Foundry Agent Service by passing an `,_jsx(_components.code,{children:`agent`}),` config object to `,_jsx(_components.code,{children:`client.createSession(...)`}),` using these fields:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`agentName`}),`: The agent name to invoke.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`projectName`}),`: The Foundry project containing the agent.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`agentVersion`}),`: Optional pinned version for controlled rollouts. If omitted, the latest version is used.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`conversationId`}),`: Optional conversation ID to continue prior conversation context.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`foundryResourceOverride`}),`: Optional resource name when the agent is hosted on a different Foundry resource.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`authenticationIdentityClientId`}),`: Optional managed identity client ID used with cross-resource agent connections.`]}),`\n`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[`Agent mode in Voice Live doesn’t support key-based authentication for agent invocation. Use Microsoft Entra ID (for example, `,_jsx(_components.code,{children:`DefaultAzureCredential`}),`) for agent access. Voice Live resource configuration might still include API keys for non-agent scenarios.`]})}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create the `,_jsx(_components.strong,{children:`voice-live-with-agent.js`}),` file with the following code:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Source: voice-live-with-agent-v2.js (not available)`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Sign in to Azure with the following command:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`az`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` login`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Run the voice assistant:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`node`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` voice-live-with-agent.js`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`You can start speaking with the agent and hear responses. You can interrupt the model by speaking. Enter “Ctrl+C” to quit the conversation.`}),`\n`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`output-3`,children:`Output`}),_jsx(_components.p,{children:`The output of the script is printed to the console. You see messages indicating the status of the connection, audio stream, and playback. The audio is played back through your speakers or headphones.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`29`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`29`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎙️ Basic Foundry Voice Agent with Azure VoiceLive SDK (Agent Mode)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`=================================================================`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`=================================================================`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 VOICE ASSISTANT READY`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Start speaking to begin conversation`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Press Ctrl+C to exit`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`=================================================================`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 Listening...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🤔 Processing...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`👤 You said:\tHello.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 Ready for next input...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🤖 Agent responded with audio transcript:\tHello! I'm Tobi the agent. How can I assist you today?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 Listening...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🤔 Processing...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`👤 You said:\tWhat are the opening hours of the Eiffel Tower?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 Ready for next input...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🤖 Agent responded with audio transcript:\tThe Eiffel Tower's opening hours can vary depending on the season and any special events or maintenance. Generally, the Eiffel Tower is open every day of the year, with the following typical hours:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Mid-June to early September: 9:00 AM to 12:45 AM (last elevator ride up at 12:00 AM)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Rest of the year: 9:30 AM to 11:45 PM (last elevator ride up at 11:00 PM)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`These times can sometimes change, so it's always best to check the official Eiffel Tower website or contact them directly for the most up-to-date information before your visit.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Would you like me to help you find the official website or any other details about visiting the Eiffel Tower?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`👋 Voice assistant shut down. Goodbye!`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`A conversation log file is created in the `,_jsx(_components.code,{children:`logs`}),` folder with the name `,_jsx(_components.code,{children:`conversation_YYYYMMDD_HHmmss.log`}),`. This file contains session metadata and the conversation transcript, including user inputs and agent responses.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`SessionID: sess_1m1zrSLJSPjJpzbEOyQpTL`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Agent Name: VoiceAgentQuickstartTest`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Agent Description:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Agent ID:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Voice Name: en-US-Ava:DragonHDLatestNeural`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Voice Type: azure-standard`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`User Input:\tHello.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Agent Audio Response:\tHello! I'm Tobi the agent. How can I assist you today?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`User Input:\tWhat are the opening hours of the Eiffel Tower?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Agent Audio Response:\tThe Eiffel Tower's opening hours can vary depending on the season...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`Here are the key differences between the `,_jsx(_components.a,{href:`#technical-log`,children:`technical log`}),` and the `,_jsx(_components.a,{href:`#conversation-log`,children:`conversation log`}),`:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Aspect`}),_jsx(_components.th,{children:`Conversation Log`}),_jsx(_components.th,{children:`Technical Log`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Audience`})}),_jsx(_components.td,{children:`Business users, content reviewers`}),_jsx(_components.td,{children:`Developers, IT operations`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Content`})}),_jsx(_components.td,{children:`What was said in conversations`}),_jsx(_components.td,{children:`How the system is working`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Level`})}),_jsx(_components.td,{children:`Application/conversation level`}),_jsx(_components.td,{children:`System/infrastructure level`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Troubleshooting`})}),_jsx(_components.td,{children:`”What did the agent say?\"`}),_jsx(_components.td,{children:`\"Why did the connection fail?”`})]})]})]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Example`}),`: If your agent wasn’t responding, you’d check:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Console log`}),` → “WebSocket connection failed” or “Audio stream error”`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`conversation log`}),` → “Did the user actually say anything?”`]}),`\n`]}),_jsx(_components.p,{children:`Both logs are complementary - conversation logs for conversation analysis and testing, technical logs for system diagnostics!`}),_jsx(Heading,{level:`3`,id:`technical-log-3`,children:`Technical log`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Purpose`}),`: Technical debugging and system monitoring`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Contents`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`WebSocket connection events`}),`\n`,_jsx(_components.li,{children:`Audio stream status`}),`\n`,_jsx(_components.li,{children:`Error messages and stack traces`}),`\n`,_jsx(_components.li,{children:`System-level events (session.created, response.done, etc.)`}),`\n`,_jsx(_components.li,{children:`Network connectivity issues`}),`\n`,_jsx(_components.li,{children:`Audio processing diagnostics`}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Format`}),`: Console output with bracketed prefixes (for example, `,_jsx(_components.code,{children:`[session]`}),`, `,_jsx(_components.code,{children:`[audio]`}),`, `,_jsx(_components.code,{children:`[init]`}),`)`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Use Cases`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Debugging connection problems`}),`\n`,_jsx(_components.li,{children:`Monitoring system performance`}),`\n`,_jsx(_components.li,{children:`Troubleshooting audio issues`}),`\n`,_jsx(_components.li,{children:`Developer/operations analysis`}),`\n`]}),_jsx(Heading,{level:`3`,id:`conversation-log-3`,children:`Conversation log`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Purpose`}),`: Conversation transcript and user experience tracking`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Contents`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Agent and project identification`}),`\n`,_jsx(_components.li,{children:`Session configuration details`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`User transcripts`}),`: “Tell me a story”, “Stop”`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Agent responses`}),`: Full story text and follow-up responses`]}),`\n`,_jsx(_components.li,{children:`Conversation flow and interactions`}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Format`}),`: Plain text, human-readable conversation format`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Use Cases`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Analyzing conversation quality`}),`\n`,_jsx(_components.li,{children:`Reviewing what was actually said`}),`\n`,_jsx(_components.li,{children:`Understanding user interactions and agent responses`}),`\n`,_jsx(_components.li,{children:`Business/content analysis`}),`\n`]})]})}),`\n`,_jsx(_MdxComponentBoundary,{name:`ZoneContent`,children:_jsxs(ZoneContent,{group:`ai-foundry-portal__programming-language-csharp__programming-language-java__programming-language-javascript__programming-language-python`,value:`programming-language-java`,options:[{\"id\":`ai-foundry-portal`,\"title\":`Foundry portal`},{\"id\":`programming-language-python`,\"title\":`Python`},{\"id\":`programming-language-csharp`,\"title\":`C#`},{\"id\":`programming-language-javascript`,\"title\":`JavaScript`},{\"id\":`programming-language-java`,\"title\":`Java`}],values:[`ai-foundry-portal`,`programming-language-python`,`programming-language-csharp`,`programming-language-javascript`,`programming-language-java`],defaultValue:`ai-foundry-portal`,children:[_jsxs(_components.p,{children:[`Learn how to use Voice Live with `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-foundry/agents/overview`,children:`Microsoft Foundry Agent Service`}),` using the VoiceLive SDK for Java.`]}),_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://learn.microsoft.com/java/api/overview/azure/ai-voicelive-readme`,children:`Reference documentation`}),` | `,_jsx(_components.a,{href:`https://central.sonatype.com/artifact/com.azure/azure-ai-voicelive/overview`,children:`Package (Maven)`}),` | `,_jsx(_components.a,{href:`https://aka.ms/voicelive/github-java`,children:`Additional samples on GitHub`})]}),_jsx(_components.p,{children:`You can create and run an application to use Voice Live with agents for real-time voice agents.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Using agents allows leveraging a built-in prompt and configuration managed within the agent itself, rather than specifying instructions in the session code.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Agents encapsulate more complex logic and behaviors, making it easier to manage and update conversational flows without changing the client code.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`The agent approach streamlines integration. The agent ID is used to connect and all necessary settings are handled internally, reducing the need for manual configuration in the code.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`This separation also supports better maintainability and scalability for scenarios where multiple conversational experiences or business logic variations are needed.`}),`\n`]}),`\n`]}),_jsxs(_components.p,{children:[`To use the Voice Live API without Foundry agents, see the `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-services/speech-service/voice-live-quickstart`,children:`Voice Live API quickstart`}),`.`]}),_jsx(Tip,{children:_jsxs(_components.p,{children:[`To use Voice Live, you don’t need to deploy an `,_jsx(_components.strong,{children:`audio`}),` model with your Microsoft Foundry resource. Voice Live is fully managed, and the model is automatically deployed for you. For more information about models availability, see the `,_jsx(_components.a,{href:`/voice-live`,children:`Voice Live overview documentation`}),`.`]})}),_jsx(_components.p,{children:`Follow the quickstart below or get a fully working web app with browser-based voice UI:`}),_jsx(Card,{title:`Voice Live universal assistant sample`,icon:`arrow-right`,href:`https://github.com/microsoft-foundry/voicelive-samples/tree/main/voice-live-universal-assistant`}),_jsx(Heading,{level:`2`,id:`prerequisites-5`,children:`Prerequisites`}),_jsx(Note,{children:_jsxs(_components.p,{children:[`This document refers to the `,_jsx(_components.a,{href:`https://learn.microsoft.com/en-us/azure/ai-foundry/what-is-foundry#microsoft-foundry-portals`,children:`Microsoft Foundry (new)`}),` portal and the latest Foundry Agent Service version.`]})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`An Azure subscription. `,_jsx(_components.a,{href:`https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=msft_learn`,children:`Create one for free`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://learn.microsoft.com/java/azure/jdk/`,children:`Java Development Kit (JDK)`}),` version 11 or later.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://maven.apache.org/download.cgi`,children:`Apache Maven`}),` installed.`]}),`\n`,_jsxs(_components.li,{children:[`The required language runtimes, global tools, and Visual Studio Code extensions as described in `,_jsx(_components.a,{href:`https://learn.microsoft.com/en-us/azure/ai-foundry/how-to/develop/install-cli-sdk`,children:`Prepare your development environment`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`A `,_jsx(_components.a,{href:`/multi-service-resource`,children:`Microsoft Foundry resource`}),` created in one of the supported regions. For more information about region availability, see the `,_jsx(_components.a,{href:`/voice-live`,children:`Voice Live overview documentation`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`A model deployed in Microsoft Foundry. If you don’t have a model, first complete `,_jsx(_components.a,{href:`https://learn.microsoft.com/en-us/azure/foundry/tutorials/quickstart-create-foundry-resources`,children:`Quickstart: Set up Microsoft Foundry resources`}),`.`]}),`\n`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Assign the `,_jsx(_components.code,{children:`Foundry User`}),` role to your user account. You can assign roles in the Azure portal under `,_jsx(_components.strong,{children:`Access control (IAM)`}),` > `,_jsx(_components.strong,{children:`Add role assignment`}),`.`]}),`\n`]}),_jsx(Info,{}),_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[`The Foundry RBAC roles were recently renamed. `,_jsx(_components.strong,{children:`Foundry User`}),`, `,_jsx(_components.strong,{children:`Foundry Owner`}),`, `,_jsx(_components.strong,{children:`Foundry Account Owner`}),`, and `,_jsx(_components.strong,{children:`Foundry Project Manager`}),` were previously named Azure AI User, Azure AI Owner, Azure AI Account Owner, and Azure AI Project Manager. You might still see the previous names in some places while the rename rolls out. The role IDs and core permissions are unchanged by the rename.`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`prepare-the-environment-4`,children:`Prepare the environment`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create a new folder `,_jsx(_components.code,{children:`voice-live-quickstart`}),` and go to the quickstart folder with the following command:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mkdir`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` voice-live-quickstart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026 `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` voice-live-quickstart`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create a file named `,_jsx(_components.strong,{children:`pom.xml`}),` with the following Maven configuration:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`xml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`xml`,children:_jsxs(_components.code,{language:`xml`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`// Source: pom-agent.xml (not available)`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Create the Java source directory structure:`}),`\n`,_jsx(Heading,{level:`1`,id:`windows-2`,children:_jsx(_components.a,{href:`#tab/windows`,children:`Windows`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mkdir`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` src`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\m`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`ain`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\j`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`ava`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`1`,id:`linux-2`,children:_jsx(_components.a,{href:`#tab/linux`,children:`Linux`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mkdir`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -p`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` src/main/java`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`1`,id:`macos-2`,children:_jsx(_components.a,{href:`#tab/macos`,children:`macOS`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mkdir`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -p`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` src/main/java`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Download the Maven dependencies:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mvn`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` dependency:resolve`})]}),`\n`]})})}),`\n`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`retrieve-resource-information-4`,children:`Retrieve resource information`}),_jsx(Note,{children:_jsx(_components.p,{children:`The agent integration requires Entra ID authentication. Key-based authentication isn’t supported in Agent mode.`})}),_jsxs(_components.p,{children:[`Create a new file named `,_jsx(_components.code,{children:`.env`}),` in the folder where you want to run the code.`]}),_jsxs(_components.p,{children:[`In the `,_jsx(_components.code,{children:`.env`}),` file, add the following environment variables for authentication:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# Settings for Foundry Agent`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`PROJECT_ENDPOINT=\u003cendpoint copied from welcome screen>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`AGENT_NAME=\"MyVoiceAgent\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`MODEL_DEPLOYMENT_NAME=\"gpt-4.1-mini\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# Settings for Voice Live`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`AGENT_NAME=\u003cname-used-to-create-agent> # See above`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`AGENT_VERSION=\u003cversion-of-the-agent>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`CONVERSATION_ID=\u003cspecific conversation id to reconnect to>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`PROJECT_NAME=\u003cyour_project_name>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`VOICELIVE_ENDPOINT=\u003cyour_endpoint>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`VOICELIVE_API_VERSION=2026-04-10`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:`Replace the default values with your actual project name, agent name, and endpoint values.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable name`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PROJECT_ENDPOINT`})}),_jsx(_components.td,{children:`The Foundry project endpoint copied from the project welcome screen.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AGENT_NAME`})}),_jsx(_components.td,{children:`The name of the agent to use.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AGENT_VERSION`})}),_jsx(_components.td,{children:`Optional: The version of the agent to use.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CONVERSATION_ID`})}),_jsx(_components.td,{children:`Optional: A specific conversation ID to reconnect to.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PROJECT_NAME`})}),_jsx(_components.td,{children:`The name of your Microsoft Foundry project. Project name is the last element of the project endpoint value.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`VOICELIVE_ENDPOINT`})}),_jsxs(_components.td,{children:[`This value can be found in the `,_jsx(_components.strong,{children:`Keys and Endpoint`}),` section when examining your resource from the Azure portal.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FOUNDRY_RESOURCE_OVERRIDE`})}),_jsxs(_components.td,{children:[`Optional: The Foundry resource name hosting the agent project (for example, `,_jsx(_components.code,{children:`my-resource-name`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AGENT_AUTHENTICATION_IDENTITY_CLIENT_ID`})}),_jsx(_components.td,{children:`Optional: The managed identity client ID of the Voice Live resource.`})]})]})]}),_jsxs(_components.p,{children:[`Learn more about `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-services/authentication`,children:`keyless authentication`}),` and `,_jsx(_components.a,{href:`https://learn.microsoft.com/azure/ai-services/cognitive-services-environment-variables`,children:`setting environment variables`}),`.`]}),_jsx(Heading,{level:`2`,id:`create-an-agent-with-voice-live-settings-4`,children:`Create an agent with Voice Live settings`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create a file `,_jsx(_components.strong,{children:`src/main/java/CreateAgentWithVoiceLive.java`}),` with the following code:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Source: CreateAgentWithVoiceLive.java (not available)`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Sign in to Azure with the following command:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`az`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` login`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Build and run the agent creation script:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mvn`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` compile`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` exec:java`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -Dexec.mainClass=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CreateAgentWithVoiceLive\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -q`})]}),`\n`]})})}),`\n`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`talk-with-a-voice-agent-4`,children:`Talk with a voice agent`}),_jsx(_components.p,{children:`The sample code in this quickstart uses Microsoft Entra ID for authentication as the current integration only supports this authentication method.`}),_jsxs(_components.p,{children:[`The sample connects to Foundry Agent Service by passing `,_jsx(_components.code,{children:`AgentSessionConfig`}),` to `,_jsx(_components.code,{children:`startSession(...)`}),` using these fields:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`agentName`}),`: The agent name to invoke.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`projectName`}),`: The Foundry project containing the agent.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`agentVersion`}),`: Optional pinned version for controlled rollouts. If omitted, the latest version is used.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`conversationId`}),`: Optional conversation ID to continue prior conversation context.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`foundryResourceOverride`}),`: Optional resource name when the agent is hosted on a different Foundry resource.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`authenticationIdentityClientId`}),`: Optional managed identity client ID used with cross-resource agent connections.`]}),`\n`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[`Agent mode in Voice Live doesn’t support key-based authentication for agent invocation. Use Microsoft Entra ID (for example, `,_jsx(_components.code,{children:`AzureCliCredential`}),`) for agent access. Voice Live resource configuration might still include API keys for non-agent scenarios.`]})}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create the `,_jsx(_components.strong,{children:`src/main/java/VoiceLiveWithAgent.java`}),` file with the following code:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Source: VoiceLiveWithAgentV2.java (not available)`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Sign in to Azure with the following command:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`az`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` login`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Build and run the voice assistant:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mvn`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` compile`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` exec:java`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -Dexec.mainClass=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"VoiceLiveWithAgent\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -q`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`You can start speaking with the agent and hear responses. You can interrupt the model by speaking. Enter “Ctrl+C” to quit the conversation.`}),`\n`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`output-4`,children:`Output`}),_jsx(_components.p,{children:`The output of the script is printed to the console. You see messages indicating the status of the connection, audio stream, and playback. The audio is played back through your speakers or headphones.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`29`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`29`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎙️ Basic Foundry Voice Agent with Azure VoiceLive SDK (Agent Mode)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`=================================================================`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`============================================================`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 VOICE ASSISTANT READY`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Start speaking to begin conversation`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Press Ctrl+C to exit`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`============================================================`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 Listening...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🤔 Processing...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`👤 You said:\tHello.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 Ready for next input...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🤖 Agent responded:\tHello! I'm Tobi the agent. How can I assist you today?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 Listening...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🤔 Processing...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`👤 You said:\tWhat are the opening hours of the Eiffel Tower?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🎤 Ready for next input...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`🤖 Agent responded:\tThe Eiffel Tower's opening hours can vary depending on the season and any special events or maintenance. Generally, the Eiffel Tower is open every day of the year, with the following typical hours:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Mid-June to early September: 9:00 AM to 12:45 AM (last elevator ride up at 12:00 AM)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Rest of the year: 9:30 AM to 11:45 PM (last elevator ride up at 11:00 PM)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`These times can sometimes change, so it's always best to check the official Eiffel Tower website or contact them directly for the most up-to-date information before your visit.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Would you like me to help you find the official website or any other details about visiting the Eiffel Tower?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`👋 Voice assistant shut down. Goodbye!`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The program uses Java’s `,_jsx(_components.code,{children:`java.util.logging`}),` framework for technical logs, which are written to the console (stderr) by default. You can configure a logging properties file to redirect output to a file if needed.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`Logger`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` logger`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Logger`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getLogger`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`VoiceLiveWithAgentV2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`class`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getName`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`]})})}),_jsx(_components.p,{children:`The console output includes technical information about the connection to the Voice Live API, audio processing, and session events:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:19,183 INFO Using Azure token credential`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:19,184 INFO Connecting to VoiceLive API with agent config...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:21,847 INFO AudioProcessor initialized with 24kHz PCM16 mono audio`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:21,847 INFO Setting up voice conversation session...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:21,848 INFO Session configuration sent`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:22,174 INFO Audio playback system ready`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:22,174 INFO Voice assistant ready! Start speaking...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:22,384 INFO Session ready`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:22,386 INFO Sending proactive greeting request`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:22,419 INFO Started audio capture`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:22,722 INFO 🤖 Assistant response created`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:26,054 INFO 🤖 Assistant finished speaking`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2026-02-10 18:40:26,074 INFO ✅ Response complete`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`Further, a conversation log file is created in the `,_jsx(_components.code,{children:`logs`}),` folder with the name `,_jsx(_components.code,{children:`conversation_YYYYMMDD_HHmmss.log`}),`. This file contains session metadata and the conversation transcript, including user inputs and agent responses.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`SessionID: sess_1m1zrSLJSPjJpzbEOyQpTL`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`User Input:\tHello.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Agent Audio Response:\tHello! I'm Tobi the agent. How can I assist you today?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`User Input:\tWhat are the opening hours of the Eiffel Tower?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Agent Audio Response:\tThe Eiffel Tower's opening hours can vary depending on the season...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`Here are the key differences between the `,_jsx(_components.a,{href:`#technical-log`,children:`technical log`}),` and the `,_jsx(_components.a,{href:`#conversation-log`,children:`conversation log`}),`:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Aspect`}),_jsx(_components.th,{children:`Conversation Log`}),_jsx(_components.th,{children:`Technical Log`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Audience`})}),_jsx(_components.td,{children:`Business users, content reviewers`}),_jsx(_components.td,{children:`Developers, IT operations`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Content`})}),_jsx(_components.td,{children:`What was said in conversations`}),_jsx(_components.td,{children:`How the system is working`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Level`})}),_jsx(_components.td,{children:`Application/conversation level`}),_jsx(_components.td,{children:`System/infrastructure level`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Troubleshooting`})}),_jsx(_components.td,{children:`”What did the agent say?\"`}),_jsx(_components.td,{children:`\"Why did the connection fail?”`})]})]})]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Example`}),`: If your agent wasn’t responding, you’d check:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Console log`}),` → “WebSocket connection failed” or “Audio stream error”`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`conversation log`}),` → “Did the user actually say anything?”`]}),`\n`]}),_jsx(_components.p,{children:`Both logs are complementary - conversation logs for conversation analysis and testing, technical logs for system diagnostics!`}),_jsx(Heading,{level:`3`,id:`technical-log-4`,children:`Technical log`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Purpose`}),`: Technical debugging and system monitoring`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Contents`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`WebSocket connection events`}),`\n`,_jsx(_components.li,{children:`Audio stream status`}),`\n`,_jsx(_components.li,{children:`Error messages and stack traces`}),`\n`,_jsx(_components.li,{children:`System-level events (session.created, response.done, etc.)`}),`\n`,_jsx(_components.li,{children:`Network connectivity issues`}),`\n`,_jsx(_components.li,{children:`Audio processing diagnostics`}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Format`}),`: Structured logging with timestamps, log levels, and technical details`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Use Cases`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Debugging connection problems`}),`\n`,_jsx(_components.li,{children:`Monitoring system performance`}),`\n`,_jsx(_components.li,{children:`Troubleshooting audio issues`}),`\n`,_jsx(_components.li,{children:`Developer/operations analysis`}),`\n`]}),_jsx(Heading,{level:`3`,id:`conversation-log-4`,children:`Conversation log`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Purpose`}),`: Conversation transcript and user experience tracking`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Contents`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Agent and project identification`}),`\n`,_jsx(_components.li,{children:`Session configuration details`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`User transcripts`}),`: “Tell me a story”, “Stop”`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Agent responses`}),`: Full story text and follow-up responses`]}),`\n`,_jsx(_components.li,{children:`Conversation flow and interactions`}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Format`}),`: Plain text, human-readable conversation format`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Use Cases`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Analyzing conversation quality`}),`\n`,_jsx(_components.li,{children:`Reviewing what was actually said`}),`\n`,_jsx(_components.li,{children:`Understanding user interactions and agent responses`}),`\n`,_jsx(_components.li,{children:`Business/content analysis`}),`\n`]})]})}),`\n`,_jsx(Heading,{level:`2`,id:`related-content`,children:`Related content`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Learn more about `,_jsx(_components.a,{href:`/toolboxes/how-to-voice-agent-integration`,children:`How to build voice agents`})]}),`\n`,_jsxs(_components.li,{children:[`Learn more about `,_jsx(_components.a,{href:`/toolboxes/voice-live-how-to`,children:`How to use the Voice Live API`})]}),`\n`,_jsxs(_components.li,{children:[`See the `,_jsx(_components.a,{href:`/toolboxes/voice-live-api-reference-2026-04-10`,children:`Voice Live API reference`})]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{ZonePivot,ZoneContent,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Quickstart: Voice Agent with Foundry Agent Service (new)","description":"Learn how to create a real-time voice agent with Foundry Agent Service and Voice Live.","sidebarTitle":"Quickstart: Voice Agent with Foundry Agent Service (new)","href":"/toolboxes/voice-live-agents-quickstart"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[145,5233,")=>null;const ZoneContent=()=>null;funct"]]},"mdxExtracts":{"tableOfContents":[{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"Try out Voice Live in the playground","slug":"try-out-voice-live-in-the-playground","depth":2,"children":[]},{"title":"Prerequisites","slug":"prerequisites-2","depth":2,"children":[]},{"title":"Prepare the environment","slug":"prepare-the-environment","depth":2,"children":[]},{"title":"Windows","slug":"windows","depth":1,"children":[]},{"title":"Linux","slug":"linux","depth":1,"children":[]},{"title":"macOS","slug":"macos","depth":1,"children":[]},{"title":"Retrieve resource information","slug":"retrieve-resource-information","depth":2,"children":[]},{"title":"Create an agent with Voice Live settings","slug":"create-an-agent-with-voice-live-settings","depth":2,"children":[]},{"title":"Talk with a voice agent","slug":"talk-with-a-voice-agent","depth":2,"children":[]},{"title":"Output","slug":"output","depth":2,"children":[{"title":"Technical log","slug":"technical-log","depth":3,"children":[]},{"title":"Conversation log","slug":"conversation-log","depth":3,"children":[]}]},{"title":"Prerequisites","slug":"prerequisites-3","depth":2,"children":[]},{"title":"Prepare the environment","slug":"prepare-the-environment-2","depth":2,"children":[]},{"title":"Retrieve resource information","slug":"retrieve-resource-information-2","depth":2,"children":[]},{"title":"Create an agent with Voice Live settings","slug":"create-an-agent-with-voice-live-settings-2","depth":2,"children":[]},{"title":"Talk with a voice agent","slug":"talk-with-a-voice-agent-2","depth":2,"children":[]},{"title":"Output","slug":"output-2","depth":2,"children":[{"title":"Technical log","slug":"technical-log-2","depth":3,"children":[]},{"title":"Conversation log","slug":"conversation-log-2","depth":3,"children":[]}]},{"title":"Prerequisites","slug":"prerequisites-4","depth":2,"children":[]},{"title":"Prepare the environment","slug":"prepare-the-environment-3","depth":2,"children":[]},{"title":"Retrieve resource information","slug":"retrieve-resource-information-3","depth":2,"children":[]},{"title":"Create an agent with Voice Live settings","slug":"create-an-agent-with-voice-live-settings-3","depth":2,"children":[]},{"title":"Talk with a voice agent","slug":"talk-with-a-voice-agent-3","depth":2,"children":[]},{"title":"Output","slug":"output-3","depth":2,"children":[{"title":"Technical log","slug":"technical-log-3","depth":3,"children":[]},{"title":"Conversation log","slug":"conversation-log-3","depth":3,"children":[]}]},{"title":"Prerequisites","slug":"prerequisites-5","depth":2,"children":[]},{"title":"Prepare the environment","slug":"prepare-the-environment-4","depth":2,"children":[]},{"title":"Windows","slug":"windows-2","depth":1,"children":[]},{"title":"Linux","slug":"linux-2","depth":1,"children":[]},{"title":"macOS","slug":"macos-2","depth":1,"children":[]},{"title":"Retrieve resource information","slug":"retrieve-resource-information-4","depth":2,"children":[]},{"title":"Create an agent with Voice Live settings","slug":"create-an-agent-with-voice-live-settings-4","depth":2,"children":[]},{"title":"Talk with a voice agent","slug":"talk-with-a-voice-agent-4","depth":2,"children":[]},{"title":"Output","slug":"output-4","depth":2,"children":[{"title":"Technical log","slug":"technical-log-4","depth":3,"children":[]},{"title":"Conversation log","slug":"conversation-log-4","depth":3,"children":[]}]},{"title":"Related content","slug":"related-content","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"dynamicCss":".mint-my-6 {\n margin-top: 1.5rem;\n margin-bottom: 1.5rem\n}\n.mint-mb-2 {\n margin-bottom: 0.5rem\n}\n.mint-flex {\n display: flex\n}\n.mint-flex-wrap {\n flex-wrap: wrap\n}\n.mint-gap-2 {\n gap: 0.5rem\n}\n.mint-rounded-md {\n border-radius: 0.375rem\n}\n.mint-border {\n border-width: 1px\n}\n.mint-border-b {\n border-bottom-width: 1px\n}\n.mint-border-slate-200 {\n --tw-border-opacity: 1;\n border-color: rgb(226 232 240 / var(--tw-border-opacity, 1))\n}\n.mint-border-slate-900 {\n --tw-border-opacity: 1;\n border-color: rgb(15 23 42 / var(--tw-border-opacity, 1))\n}\n.mint-bg-slate-900 {\n --tw-bg-opacity: 1;\n background-color: rgb(15 23 42 / var(--tw-bg-opacity, 1))\n}\n.mint-bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1))\n}\n.mint-px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem\n}\n.mint-py-1\\.5 {\n padding-top: 0.375rem;\n padding-bottom: 0.375rem\n}\n.mint-pb-3 {\n padding-bottom: 0.75rem\n}\n.mint-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}\n.mint-text-xs {\n font-size: 0.75rem;\n line-height: 1rem\n}\n.mint-font-medium {\n font-weight: 500\n}\n.mint-font-semibold {\n font-weight: 600\n}\n.mint-uppercase {\n text-transform: uppercase\n}\n.mint-tracking-wide {\n letter-spacing: 0.025em\n}\n.mint-text-slate-500 {\n --tw-text-opacity: 1;\n color: rgb(100 116 139 / var(--tw-text-opacity, 1))\n}\n.mint-text-slate-700 {\n --tw-text-opacity: 1;\n color: rgb(51 65 85 / var(--tw-text-opacity, 1))\n}\n.mint-text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1))\n}\n.mint-shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n.mint-transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}\n.hover\\:mint-border-slate-400:hover {\n --tw-border-opacity: 1;\n border-color: rgb(148 163 184 / var(--tw-border-opacity, 1))\n}\n.hover\\:mint-text-slate-950:hover {\n --tw-text-opacity: 1;\n color: rgb(2 6 23 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-border-slate-100:is(.dark *) {\n --tw-border-opacity: 1;\n border-color: rgb(241 245 249 / var(--tw-border-opacity, 1))\n}\n.dark\\:mint-border-slate-700:is(.dark *) {\n --tw-border-opacity: 1;\n border-color: rgb(51 65 85 / var(--tw-border-opacity, 1))\n}\n.dark\\:mint-border-slate-800:is(.dark *) {\n --tw-border-opacity: 1;\n border-color: rgb(30 41 59 / var(--tw-border-opacity, 1))\n}\n.dark\\:mint-bg-slate-100:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1))\n}\n.dark\\:mint-bg-slate-950:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgb(2 6 23 / var(--tw-bg-opacity, 1))\n}\n.dark\\:mint-text-slate-200:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(226 232 240 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-text-slate-400:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(148 163 184 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-text-slate-950:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(2 6 23 / var(--tw-text-opacity, 1))\n}\n.dark\\:hover\\:mint-border-slate-500:hover:is(.dark *) {\n --tw-border-opacity: 1;\n border-color: rgb(100 116 139 / var(--tw-border-opacity, 1))\n}","subdomain":"hobbyist-e43fa225","siteName":"Microsoft Foundry Docs","title":"Quickstart: Voice Agent with Foundry Agent Service (new) - Microsoft Foundry Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-30T18:13:09.609Z","originalFileLocation":"toolboxes/voice-live-agents-quickstart.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Learn how to create a real-time voice agent with Foundry Agent Service and Voice Live.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Microsoft Foundry Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/hobbyist-e43fa225/images/favicon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/hobbyist-e43fa225/images/favicon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/hobbyist-e43fa225/images/favicon.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/hobbyist-e43fa225/images/favicon.png\">\u003cmeta data-mint-head property=\"og:title\" content=\"Quickstart: Voice Agent with Foundry Agent Service (new) - Microsoft Foundry Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Learn how to create a real-time voice agent with Foundry Agent Service and Voice Live.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Microsoft Foundry Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://hobbyist-e43fa225.mintlify.app/toolboxes/voice-live-agents-quickstart\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://hobbyist-e43fa225.mintlify.site/_mintlify/api/og/v2?division=Voice\u0026amp;title=Quickstart%3A+Voice+Agent+with+Foundry+Agent+Service+%28new%29\u0026amp;description=Learn+how+to+create+a+real-time+voice+agent+with+Foundry+Agent+Service+and+Voice+Live.\u0026amp;theme=e49a626887a18a2f133fedd5\u0026amp;signature=3127f15d0b0d355245af12ae4b287e0ab3097823b4dfe0c720d148b1e69d3410\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Quickstart: Voice Agent with Foundry Agent Service (new) - Microsoft Foundry Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Learn how to create a real-time voice agent with Foundry Agent Service and Voice Live.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://hobbyist-e43fa225.mintlify.site/_mintlify/api/og/v2?division=Voice\u0026amp;title=Quickstart%3A+Voice+Agent+with+Foundry+Agent+Service+%28new%29\u0026amp;description=Learn+how+to+create+a+real-time+voice+agent+with+Foundry+Agent+Service+and+Voice+Live.\u0026amp;theme=e49a626887a18a2f133fedd5\u0026amp;signature=3127f15d0b0d355245af12ae4b287e0ab3097823b4dfe0c720d148b1e69d3410\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/hobbyist-e43fa225/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Microsoft Foundry Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0078D4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://hobbyist-e43fa225.mintlify.app/toolboxes/voice-live-agents-quickstart\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/toolboxes/voice-live-agents-quickstart.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://hobbyist-e43fa225.mintlify.app/#organization\",\"name\":\"Microsoft Foundry Docs\",\"url\":\"https://hobbyist-e43fa225.mintlify.app\"},{\"@type\":\"WebSite\",\"@id\":\"https://hobbyist-e43fa225.mintlify.app#website\",\"name\":\"Microsoft Foundry Docs\",\"url\":\"https://hobbyist-e43fa225.mintlify.app\",\"publisher\":{\"@id\":\"https://hobbyist-e43fa225.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://hobbyist-e43fa225.mintlify.app/toolboxes/voice-live-agents-quickstart#webpage\",\"url\":\"https://hobbyist-e43fa225.mintlify.app/toolboxes/voice-live-agents-quickstart\",\"name\":\"Quickstart: Voice Agent with Foundry Agent Service (new)\",\"description\":\"Learn how to create a real-time voice agent with Foundry Agent Service and Voice Live.\",\"dateModified\":\"2026-09-30T18:13:09.609Z\",\"isPartOf\":{\"@id\":\"https://hobbyist-e43fa225.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://hobbyist-e43fa225.mintlify.app/toolboxes/voice-live-agents-quickstart#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://hobbyist-e43fa225.mintlify.app/toolboxes/voice-live-agents-quickstart#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Toolboxes\",\"item\":\"https://hobbyist-e43fa225.mintlify.app/toolboxes/toolbox\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add tools and skills\",\"item\":\"https://hobbyist-e43fa225.mintlify.app/toolboxes/skills\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Other tools\",\"item\":\"https://hobbyist-e43fa225.mintlify.app/toolboxes/function-calling\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Quickstart: Voice Agent with Foundry Agent Service (new)\",\"item\":\"https://hobbyist-e43fa225.mintlify.app/toolboxes/voice-live-agents-quickstart\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://hobbyist-e43fa225.mintlify.app/toolboxes/voice-live-agents-quickstart#article\",\"headline\":\"Quickstart: Voice Agent with Foundry Agent Service (new)\",\"name\":\"Quickstart: Voice Agent with Foundry Agent Service (new)\",\"description\":\"Learn how to create a real-time voice agent with Foundry Agent Service and Voice Live.\",\"url\":\"https://hobbyist-e43fa225.mintlify.app/toolboxes/voice-live-agents-quickstart\",\"mainEntityOfPage\":{\"@id\":\"https://hobbyist-e43fa225.mintlify.app/toolboxes/voice-live-agents-quickstart#webpage\"},\"dateModified\":\"2026-09-30T18:13:09.609Z\",\"publisher\":{\"@id\":\"https://hobbyist-e43fa225.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://hobbyist-e43fa225.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Microsoft Foundry Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Microsoft Foundry Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/toolboxes/voice-live-agents-quickstart.md","siteName":"Microsoft Foundry Docs","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"What is Microsoft Foundry?","pages":[{"title":"What is Microsoft Foundry?","href":"/what-is-microsoft-foundry/what-is-foundry"}]},{"group":"Product and capability map","pages":[{"title":"Microsoft Foundry product and capability map","href":"/product-and-capability-map/capabilities"}]},{"group":"Capability reference","pages":[{"title":"Microsoft Foundry capability reference","href":"/capability-reference/capability-reference"}]},{"group":"Get started","pages":[{"title":"Microsoft Foundry quickstarts","href":"/get-started/quickstarts"},{"title":"Quickstart: Set up Microsoft Foundry resources","href":"/get-started/quickstart-create-foundry-resources"},{"title":"Tutorial: Idea to prototype - Build and evaluate an enterprise agent","href":"/get-started/developer-journey-idea-to-prototype"},{"group":"What do you want to build?","pages":[{"title":"Quickstart: Create a prompt agent","href":"/get-started/prompt-agent"},{"title":"Quickstart: Create a voice-based prompt agent","href":"/get-started/prompt-voice-agent"},{"title":"Quickstart: Get started with Microsoft Foundry SDK","href":"/get-started/get-started-code"},{"title":"Deploy a hosted agent from source code","href":"/get-started/deploy-hosted-agent-code"},{"title":"Use the Microsoft Foundry Skill in coding agents","href":"/get-started/use-microsoft-foundry-skill"},{"title":"What is Toolbox in Microsoft Foundry?","href":"/get-started/toolbox-overview"},{"title":"How to get started with an AI template","href":"/get-started/ai-template-get-started"}]},{"group":"Explore and migrate","pages":[{"title":"Migrate from the Foundry (classic) portal","href":"/get-started/navigate-from-classic"}]}]},{"group":"Developer tools and integrations","pages":[{"title":"Prepare your development environment","href":"/developer-tools-and-integrations/install-cli-sdk"},{"title":"Microsoft Foundry Playgrounds","href":"/developer-tools-and-integrations/concept-playgrounds"},{"title":"FAQ","href":"/developer-tools-and-integrations/toc"},{"group":"Azure Developer CLI","pages":[{"title":"Agent development with the Azure Developer CLI","href":"/developer-tools-and-integrations/cli-agent-development"},{"title":"Install the Azure Developer CLI Foundry extensions","href":"/developer-tools-and-integrations/install-cli-foundry-extensions"},{"title":"Set the Foundry project context for azd commands","href":"/developer-tools-and-integrations/cli-project-context"}]},{"group":"Foundry Toolkit for Visual Studio Code","pages":[{"title":"Microsoft Foundry Toolkit for Visual Studio Code overview","href":"/developer-tools-and-integrations/get-started-projects-visual-studio-code"},{"title":"Install Microsoft Foundry Toolkit for Visual Studio Code","href":"/developer-tools-and-integrations/install-foundry-toolkit-visual-studio-code"},{"title":"Set up a Microsoft Foundry project in Visual Studio Code","href":"/developer-tools-and-integrations/set-up-foundry-project-visual-studio-code"},{"title":"Create an agent with Microsoft Foundry Toolkit for Visual Studio Code","href":"/developer-tools-and-integrations/create-agent-visual-studio-code"},{"title":"Create a prompt agent with Microsoft Foundry Toolkit for Visual Studio Code","href":"/developer-tools-and-integrations/create-prompt-agent-visual-studio-code"},{"title":"Create hosted agents with Microsoft Foundry Toolkit for Visual Studio Code","href":"/developer-tools-and-integrations/vs-code-agents-workflow-pro-code"},{"title":"Use and migrate declarative agent workflows with Microsoft Foundry Toolkit","href":"/developer-tools-and-integrations/vs-code-agents-workflow-low-code"}]},{"group":"Coding agents","pages":[{"title":"Microsoft Foundry Skill example prompts and scenarios","href":"/developer-tools-and-integrations/foundry-skills-scenarios-example-prompts"},{"title":"Use azd ai with coding agents and scripts","href":"/developer-tools-and-integrations/use-cli-with-coding-agents"},{"title":"What is the Foundry Agent Canvas?","href":"/developer-tools-and-integrations/foundry-agent-canvas"},{"title":"Configure Claude Code for Microsoft Foundry","href":"/developer-tools-and-integrations/configure-claude-code"},{"title":"Configure Claude Desktop for Microsoft Foundry","href":"/developer-tools-and-integrations/configure-claude-desktop"}]},{"group":"Develop with LangChain and LangGraph","pages":[{"title":"Get started with LangChain and LangGraph with Foundry","href":"/developer-tools-and-integrations/langchain"},{"title":"Use LangChain with models in Microsoft Foundry","href":"/developer-tools-and-integrations/langchain-models"},{"title":"Use Foundry Content Safety middleware with LangChain","href":"/developer-tools-and-integrations/langchain-middleware"},{"title":"Use LangGraph with the Agent Service","href":"/developer-tools-and-integrations/langchain-agents"},{"title":"Use Foundry Toolbox with LangChain","href":"/developer-tools-and-integrations/langchain-toolbox"},{"title":"Host LangGraph agents as Foundry hosted agents","href":"/developer-tools-and-integrations/langchain-hosted-agents"},{"title":"Use Foundry Memory with LangChain and LangGraph","href":"/developer-tools-and-integrations/langchain-memory"},{"title":"Trace LangChain and LangGraph apps with Microsoft Foundry and Azure Monitor","href":"/developer-tools-and-integrations/langchain-traces"}]},{"group":"Foundry MCP Server (preview)","pages":[{"title":"Get started using Foundry MCP Server with Visual Studio Code","href":"/developer-tools-and-integrations/get-started"},{"title":"Explore Foundry MCP Server best practices and security guidance","href":"/developer-tools-and-integrations/security-best-practices"},{"title":"Explore available tools and example prompts for Foundry MCP Server (preview)","href":"/developer-tools-and-integrations/available-tools"}]},{"group":"Fireworks on Foundry","pages":[{"title":"Fireworks models on Microsoft Foundry","sidebarTitle":"Fireworks models on Microsoft Foundry","href":"/developer-tools-and-integrations/enable-fireworks-models"},{"title":"Import custom models into Microsoft Foundry with Fireworks","href":"/developer-tools-and-integrations/import-custom-models"},{"title":"Fireworks on Microsoft Foundry privacy and compliance FAQ","sidebarTitle":"Fireworks on Microsoft Foundry privacy and compliance FAQ","href":"/developer-tools-and-integrations/privacy-compliance-faq"}]}]},{"group":"Models","pages":[{"title":"Microsoft Foundry Models overview","href":"/models/foundry-models-overview"},{"group":"Explore Foundry Models","pages":[{"title":"Foundry Models sold by Azure","href":"/models/models-sold-directly-by-azure"},{"title":"Foundry Models sold by Azure in Azure Government","href":"/models/models-sold-directly-by-azure-gov"},{"title":"Foundry Models from partners and community","href":"/models/models-from-partners"},{"title":"Hugging Face models in Microsoft Foundry","href":"/models/hugging-face-models"},{"title":"Data, privacy, and security for Foundry Models sold by Azure in Microsoft Foundry","href":"/models/data-privacy"},{"group":"Benchmark models","pages":[{"title":"Model benchmarks and leaderboards in Microsoft Foundry","href":"/models/model-benchmarks"},{"title":"Compare models using the model leaderboard","href":"/models/benchmark-model-in-catalog"},{"title":"Run benchmark evaluations in Microsoft Foundry","href":"/models/benchmark-evaluations"},{"title":"GPT-5 vs GPT-4.1 - choosing the right model for your use case","href":"/models/model-choice-guide"}]},{"group":"Model versions and lifecycle","pages":[{"title":"Model versioning in Microsoft Foundry Models","href":"/models/model-versions"},{"title":"Model versioning in Microsoft Foundry Models in Azure Government","href":"/models/model-versions-gov"},{"title":"Model migration: upgrade or switch models in Microsoft Foundry","href":"/models/model-migration"},{"title":"Azure OpenAI in Microsoft Foundry Models working with models","href":"/models/working-with-models"},{"title":"Foundry Models lifecycle and support policy","href":"/models/model-retirements"},{"title":"Foundry Models lifecycle and support policy in Azure Government","href":"/models/model-retirements-gov"},{"title":"Model retirement schedule","href":"/models/model-retirement-schedule"},{"title":"Model retirement schedule in Azure Government","href":"/models/model-retirement-schedule-gov"},{"title":"Retired Microsoft Foundry Models","href":"/models/retired-models"}]},{"group":"Model Router","pages":[{"title":"How to use model router for Microsoft Foundry","href":"/models/model-router"},{"title":"What's new in model router in Microsoft Foundry Models","href":"/models/whats-new-model-router"},{"title":"Monitor model router in Microsoft Foundry","href":"/models/monitor-model-router"},{"title":"Evaluate model router for your workload","href":"/models/evaluate-model-router"},{"title":"Govern model router deployments with Azure Policy","href":"/models/model-router-policy"},{"title":"Use model router with Foundry agents","href":"/models/model-router-agents"},{"title":"Auto and direct model routing with the Responses API","href":"/models/responses-model-routing"},{"title":"How model router works in Microsoft Foundry","href":"/models/model-router-how-it-works"}]}]},{"group":"Quota limits and region availability","pages":[{"title":"Region availability for Foundry Models sold by Azure","href":"/models/models-sold-directly-by-azure-region-availability"},{"title":"Manage Azure OpenAI in Microsoft Foundry Models quota","href":"/models/quota"},{"title":"Automate Azure OpenAI deployments with quota in Microsoft Foundry","href":"/models/automate-quota-deployments"},{"title":"Azure OpenAI in Microsoft Foundry Models Quotas and Limits","href":"/models/quotas-limits"},{"title":"Azure OpenAI in Microsoft Foundry Models Quotas and Limits in Azure Government","href":"/models/quotas-limits-gov"},{"title":"Feature availability across cloud regions","href":"/models/region-support"}]},{"group":"Offers, deployment types, and pricing","pages":[{"title":"Deployment overview for Microsoft Foundry Models","href":"/models/deployments-overview"},{"title":"Instant access to models in Microsoft Foundry (preview)","href":"/models/instant-models"},{"title":"Managed compute in Microsoft Foundry","href":"/models/managed-compute-overview"},{"title":"Understanding deployment types in Microsoft Foundry Models","href":"/models/deployment-types"},{"title":"Understand deployment types in Microsoft Foundry Models in Azure Government","href":"/models/deployment-types-gov"},{"title":"How to use global batch processing with Azure OpenAI in Microsoft Foundry Models","href":"/models/batch"},{"title":"Use Flex processing with Azure OpenAI in Foundry Models (preview)","href":"/models/flex-processing"},{"title":"Enable priority processing for Microsoft Foundry Models","href":"/models/priority-processing"},{"title":"Plan and Manage Costs","href":"/models/manage-costs"},{"group":"Provisioned throughput","pages":[{"title":"Provisioned throughput for Foundry Models","href":"/models/provisioned-throughput"},{"title":"Provisioned throughput for Foundry Models in Azure Government","href":"/models/provisioned-throughput-gov"},{"title":"Quickstart: Create a provisioned throughput deployment","href":"/models/provisioned-quickstart"},{"title":"Determine PTU sizing for a workload","href":"/models/provisioned-throughput-sizing"},{"title":"Provisioned throughput billing and cost management","href":"/models/provisioned-throughput-billing"},{"title":"Operate provisioned throughput deployments in production","href":"/models/provisioned-get-started"},{"title":"Manage traffic with spillover for provisioned deployments","href":"/models/spillover-traffic-management"}]}]},{"group":"Model deployment","pages":[{"title":"Deploy Microsoft Foundry Models in the Foundry portal","href":"/models/deploy-foundry-models"},{"title":"Deploy models using Azure CLI and Bicep","href":"/models/create-model-deployments"},{"title":"Migrate from GitHub Models to Microsoft Foundry Models","href":"/models/quickstart-github-models"},{"title":"Deploy open-source models with managed compute in Microsoft Foundry","href":"/models/deploy-models-managed"},{"title":"How to troubleshoot your deployments and monitors in Microsoft Foundry portal (classic)","href":"/models/troubleshoot-deploy-and-monitor"},{"title":"Troubleshoot common HTTP errors - Azure OpenAI in Microsoft Foundry","href":"/models/troubleshoot-errors"}]},{"group":"Model support","pages":[{"title":"Azure OpenAI SDK language support","href":"/models/supported-languages"},{"title":"Deploy and use FLUX models in Microsoft Foundry","href":"/models/use-foundry-models-flux"},{"title":"Deploy and use Grok models in Microsoft Foundry","href":"/models/use-foundry-models-grok"},{"group":"Microsoft AI (MAI)","pages":[{"title":"Deploy and use MAI image models in Microsoft Foundry","href":"/models/use-foundry-models-mai-image"},{"title":"Deploy and use MAI-Thinking-1 in Microsoft Foundry","href":"/models/use-foundry-models-mai-thinking"},{"title":"What is MAI-Voice?","sidebarTitle":"What is MAI-Voice?","href":"/models/mai-voices"},{"title":"MAI-Transcribe-2 - Speech Service","sidebarTitle":"MAI-Transcribe-2 - Speech Service","href":"/models/mai-transcribe"}]},{"group":"Anthropic","pages":[{"title":"Claude models in Microsoft Foundry","href":"/models/claude-models"},{"title":"Claude Model Quotas and Rate Limits","href":"/models/claude-models-quotas-limits"},{"title":"Compare hosting options for Claude models in Microsoft Foundry","href":"/models/claude-models-hosting-comparison"},{"title":"Deploy and use Claude models in Microsoft Foundry","href":"/models/use-foundry-models-claude"}]},{"group":"Healthcare AI models","pages":[{"title":"Healthcare AI models in Microsoft Foundry","sidebarTitle":"Healthcare AI models in Microsoft Foundry","href":"/models/healthcare-ai-models"},{"title":"Deploy and use MedImageInsight Premium in Foundry","sidebarTitle":"Deploy and use MedImageInsight Premium in Foundry","href":"/models/deploy-medimageinsight-premium"},{"title":"Deploy and use CxrReportGen Premium in Foundry","sidebarTitle":"Deploy and use CxrReportGen Premium in Foundry","href":"/models/deploy-cxrreportgen-premium"}]}]},{"group":"Develop with AI models","pages":[{"title":"Endpoints for Microsoft Foundry Models","href":"/models/endpoints"},{"title":"Codex with Azure OpenAI in Microsoft Foundry Models","href":"/models/codex"},{"title":"Azure OpenAI in Foundry Models Webhooks","href":"/models/webhooks"},{"group":"Chat completions and Responses APIs","pages":[{"title":"Work with chat completion models","href":"/models/chatgpt"},{"title":"How to use predicted outputs with Azure OpenAI in Microsoft Foundry Models","href":"/models/predicted-outputs"},{"title":"Prompt caching with Azure OpenAI in Microsoft Foundry Models","href":"/models/prompt-caching"},{"title":"Azure OpenAI reasoning models - GPT-6 Astra and GPT-5","href":"/models/reasoning"},{"title":"Microsoft Foundry reasoning models","href":"/models/use-chat-reasoning"},{"group":"Responses API","pages":[{"title":"Use the Azure OpenAI Responses API","href":"/models/responses"},{"title":"How to generate text responses with Microsoft Foundry Models","href":"/models/generate-responses"},{"title":"How to use function calling with Microsoft Foundry Models","href":"/models/function-calling"},{"title":"Use multi-agent orchestration with the Azure OpenAI Responses API","href":"/models/responses-multi-agent"},{"title":"How to use structured outputs with Azure OpenAI in Microsoft Foundry Models","href":"/models/structured-outputs"},{"title":"How to use JSON mode with Azure OpenAI in Microsoft Foundry Models","href":"/models/json-mode"},{"title":"Deep research with the Responses API","href":"/models/deep-research"},{"title":"Use tool search with the Azure OpenAI Responses API","href":"/models/tool-search"},{"title":"Web search with the Responses API","href":"/models/web-search"},{"title":"WebSocket Mode for Azure OpenAI Responses API","href":"/models/websockets"},{"title":"Use the shell tool with the Responses API","href":"/models/shells"},{"title":"Use skills with the Responses API","href":"/models/skills"}]}]},{"group":"Embeddings","pages":[{"title":"Azure OpenAI in Microsoft Foundry Models embeddings tutorial","href":"/models/embeddings"}]}]},{"group":"Model capabilities","pages":[{"group":"Image and video","pages":[{"title":"How to Use Image Generation Models from OpenAI","href":"/models/dall-e"},{"title":"Image prompt engineering techniques","href":"/models/gpt-4-v-prompt-engineering"},{"title":"Azure OpenAI prompt transformation concepts","href":"/models/prompt-transformation"},{"title":"Sora 2 video generation overview (preview)","href":"/models/video-generation"},{"title":"How to use vision-enabled chat models","href":"/models/gpt-with-vision"},{"title":"How to use video translation - Speech service","sidebarTitle":"How to use video translation - Speech service","href":"/models/video-translation-get-started"}]},{"group":"Audio and speech","pages":[{"title":"Quickstart - Get started with Azure OpenAI audio generation","href":"/models/audio-completions-quickstart"},{"title":"Speech to text quickstart","sidebarTitle":"Speech to text quickstart","href":"/models/get-started-speech-to-text"},{"title":"Speech to text with transcription models","href":"/models/whisper-quickstart"},{"title":"Text to speech quickstart - Speech service","sidebarTitle":"Text to speech quickstart - Speech service","href":"/models/get-started-text-to-speech"},{"title":"How to use batch synthesis for text to speech avatar - Speech service","sidebarTitle":"How to use batch synthesis for text to speech avatar - Speech service","href":"/models/batch-synthesis-avatar"},{"title":"Get started with Voice Live for real-time voice agents","sidebarTitle":"Get started with Voice Live for real-time voice agents","href":"/models/voice-live-quickstart"},{"group":"GPT-Live","pages":[{"title":"Use GPT-Live for real-time voice","sidebarTitle":"Use GPT-Live for real-time voice","href":"/models/gpt-live"},{"title":"Use GPT-Live via WebRTC","sidebarTitle":"Use GPT-Live via WebRTC","href":"/models/gpt-live-webrtc"},{"title":"Delegate work in GPT-Live","sidebarTitle":"Delegate work in GPT-Live","href":"/models/gpt-live-delegation"}]}]},{"group":"Realtime API","pages":[{"title":"GPT Realtime 2.x overview","href":"/models/realtime-2"},{"title":"Use the GPT Realtime API for speech and audio with Azure OpenAI","href":"/models/realtime-audio"},{"title":"Use the GPT Realtime API via WebRTC","href":"/models/realtime-audio-webrtc"},{"title":"Use the GPT Realtime API via WebSockets","href":"/models/realtime-audio-websockets"},{"title":"Use the GPT Realtime API via SIP","href":"/models/realtime-audio-sip"},{"title":"Migration from Preview to GA version of Realtime API","href":"/models/realtime-audio-preview-api-migration-guide"},{"title":"GPT Realtime Translate overview","href":"/models/gpt-realtime-translate"},{"title":"GPT Realtime Transcribe overview","href":"/models/gpt-realtime-whisper"}]}]},{"group":"Fine-tuning","pages":[{"title":"Microsoft Foundry fine-tuning considerations","href":"/models/fine-tuning-considerations"},{"title":"Deploy a fine-tuned model","href":"/models/fine-tuning-deploy"},{"title":"Fine-tune AI models in Microsoft Foundry with the Azure Developer CLI fine-tuning extension","href":"/models/fine-tune-cli"},{"title":"Generate synthetic data with Microsoft Foundry (Preview)","href":"/models/data-generation"},{"title":"Safety evaluation for fine-tuning (preview)","href":"/models/fine-tuning-safety-evaluation"},{"title":"Fine-tuning cost management","href":"/models/fine-tuning-cost-management"},{"group":"Fine-tune models","pages":[{"title":"Customize a model with fine-tuning","href":"/models/fine-tuning"},{"group":"Healthcare models","pages":[{"title":"Customize a premium healthcare AI model with fine-tuning","sidebarTitle":"Customize a premium healthcare AI model with fine-tuning","href":"/models/fine-tune-premium-healthcare-models"},{"title":"Fine-tune MedImageInsight Premium in Microsoft Foundry","sidebarTitle":"Fine-tune MedImageInsight Premium in Microsoft Foundry","href":"/models/fine-tune-medimageinsight-premium"},{"title":"Fine-tune CxrReportGen Premium in Microsoft Foundry","sidebarTitle":"Fine-tune CxrReportGen Premium in Microsoft Foundry","href":"/models/fine-tune-cxrreportgen-premium"}]}]},{"group":"Advanced techniques","pages":[{"title":"Vision fine-tuning","href":"/models/fine-tuning-vision"},{"title":"Direct preference optimization","href":"/models/fine-tuning-direct-preference-optimization"},{"title":"Reinforcement fine-tuning","href":"/models/reinforcement-fine-tuning"},{"title":"Fine-tuning function calls with Azure OpenAI in Microsoft Foundry Models","href":"/models/fine-tuning-functions"}]}]},{"group":"Development best practices","pages":[{"title":"Prompt engineering techniques | Microsoft Foundry Models","href":"/models/prompt-engineering"},{"title":"Tutorial: Get started with a DeepSeek reasoning model in Foundry Models","href":"/models/get-started-deepseek-r1"},{"title":"System message design for Azure OpenAI","href":"/models/advanced-prompt-engineering"},{"title":"Azure OpenAI in Microsoft Foundry Models performance \u0026 latency","href":"/models/latency"},{"title":"Integrate Microsoft Foundry with your applications","href":"/models/integrate-with-other-apps"}]}]},{"group":"Agents","pages":[{"title":"What is Microsoft Foundry Agent Service?","href":"/agents/overview"},{"group":"Concepts","pages":[{"title":"Agent development lifecycle in Microsoft Foundry","href":"/agents/development-lifecycle"},{"title":"Agent identity concepts in Microsoft Foundry","href":"/agents/agent-identity"},{"title":"Routines in Foundry Agent Service","href":"/agents/routines"},{"title":"Build a workflow in Microsoft Foundry (Preview)","href":"/agents/workflow"},{"group":"Agent 365","pages":[{"title":"Microsoft Agent 365 integration with Foundry","href":"/agents/agent-365-integration"},{"title":"Grant Agent 365 observability permissions","href":"/agents/grant-agent-365-permissions"}]}]},{"group":"Prompt agents","pages":[{"group":"Text-based agents","pages":[{"group":"Quickstarts","pages":[{"title":"Quickstart: Build agents using the Responses API","href":"/agents/responses-api"}]},{"group":"Build","pages":[{"title":"Use connected Foundry models in Foundry Agent Service","href":"/agents/connected-models"},{"title":"Customize Agent Behavior at Runtime with Structured Inputs","href":"/agents/structured-inputs"},{"title":"Agent applications in Microsoft Foundry","href":"/agents/agent-applications"},{"title":"Configure and share your Microsoft Foundry agent","href":"/agents/configure-agent"},{"title":"Tool best practices for Microsoft Foundry Agent Service","href":"/agents/tool-best-practice"},{"title":"Agent optimizer in Foundry Agent Service overview (preview)","href":"/agents/agent-optimizer-overview"},{"title":"Agent optimizer cost and token usage overview","href":"/agents/agent-optimizer-costs"},{"title":"Quickstart: Optimize a prompt agent (preview)","sidebarTitle":"Quickstart: Optimize a prompt agent (preview)","href":"/agents/quickstart-optimize-prompt-agent"}]},{"group":"Deploy and share","pages":[{"title":"Enable incoming A2A on a Foundry agent","href":"/agents/enable-agent-to-agent-endpoint"},{"title":null,"href":"/agents/use-routines"}]},{"group":"Migrate","pages":[{"title":"Migrate to the new Foundry Agent Service","href":"/agents/migrate"},{"title":"Migrate from Agent Applications to the new Microsoft Foundry agent model","href":"/agents/migrate-agent-applications"},{"title":"Disable creation of classic agents and assistants","href":"/agents/disable-classic-agents"}]}]},{"group":"Voice-first agents","pages":[{"title":"Publish and share a voice-based agent","href":"/agents/voice-agent-channels-publish"},{"title":"Migrate from Voice Live with Foundry Agent Service to Microsoft Foundry voice agents","href":"/agents/migrate-from-voice-live"},{"group":"Build","pages":[{"title":"Configure a voice agent","href":"/agents/configure-voice-agent"},{"title":"Use a hosted agent as the conversation engine in a voice-based agent","href":"/agents/voice-first-with-hosted-agent"},{"title":"Use a subagent in a Voice-based agent","href":"/agents/use-subagent-voice-first-agent"},{"title":"Integrate telephony channels with a voice agent","href":"/agents/voice-agent-telephony-channels"},{"title":"Best practices for voice-based agents","href":"/agents/voice-agent-best-practice"},{"title":"Optimize voice agent instructions","href":"/agents/optimize-voice-agent-instructions"},{"title":"Voice agent tracing, monitoring, and evaluation","href":"/agents/voice-agent-observability"},{"title":"Pricing for voice-based agents","href":"/agents/voice-agent-pricing"}]}]}]},{"group":"Hosted agents","pages":[{"group":"Concepts","pages":[{"title":"Hosted agents in Foundry Agent Service","href":"/agents/hosted-agents"},{"title":"Build with runtime components in Foundry Agent Service","href":"/agents/runtime-components"},{"title":"Hosted agent runtime contract","href":"/agents/hosted-agent-contract"},{"title":"Resilience for long-running Microsoft Foundry hosted agents (preview)","href":"/agents/long-running-agent-resilience"},{"title":"Durable state store for Microsoft Foundry hosted agents (preview)","href":"/agents/agent-state-store"},{"title":"Long-running agent API reference (preview)","href":"/agents/long-running-agent-reference"}]},{"group":"Quickstarts","pages":[{"title":"Quickstart: Deploy your first hosted agent","href":"/agents/quickstart-hosted-agent"},{"title":"Quickstart: Build a toolbox and use it with a hosted agent","href":"/agents/quickstart-toolbox-agent"},{"title":"Quickstart: Add a Foundry IQ knowledge base to a hosted agent with a toolbox","href":"/agents/quickstart-foundry-iq-hosted-agent"},{"title":"Quickstart - Deploy a hosted agent with browser automation","href":"/agents/browser-automation-hosted-agent-quickstart"},{"title":"Quickstart: Give a hosted agent persistent memory","href":"/agents/quickstart-memory-hosted-agent"},{"title":"Quickstart: Evaluate your hosted agent","href":"/agents/quickstart-evaluate-hosted-agent"},{"title":"Quickstart: Optimize a hosted agent (preview)","href":"/agents/quickstart-optimize-hosted-agent"},{"title":"Quickstart: Trace your hosted agent","href":"/agents/quickstart-tracing-hosted-agent"},{"title":"Quickstart: Deploy your own code as a hosted agent","href":"/agents/quickstart-deploy-own-code"},{"title":"Set up CI/CD for a hosted agent","href":"/agents/set-up-cicd-hosted-agent"}]},{"group":"Develop","pages":[{"title":"Initialize a hosted agent project with the Azure Developer CLI","href":"/agents/init-agent-project"},{"title":"Author azure.yaml for hosted agents","href":"/agents/author-azure-yaml"},{"title":"Use a toolbox with a hosted agent in Microsoft Foundry","href":"/agents/use-toolbox-hosted-agent"},{"title":"Configure environment variables for a hosted agent","href":"/agents/configure-hosted-agent-env-variables"},{"title":"Update the model for a hosted agent","href":"/agents/update-hosted-agent-model"},{"title":"Add a protocol adapter to your hosted agent","href":"/agents/add-protocol-adapter"},{"title":"Use on-behalf-of flow with hosted agents in Microsoft Foundry","href":"/agents/use-on-behalf-of-flow"},{"title":"Host Microsoft Agent Framework agents as Foundry hosted agents","href":"/agents/framework-hosted-agents"}]},{"group":"Run, test, and debug","pages":[{"title":"Run a hosted agent locally with the Azure Developer CLI","href":"/agents/run-hosted-agent-locally"},{"title":"Invoke a hosted agent with the Azure Developer CLI","href":"/agents/invoke-hosted-agent"},{"title":"Inspect a local agent with the Agent Inspector","href":"/agents/agent-inspector"},{"title":"Test a hosted agent","href":"/agents/test-hosted-agent"},{"title":"Debug a hosted agent","href":"/agents/debug-hosted-agent"},{"title":"Configure and share your Microsoft Foundry agent","href":"/agents/configure-agent"},{"title":"Diagnose a project with agent doctor","href":"/agents/agent-doctor"},{"title":"Monitor hosted agent logs with the Azure Developer CLI","href":"/agents/monitor-hosted-agent-logs"},{"title":"Export hosted agent telemetry by using OpenTelemetry","href":"/agents/configure-hosted-agent-telemetry"},{"title":"Monitor agents with the Agent Monitoring Dashboard","href":"/agents/how-to-monitor-agents-dashboard"},{"title":"Isolate hosted agent sessions per user","href":"/agents/isolate-sessions-per-user"},{"title":"Multiplex multiple users in one hosted agent session","href":"/agents/multiplex-session-users"},{"title":"Pass isolation keys to a hosted agent","href":"/agents/pass-isolation-keys"},{"title":"Make your hosted agent optimizer-ready in Foundry Agent Service (preview)","href":"/agents/make-agent-optimizer-ready"},{"title":"Create an evaluation dataset and evaluators for the agent optimizer (preview)","href":"/agents/create-optimizer-dataset"},{"title":"Optimize agent instructions, skills, tools, and models in Foundry Agent Service (preview)","href":"/agents/optimize-agent-targets"},{"title":"Optimize agent prompts with Prompt Optimizer (preview)","href":"/agents/prompt-optimizer"}]},{"group":"Build long-running agents (preview)","pages":[{"title":"Deploy a crash-resilient long-running agent (preview)","href":"/agents/deploy-resilient-agent"},{"title":"Deploy a steerable agent (preview)","href":"/agents/deploy-steerable-agent"},{"title":"Recover long-running work after a crash (preview)","href":"/agents/recover-long-running-work"},{"title":"Steer an in-flight agent turn (preview)","href":"/agents/steer-hosted-agent"},{"title":"Cancel a hosted agent turn (preview)","href":"/agents/cancel-hosted-agent-turn"},{"title":"Add a human-in-the-loop approval step (preview)","href":"/agents/add-human-in-the-loop"},{"title":"Stream long-running agent output with reconnect (preview)","href":"/agents/stream-with-reconnect"},{"title":"Manage state for long-running agents (preview)","href":"/agents/manage-task-state"}]},{"group":"Deploy and operate","pages":[{"title":"Deploy a hosted agent","href":"/agents/deploy-hosted-agent"},{"title":"Build a voice agent with hosted agents","href":"/agents/build-voice-agent"},{"title":"Use a hosted agent as the conversation engine in a voice-based agent","href":"/agents/voice-first-with-hosted-agent"},{"title":"Add guardrails to a hosted agent","href":"/agents/add-hosted-agent-guardrails"},{"title":"Manage hosted agents","href":"/agents/manage-hosted-agent"},{"title":"Manage hosted agent sessions","href":"/agents/manage-hosted-sessions"}]},{"group":"Migrate","pages":[{"title":"Migrate from Agent Applications to the new Microsoft Foundry agent model","href":"/agents/migrate-agent-applications"},{"title":"Disable creation of classic agents and assistants","href":"/agents/disable-classic-agents"}]},{"group":"Ship to production","pages":[{"title":"Set up CI/CD for hosted agents with the Azure Developer CLI","href":"/agents/set-up-ci-cd-cli"},{"title":"Promote hosted agents to production with the Azure Developer CLI","href":"/agents/deploy-hosted-agent-production"},{"title":"Deploy a hosted agent with a private Azure Container Registry","href":"/agents/deploy-hosted-agent-private-azure-container-registry"},{"title":"Bring your own registry for hosted agents","href":"/agents/private-registry-connections"},{"title":"Update a hosted agent endpoint and agent card","href":"/agents/update-agent-endpoint-cli"},{"title":"Migrate hosted agents to the latest version","href":"/agents/migrate-hosted-agent-preview"}]},{"group":"Reference","pages":[{"title":"Hosted agent permissions reference","href":"/agents/hosted-agent-permissions"},{"title":"azure.yaml reference for hosted agents","href":"/agents/azure-yaml-reference"},{"title":"agent.yaml schema reference","href":"/agents/agent-yaml-reference"},{"title":"Hosted agent infrastructure with the Azure Developer CLI","href":"/agents/cli-infrastructure"}]}]},{"group":"Autopilots","pages":[{"title":"What is an autopilot in Microsoft Foundry?","href":"/agents/autopilot-overview"},{"title":"Autopilot lifecycle in Microsoft Foundry","href":"/agents/autopilot-lifecycle"},{"title":"Quickstart: Build your first autopilot","href":"/agents/agent-365"}]},{"group":"Publish and share","pages":[{"title":"Publish agents to Microsoft Copilot and Microsoft Teams","href":"/agents/publish-copilot"},{"title":"Publish agents to Microsoft 365 and Teams by using the REST API","href":"/agents/publish-copilot-virtual-network"},{"group":"Troubleshooting","pages":[{"title":"Troubleshoot publishing agents to Microsoft Copilot and Microsoft Teams","href":"/agents/troubleshoot-publish-copilot"},{"title":"Troubleshoot authorization errors for agents published to Microsoft Copilot and Teams","href":"/agents/troubleshoot-publish-copilot-authorization"}]}]},{"group":"Reference","pages":[{"title":"Quotas and limits for Microsoft Foundry Agent Service","href":"/agents/limits-quotas-regions"},{"title":"Foundry Agent Service feature availability in Azure Government","sidebarTitle":"Foundry Agent Service feature availability in Azure Government","href":"/agents/azure-government"},{"title":"Capability hosts for Foundry Agent Service","href":"/agents/capability-hosts"},{"title":"Foundry Agent Service frequently asked questions","href":"/agents/faq"}]}]},{"group":"Toolboxes","pages":[{"title":"Create and manage a toolbox in Microsoft Foundry","href":"/toolboxes/toolbox"},{"title":"Enable tool search in a toolbox","href":"/toolboxes/tool-search"},{"group":"Add tools and skills","pages":[{"title":"Use skills with Microsoft Foundry agents (preview)","href":"/toolboxes/skills"},{"title":"Create a private skill catalog in Foundry Agent Service","href":"/toolboxes/private-skill-catalog"},{"title":"Connect OpenAPI tools to Microsoft Foundry agents","href":"/toolboxes/openapi"},{"title":"File search tool for Microsoft Foundry agents","href":"/toolboxes/file-search"},{"title":"Use Code Interpreter with Microsoft Foundry agents","href":"/toolboxes/code-interpreter"},{"title":"Connect an Azure AI Search index to Foundry agents","href":"/toolboxes/ai-search"},{"group":"MCP","pages":[{"title":"Connect agents to MCP server endpoints","href":"/toolboxes/model-context-protocol"},{"title":"Add managed MCP servers powered by connector namespaces (preview)","href":"/toolboxes/connectors"},{"title":"Set up MCP server authentication","href":"/toolboxes/mcp-authentication"},{"title":"Build and register a Model Context Protocol (MCP) server","href":"/toolboxes/build-your-own-mcp-server"},{"title":"Create a private tool catalog in Foundry Agent Service","href":"/toolboxes/private-tool-catalog"}]},{"group":"A2A","pages":[{"title":"Connect to an A2A agent endpoint from Foundry Agent Service","href":"/toolboxes/agent-to-agent"},{"title":"Agent2Agent (A2A) authentication","href":"/toolboxes/agent-to-agent-authentication"}]},{"group":"Web and Bing tools","pages":[{"title":"Overview of web grounding capabilities in Foundry","href":"/toolboxes/web-overview"},{"title":"Use web search tool in Foundry Agent Service","href":"/toolboxes/web-search"},{"title":"Use Grounding with Bing Search tools with the agents API","href":"/toolboxes/bing-tools"}]},{"group":"Microsoft IQ","pages":[{"title":"Connect agents to Microsoft Fabric with Fabric IQ (preview)","href":"/toolboxes/fabric-iq"},{"title":"Connect agents to Microsoft 365 with Work IQ (preview)","href":"/toolboxes/work-iq"},{"group":"Foundry IQ","pages":[{"title":"What is Foundry IQ?","href":"/toolboxes/what-is-foundry-iq"},{"title":"Foundry IQ frequently asked questions","href":"/toolboxes/foundry-iq-faq"},{"title":"Connect Agents to Foundry IQ Knowledge Bases","href":"/toolboxes/foundry-iq-connect"},{"group":"Tutorial: Deploy private agentic retrieval","pages":[{"title":"Tutorial: Deploy Private Agentic Retrieval","sidebarTitle":"Tutorial: Deploy Private Agentic Retrieval","href":"/toolboxes/foundry-iq-tutorial-private-overview"},{"title":"Set Up Private Inbound Connectivity","sidebarTitle":"Set Up Private Inbound Connectivity","href":"/toolboxes/foundry-iq-tutorial-private-inbound"},{"title":"Set Up Private Outbound Connectivity","sidebarTitle":"Set Up Private Outbound Connectivity","href":"/toolboxes/foundry-iq-tutorial-private-outbound"},{"title":"Validate End-to-End Private Agentic Retrieval","sidebarTitle":"Validate End-to-End Private Agentic Retrieval","href":"/toolboxes/foundry-iq-tutorial-private-retrieval"}]}]}]},{"group":"File search","pages":[{"title":"Retrieval augmented generation (RAG) and indexes in Microsoft Foundry","href":"/toolboxes/retrieval-augmented-generation"},{"title":"Vector stores for file search in Foundry Agent Service","href":"/toolboxes/vector-stores"}]},{"group":"Code interpreter","pages":[{"title":"Configure a custom code interpreter for agents","href":"/toolboxes/custom-code-interpreter"}]},{"group":"Other tools","pages":[{"title":"Use function calling with Microsoft Foundry agents","href":"/toolboxes/function-calling"},{"title":"Reminder tool for self-scheduling hosted agents","href":"/toolboxes/reminder-tool"},{"title":"Use the computer use tool for agents","href":"/toolboxes/computer-use"},{"title":"Use the image generation tool (preview) in Foundry Agent Service","href":"/toolboxes/image-generation"},{"title":"Use the Microsoft Fabric data agent with Foundry agents","href":"/toolboxes/fabric"},{"title":"Use SharePoint with the Foundry Agent Service API","href":"/toolboxes/sharepoint"},{"title":"Integrate Azure Functions with Foundry Agents","sidebarTitle":"Integrate Azure Functions with Foundry Agents","href":"/toolboxes/azure-functions"},{"group":"Browser automation (preview)","pages":[{"title":"Automate browser tasks with Foundry agents","href":"/toolboxes/browser-automation"}]},{"group":"Foundry Tools","pages":[{"title":"Connect Azure Speech in Foundry Tools to an agent","href":"/toolboxes/azure-ai-speech"},{"group":"Azure Language","pages":[{"title":"Azure Language in Foundry Tools - tools and agents","sidebarTitle":"Azure Language in Foundry Tools - tools and agents","href":"/toolboxes/foundry-tools-agents"},{"title":"Quickstart: Multi-turn conversational language understanding (CLU) models with entity slot filling","sidebarTitle":"Quickstart: Multi-turn conversational language understanding (CLU) models with entity slot filling","href":"/toolboxes/quickstart-multi-turn-conversations"},{"title":"Quickstart: Detect the language of text","sidebarTitle":"Quickstart: Detect the language of text","href":"/toolboxes/quickstart"}]},{"group":"Azure Translator","pages":[{"title":"What is Azure Translator document translation?","description":"Learn about Azure Translator document translation for batch and single-file translation while preserving document structure and formatting.","sidebarTitle":"What is Azure Translator document translation?","href":"/toolboxes/overview"}]}]},{"group":"Voice","pages":[{"title":"Quickstart: Voice Agent with Foundry Agent Service (new)","sidebarTitle":"Quickstart: Voice Agent with Foundry Agent Service (new)","href":"/toolboxes/voice-live-agents-quickstart"},{"title":"How to build a voice agent","description":"Learn how to use Voice Live with Foundry Agent Service to build real-time voice agents.","sidebarTitle":"How to build a voice agent","href":"/toolboxes/how-to-voice-agent-integration"}]},{"group":"Memory (preview)","pages":[{"title":"What is Memory?","href":"/toolboxes/what-is-memory"},{"title":"Create and use memory in Foundry Agent Service","href":"/toolboxes/memory-usage"}]}]}]},{"group":"Manage toolbox","pages":[{"title":"Create and manage a toolbox in Microsoft Foundry","href":"/toolboxes/toolbox"},{"title":"Govern MCP Tools by Using an AI Gateway","href":"/toolboxes/governance"},{"title":"Toolbox authentication in Microsoft Foundry","href":"/toolboxes/tool-authentication"},{"title":"Network isolation for a toolbox in Microsoft Foundry","href":"/toolboxes/toolbox-network-isolation"}]}]},{"group":"Observability","pages":[{"title":"Observability in Generative AI","href":"/observability/observability"},{"title":"Troubleshoot evaluation and observability issues - Microsoft Foundry","href":"/observability/troubleshooting"},{"group":"Monitoring","pages":[{"title":"Microsoft Foundry Notification Center overview","href":"/observability/concept-notification-center"},{"title":"Monitor agents with the Agent Monitoring Dashboard","href":"/observability/how-to-monitor-agents-dashboard"},{"title":"Use Insights in Foundry","href":"/observability/agent-insights"},{"title":"Log end user feedback","href":"/observability/log-end-user-feedback"},{"title":"Monitor Model Deployments in Microsoft Foundry Models","href":"/observability/monitor-models"}]},{"group":"Tracing","pages":[{"title":"Agent tracing overview","href":"/observability/trace-agent-concept"},{"title":"Quickstart: Trace your hosted agent","href":"/observability/quickstart-tracing-hosted-agent"},{"title":"Set Up Tracing for AI Agents in Microsoft Foundry","href":"/observability/trace-agent-setup"},{"title":"Configure Microsoft Entra authentication for Foundry Agent trace ingestion (preview)","sidebarTitle":"Configure Microsoft Entra authentication for Foundry Agent trace ingestion (preview)","href":"/observability/trace-ingestion-entra-authentication"},{"title":"Review agent interactions with Trace Replay","href":"/observability/trace-agent-replay"},{"title":"Add client-side tracing to Foundry agents","href":"/observability/trace-agent-client-side"},{"title":"Configure tracing for AI agent frameworks","sidebarTitle":"Configure tracing for AI agent frameworks","href":"/observability/trace-agent-framework"},{"title":"Register external agents for observability and evaluation","href":"/observability/register-external-agent"},{"title":"Convert agent traces into evaluation datasets (preview)","href":"/observability/traces-to-dataset"},{"title":"Annotate traces with human feedback","href":"/observability/trace-annotations"},{"title":"Restrict access to sensitive content in Microsoft Foundry traces","href":"/observability/traces-sensitive-content"},{"title":"Microsoft Foundry Tracing and Data Handling","href":"/observability/trace-data"}]}]},{"group":"Evaluation","pages":[{"title":"Set up permissions for Microsoft Foundry evaluation workflows","href":"/evaluation/evaluation-permissions"},{"title":"Rate limits, region support, and enterprise features for evaluation","href":"/evaluation/evaluation-regions-limits-virtual-network"},{"title":"Configure virtual network support for evaluation in Microsoft Foundry","href":"/evaluation/evaluation-virtual-network"},{"title":"Microsoft Foundry risk and safety evaluations Transparency Note","href":"/evaluation/safety-evaluations-transparency-note"},{"group":"Supported evaluators","pages":[{"title":"Built-in Evaluators Reference","href":"/evaluation/built-in-evaluators"},{"title":"General Purpose Evaluators for Generative AI","href":"/evaluation/general-purpose-evaluators"},{"title":"Textual Similarity Evaluators for Generative AI","href":"/evaluation/textual-similarity-evaluators"},{"title":"Retrieval-Augmented Generation (RAG) Evaluators for Generative AI","href":"/evaluation/rag-evaluators"},{"title":"Risk and Safety Evaluators for Generative AI","href":"/evaluation/risk-safety-evaluators"},{"title":"Agent Evaluators for Generative AI","href":"/evaluation/agent-evaluators"},{"title":"Azure OpenAI Graders for generative AI","href":"/evaluation/azure-openai-graders"},{"title":"Rubric evaluators","href":"/evaluation/rubric-evaluators"},{"title":"Custom Evaluators","href":"/evaluation/custom-evaluators"}]},{"group":"Evaluation datasets","pages":[{"title":"Evaluation datasets in Microsoft Foundry","href":"/evaluation/evaluation-datasets"},{"title":"Evaluation dataset schema in Microsoft Foundry","href":"/evaluation/evaluation-dataset-schema"},{"title":"Generate a synthetic evaluation dataset (preview)","href":"/evaluation/evaluation-dataset-synthetic"}]},{"group":"Run evaluations","pages":[{"title":"Evaluate your AI agents","href":"/evaluation/evaluate-agent"},{"title":"Run evaluations from the Microsoft Foundry portal","href":"/evaluation/evaluate-generative-ai-app"},{"title":"Run agent evaluations with the azd CLI (preview)","href":"/evaluation/azure-developer-cli-evaluation"},{"group":"Run evaluations with the SDK","pages":[{"title":"Introduction to cloud evaluation with Microsoft Foundry SDK","href":"/evaluation/cloud-evaluation"},{"title":"Get cloud evaluation results with the Microsoft Foundry SDK","href":"/evaluation/cloud-evaluation-results"},{"title":"Use admin-connected models in cloud evaluations","href":"/evaluation/evaluate-admin-connected-models"},{"group":"Evaluate individual turns","pages":[{"title":"Evaluate datasets with the Microsoft Foundry SDK","href":"/evaluation/cloud-evaluation-datasets"},{"title":"Evaluate models and agents with the Microsoft Foundry SDK","href":"/evaluation/cloud-evaluation-targets"},{"title":"Evaluate deployed interactions with the Microsoft Foundry SDK","href":"/evaluation/cloud-evaluation-deployed-interactions"},{"title":"Generate synthetic data with the Microsoft Foundry SDK","href":"/evaluation/cloud-evaluation-synthetic-data"}]},{"group":"Evaluate complete conversations","pages":[{"title":"Evaluate conversation datasets with the Microsoft Foundry SDK","href":"/evaluation/cloud-evaluation-conversations"},{"title":"Evaluate deployed model and agent conversations with the Microsoft Foundry SDK","href":"/evaluation/cloud-evaluation-deployed-conversations"},{"title":"Simulate conversations with the Microsoft Foundry SDK","href":"/evaluation/cloud-evaluation-simulate-conversations"}]}]},{"group":"Specialized evaluation workflows","pages":[{"title":"Human Evaluation for Microsoft Foundry Agents","href":"/evaluation/human-evaluation"}]},{"group":"Review and analyze results","pages":[{"title":"See Evaluation Results in Microsoft Foundry portal","href":"/evaluation/evaluate-results"},{"title":"Evaluation Cluster Analysis","href":"/evaluation/cluster-analysis"}]}]},{"group":"AI red teaming","pages":[{"title":"AI Red Teaming Agent","href":"/evaluation/ai-red-teaming-agent"},{"title":"Run AI Red Teaming Agent in the cloud (Microsoft Foundry SDK)","href":"/evaluation/run-ai-red-teaming-cloud"},{"title":"Run AI Red Teaming Agent Locally (Azure AI Evaluation SDK)","href":"/evaluation/run-scans-ai-red-teaming-agent"}]},{"group":"Evaluations in CI/CD pipelines","pages":[{"title":"How to run an evaluation in GitHub Action","href":"/evaluation/evaluation-github-action"},{"title":"How to run an evaluation in Azure DevOps","href":"/evaluation/evaluation-azure-devops"}]}]}]}]},"basePath":"","title":"Quickstart: Voice Agent with Foundry Agent Service (new) - Microsoft Foundry Docs","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":[],"chunks":[]}