girishkvs/constraining-agent-procedures/azure-ai-voicelive-dotnet
Claude Code and agent skill by girishkvs/constraining-agent-procedures
- community
Checking that the SKILL.md file is still in the repository.
Azure AI Voice Live SDK for .NET. Build real-time voice AI applications with bidirectional WebSocket communication. Use for voice assistants, conversational AI, real-time speech-to-speech, and voice-enabled chatbots. Triggers: "voice live", "real-time voice", "VoiceLiveClient", "VoiceLiveSession", "voice assistant .NET", "bidirectional audio", "speech-to-speech".
Install
npx vskill@latest install girishkvs/constraining-agent-procedures/azure-ai-voicelive-dotnetSKILL.md
The same SKILL.md was published earlier as girishkvs/constraining-agent-procedures/azure-ai-voicelive-dotnet.
Azure.AI.VoiceLive (.NET)
Real-time voice AI SDK for building bidirectional voice assistants with Azure AI.
Installation
Current Versions: Stable v1.0.0, Preview v1.1.0-beta.1
Environment Variables
Authentication
Microsoft Entra Token Credential
Required Role: Cognitive Services User (assign in Azure Portal → Access control)
API Key
Client Hierarchy
Core Workflow
1. Start Session and Configure
2. Process Events
3. Send User Message
4. Function Calling
Voice Options
| Voice Type | Class | Example | |
|---|---|---|---|
| Azure Standard | AzureStandardVoice | "en-US-AvaNeural" | |
| Azure HD | AzureStandardVoice | "en-US-Ava:DragonHDLatestNeural" | |
| Azure Custom | AzureCustomVoice | Custom voice with endpoint ID |
Supported Models
| Model | Description | |
|---|---|---|
gpt-4o-realtime-preview | GPT-4o with real-time audio | |
gpt-4o-mini-realtime-preview | Lightweight, fast interactions | |
phi4-mm-realtime | Cost-effective multimodal |
Key Types Reference
| Type | Purpose | |
|---|---|---|
VoiceLiveClient | Main client for creating sessions | |
VoiceLiveSession | Active WebSocket session | |
VoiceLiveSessionOptions | Session configuration | |
AzureStandardVoice | Standard Azure voice provider | |
AzureSemanticVadTurnDetection | Voice activity detection | |
VoiceLiveFunctionDefinition | Function tool definition | |
UserMessageItem | User text message | |
FunctionCallOutputItem | Function call response | |
SessionUpdateResponseAudioDelta | Audio chunk event | |
SessionUpdateResponseTextDelta | Text chunk event |
Best Practices
- Always set both modalities — Include
TextandAudiofor voice assistants - Use `AzureSemanticVadTurnDetection` — Provides natural conversation flow
- Configure appropriate silence duration — 500ms typical to avoid premature cutoffs
- Use `using` statement — Ensures proper session disposal
- Handle all event types — Check for errors, audio, text, and function calls
- Use DefaultAzureCredential — Never hardcode API keys
Error Handling
Audio Configuration
- Input Format:
InputAudioFormat.Pcm16(16-bit PCM) - Output Format:
OutputAudioFormat.Pcm16 - Sample Rate: 24kHz recommended
- Channels: Mono
Related SDKs
| SDK | Purpose | Install | |
|---|---|---|---|
Azure.AI.VoiceLive | Real-time voice (this SDK) | dotnet add package Azure.AI.VoiceLive | |
Microsoft.CognitiveServices.Speech | Speech-to-text, text-to-speech | dotnet add package Microsoft.CognitiveServices.Speech | |
NAudio | Audio capture/playback | dotnet add package NAudio |
Reference Links
| Resource | URL | |
|---|---|---|
| NuGet Package | https://www.nuget.org/packages/Azure.AI.VoiceLive | |
| API Reference | https://learn.microsoft.com/dotnet/api/azure.ai.voicelive | |
| GitHub Source | https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.VoiceLive | |
| Quickstart | https://learn.microsoft.com/azure/ai-services/speech-service/voice-live-quickstart |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcorpus/microsoft/skills/.github/plugins/azure-sdk-dotnet/skills/azure-ai-voicelive-dotnet/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/girishkvs/constraining-agent-procedures/azure-ai-voicelive-dotnet)