Overview
The Savants Real-Time Voice API provides a simple and secure way to add real-time, two-way voice conversations to your Flutter Windows desktop application.Prerequisites
Before you begin, ensure you have:- Flutter development environment set up
- Windows desktop application (target platform)
- Valid API credentials from The Savants
- Basic understanding of WebSocket connections
Install Dependencies
Add these packages to yourpubspec.yaml:
pubspec.yaml
Environment Setup
1. Create Environment File
Create a.env file in your project root:
.env
2. Configure Assets
Add to yourpubspec.yaml:
pubspec.yaml
3. Load Environment Variables
main.dart
Security Best Practices
Environment Variables
Use
.env files and never commit credentials to version controlAPI Key Protection
Store
DEVICE_API_KEY securely - treat it as a secret credentialLocal Storage
Use encrypted local storage for desktop applications when needed
Git Ignore
Always add
.env to your .gitignore file