Overview
The Synheart Emotion Dart/Flutter SDK provides real-time emotion inference from biosignals for cross-platform mobile applications.Installation
Add topubspec.yaml:
Requirements
- Flutter >= 3.10.0
- Dart >= 3.0.0
Quick Start
Basic Usage
Real-Time Integration
API Reference
EmotionEngine
Methods:
| Method | Description | Returns |
|---|---|---|
fromPretrained(config) | Load pretrained model | EmotionEngine |
push({hr, rrIntervalsMs, timestamp}) | Push biosignal data | void |
consumeReady() | Get ready results | List<EmotionResult> |
EmotionConfig
Parameters:
| Parameter | Type | Default |
|---|---|---|
window | Duration | 60 seconds |
step | Duration | 5 seconds |
EmotionResult
Properties:
| Property | Type | Description |
|---|---|---|
emotion | Emotion | Detected emotion |
confidence | double | Confidence (0-1) |
timestamp | DateTime | When inferred |
Resources
- pub.dev: synheart_emotion
- Repository: synheart-emotion-dart
- Full README: View on GitHub
Author: Israel Goytom