How alshell7/vokaturi-android works
Main Components
a) Application Layer
• Android App Component (Demo Application)
• UI Elements (PlayPauseButton, MainActivity)
• Resource Files (layouts, drawables)
b) Library Layer (VokaturiAndroid)
• Java Interface Layer
• Native Layer (JNI Bridge)
• Vokaturi Core Engine
c) External Systems
• Android Audio System
• File System (WAV files)
Component Relationships
┌─ Android Application Layer ─────────────────────┐
• ┌─ UI Components ─┐ ┌─ Audio Recording ─┐ │
• MainActivity │ │ WavAudioRecorder │ │
• PlayPauseButton│ └──────────┬────────┘ │
• ┬────────┘ │ │
• ┼────────────────────────┼───────────┤
• ┌─ Vokaturi Library Layer ──────┼───────┐ │
• ┌────┴─────────────────────┐ │ │ │
• Java Interface Layer │ │ │ │
• Vokaturi.java │◄┘ │ │
• EmotionProbabilities │ │ │
• VokaturiException │ │ │
• ┬──────────────┘ │ │
• ┌──────────┴──────────────┐ │ │
• JNI Bridge Layer │ │ │
• vokaturi-lib.cpp │ │ │
• ┬──────────────┘ │ │
• ┌──────────┴──────────────┐ │ │
• Vokaturi Core Engine │ │ │
• Emotion Analysis │ │ │
• Speech Processing │ │ │
• ┘ │ │
• ┘ │
• ┘
Data Flow Indicators
• Audio input flow from device to library
• Control flow from UI to library
• Emotion analysis results flow back to UI
• File system interactions for WAV files
Important Elements to Highlight
a) Key Processes:
• Voice Recording Flow
• Emotion Analysis Pipeline
• Async Processing Path
b) Core Components:
• Emotion Recognition Engine
• WAV File Processing
• Real-time Analysis
Technical Details
• Supported Android API levels (15+)
• File format support (WAV only)
• Core emotion types (Neutral, Happy, Sad, Angry, Feared)
• Permission requirements (RECORD_AUDIO, WRITE_EXTERNAL_STORAGE)