Code samples for Azure AI and Speech Services. Each folder contains a working example with setup instructions.
Note: These implementations are designed for development and testing environments. Review security configurations before production deployment.
Code samples for Azure AI service integrations. Each folder contains a standalone implementation that demonstrates how to solve specific problems with Azure OpenAI, Speech Services, and agent orchestration.
• Working code examples - Clone and run implementations
• Configuration templates - Environment setup for Azure services
• Implementation docs - Technical details and API usage
• Common patterns - Reusable approaches for typical scenarios
| Scenario | Implementation | Status | Technical Features |
|---|---|---|---|
| Text-to-Speech Voice Consistency | Solves voice parameter drift in Azure TTS conversations | ✅ Ready | SSML parameter locking, prosody control, consistent audio output |
| Real-time Speech Transcription | WebSocket-based real-time speech-to-text with GPT-4o | ✅ Ready | WebSocket streaming, audio capture, real-time processing pipeline |
| Scenario | Implementation | Status | Technical Features |
|---|---|---|---|
| Semantic Kernel Multi-Agent Retry Limit | Multi-agent conversation flow with retry logic and termination | ✅ Ready | State management, retry counters, conversation orchestration |
Submit technical scenarios via issues with implementation requirements.
git clone https://github.com/Ricky-G/ai-scenario-hub.git
cd ai-scenario-hubcd <scenario-directory># Configure Azure credentials in .env file
cp .env.template .env # Edit with your service keys
pip install -r requirements.txt
python app.pyRequired services: • Azure Subscription - Setup guide • Azure OpenAI - GPT-4/GPT-4o access required • Azure Speech Services - For TTS scenarios
Development environment: • Python 3.8+ - Download • Azure CLI - Installation
AI Services: • Azure OpenAI (GPT-4, GPT-4o) • Azure Speech Services • Semantic Kernel SDK
Infrastructure: • WebSocket connections • SSML markup • Audio processing (PyAudio) • Async/await patterns
scenario-name/
├── README.md # Implementation guide and API docs
├── app.py # Main application entry point
├── requirements.txt # Python dependencies
└── .env # Service configuration (template)
Implementation patterns: • Each scenario is self-contained with minimal dependencies • Configuration via environment variables • Error handling and logging included • Async patterns for service calls
Service integration:
• Authentication via Azure SDK patterns
• Retry logic for transient failures
• Resource cleanup and connection management
• Environment-specific configuration
Adding scenarios:
- Fork repository
- Create scenario directory with required structure
- Include comprehensive README with technical details
- Test with actual Azure services
- Submit pull request
Code standards: • Python type hints required • Error handling for service calls • Environment configuration patterns • Documentation for public APIs
Technical issues: • GitHub Issues - Bug reports and feature requests • Discussions - Implementation questions
Security: • Review SECURITY.md for vulnerability reporting • Validate configurations before production deployment
MIT License - Open source usage permitted.