sickn33/antigravity-awesome-skills/azure-ai-voicelive-dotnet
- 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.
Install
npx vskill@latest install sickn33/antigravity-awesome-skills/azure-ai-voicelive-dotnetSKILL.md
Azure.AI.VoiceLive (.NET)
Real-time voice AI SDK for building bidirectional voice assistants with Azure AI.
Installation
Version scope: Examples are SDK fragments; pin a compatible package and check its API/model availability in the linked Microsoft documentation rather than treating these examples as a current version list.
Environment Variables
Authentication
Microsoft Entra ID (Recommended)
Required Role: Cognitive Services User (assign in Azure Portal → Access control)
API Key
Client Hierarchy
Voice and tool boundaries
Obtain applicable microphone/recording/transmission consent, select an approved Azure resource/region and bound session duration/costs. Model-provided tool arguments are untrusted: validate schema, allowlist operations, and require authorization for external effects. Do not place secrets in instructions/logs or treat a function definition as an executed integration. Reconfigure the session after adding tools; exact audio formats/rates depend on the pinned model and SDK.
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 |
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/azure-ai-voicelive-dotnet/SKILL.md
Popularity
- Repository stars
- 28,558
- Repository forks
- 4,790
- Repository npm downloads, 7 days
- 10,247
- 7-day trend score
- 73
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 30 Mar 2026, 7 months ago.
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/sickn33/antigravity-awesome-skills/azure-ai-voicelive-dotnet)