React library for Microsoft Foundry Voice Live API. Full TypeScript support with optimized presets and configuration helpers.
npm install @iloveagents/foundry-voice-live-react



React hooks and components for Microsoft Foundry Voice Live API. Build real-time voice AI apps with Azure video avatars, Live2D avatars, 3D avatars, audio visualizers, function calling, and TypeScript support.
``bash`
npm install @iloveagents/foundry-voice-live-react
> Region Availability: The default model (gpt-realtime) is only available in East US 2 and Sweden Central regions. Make sure your Azure AI Foundry resource is deployed in one of these regions. See Microsoft docs for current availability.
`tsx
import { useVoiceLive } from '@iloveagents/foundry-voice-live-react';
function App() {
const { connect, disconnect, connectionState, audioStream } = useVoiceLive({
connection: {
resourceName: 'your-foundry-resource', // Azure AI Foundry resource name
apiKey: 'your-foundry-api-key', // For dev only - see "Production" below
},
session: {
instructions: 'You are a helpful assistant.',
},
});
return (
<>
Status: {connectionState}