How fatehmtd/vasdk works
VASDK is a cross-platform C++ voice-assistant framework: applications assemble typed-frame processors and interchangeable speech, reasoning, and transport providers into a voice loop. The documented path runs from audio input through VAD, turn detection, transcription, LLM/tool dispatch, and speech synthesis to audio output. A separate call-center workflow classifies intent, fills goal slots across turns, confirms actions, and can escalate or resume persisted sessions. The graph also includes Android integration, context, and metrics; unsampled provider wiring is represented only where the README documents it.
Main entry points: TranscriptionProcessor.cpp Transcription · TTSFrameProcessor.cpp Speech Synthesis · LLMProcessor.cpp LLM Reasoning · VADFrameProcessor.cpp Voice Detection
Components 22
Pipeline Runtime
- Audio Input
VASDK/include/VASDK/TransportInputProcessor.h - Pipeline Runtime
VASDK/src/Pipeline.cpp - Audio Output
VASDK/include/VASDK/TransportOutputProcessor.h - Transports
VASDK/src/TransportFactory.cpp
Voice Providers
- Voice Detection
VASDK/src/VADFrameProcessor.cpp - Turn Detection
VASDK/src/TurnDetectionProcessor.cpp - Transcription
VASDK/src/TranscriptionProcessor.cpp - STT Providers
VASDK_3P_IMPL - Speech Synthesis
VASDK/src/TTSFrameProcessor.cpp - TTS Providers
VASDK_3P_IMPL
Agent Features
- LLM Reasoning
VASDK/src/llm/LLMProcessor.cpp - Tool Dispatch
VASDK/src/llm/ToolDispatchProcessor.cpp - Intent Routing
VASDK/src/goal/IntentRouter.cpp - Goal Manager
VASDK/src/goal/GoalManager.cpp - Goal Persistence
VASDK/src/goal/GoalStatePersistence.cpp
Applications
- Call Center App
VASDK_CALLCENTER_APP/callcenter_pipeline.cpp - Android Assistant
VASDK_ANDROID/app/src/main/kotlin/com/vasdk/android/MainActivity.kt - Android Engine
VASDK_ANDROID/app/src/main/kotlin/com/vasdk/android/VasdkEngine.kt - Model Download
VASDK_ANDROID/app/src/main/kotlin/com/vasdk/android/services/ModelDownloadService.kt
Runtime Services
- Context Aggregation
VASDK/src/context/ContextAggregator.cpp - Metrics Reporting
VASDK/src/MetricsReporter.cpp
Other components
- Voice User
Connections 18
- Voice User → Audio Input: speaks to
- Audio Input → Voice Detection: audio frames
- Voice Detection → Turn Detection: detects speech
- Turn Detection → Transcription: detects turn
- Transcription → LLM Reasoning: transcribes for
- Transcription → STT Providers: uses provider
- LLM Reasoning → Tool Dispatch: dispatches tools
- LLM Reasoning → Speech Synthesis: sends response
- Speech Synthesis → TTS Providers: uses provider
- Speech Synthesis → Audio Output: audio frames
- Audio Output → Voice User: plays audio
- Pipeline Runtime → Voice Detection: chains processors
VASDK/src/Pipeline.cpp - Call Center App → Intent Routing: classifies intent
- Intent Routing → Goal Manager: activates goal
- Goal Manager → Goal Persistence: persists session
- Android Assistant → Android Engine: starts engine
VASDK_ANDROID/app/src/main/kotlin/com/vasdk/android/MainActivity.kt - Android Assistant → Model Download: starts download
VASDK_ANDROID/app/src/main/kotlin/com/vasdk/android/MainActivity.kt - Android Engine → Transports: configures transport