How kalliope-project/kalliope works
Kalliope is a configurable personal-assistant framework: signals such as spoken orders, scheduled events, or MQTT messages activate synapses that run neuron actions. The main workflow loads settings and a YAML brain, listens for an input, matches it to synapses, and executes the resulting actions. The graph also preserves speech/trigger and speech-output plugins, REST access, lifecycle hooks, and community-resource management. Some plugin and API wiring is not shown in the excerpts; uncertain links are omitted rather than inferred.
Main entry points: SynapseLauncher.py Synapse launcher · __init__.py CLI entrypoint · order.py Order signal · SettingLoader.py Settings loader
Components 22
Configuration
- CLI entrypoint
kalliope/__init__.py - Settings loader
kalliope/core/ConfigurationManager/SettingLoader.py - YAML loader
kalliope/core/ConfigurationManager/YAMLLoader.py - Brain loader
kalliope/core/ConfigurationManager/BrainLoader.py
Signals and Speech
- Order signal
kalliope/signals/order/order.py - Other signal plugins
kalliope/signals - Trigger plugins
kalliope/trigger - Order listener
kalliope/core/OrderListener.py - Speech recognition
kalliope/stt/SpeechRecognizer.py
Synapse Execution
- Order analyser
kalliope/core/OrderAnalyser.py - Synapse launcher
kalliope/core/SynapseLauncher.py - Synapse execution buffer
kalliope/core/Lifo/LIFOBuffer.py - Neuron launcher
kalliope/core/NeuronLauncher.py - Lifecycle hooks
kalliope/core/HookManager.py
Actions and Audio
- Neuron actions
kalliope/neurons - Text-to-speech module
kalliope/core/TTS/TTSModule.py - Speech synthesis plugins
kalliope/tts - Audio player module
kalliope/core/PlayerModule.py - Audio player plugins
kalliope/players
Interfaces and Extensions
- REST API
kalliope/core/RestAPI/FlaskAPI.py - Community resources
kalliope/core/ResourcesManager.py
Other components
- Assistant user
Connections 23
- Assistant user → CLI entrypoint: starts assistant
- CLI entrypoint → Settings loader: loads settings
kalliope/__init__.py - CLI entrypoint → Brain loader: loads brain
kalliope/__init__.py - Settings loader → YAML loader: parses settings
kalliope/core/ConfigurationManager/SettingLoader.py - Brain loader → Settings loader: reads settings
kalliope/core/ConfigurationManager/BrainLoader.py - Brain loader → YAML loader: parses brain
kalliope/core/ConfigurationManager/BrainLoader.py - CLI entrypoint → Order signal: starts configured signals
kalliope/__init__.py - CLI entrypoint → REST API: starts API
kalliope/__init__.py - Order signal → Trigger plugins: uses trigger
kalliope/signals/order/order.py - Order signal → Order listener: starts listening
kalliope/signals/order/order.py - Order signal → Synapse launcher: routes order
kalliope/signals/order/order.py - Other signal plugins → Synapse launcher: activates synapses
kalliope/signals/mqtt_subscriber/MqttClient.py - Order listener → Speech recognition: uses recognizer
- Synapse launcher → Order analyser: matches order
kalliope/core/SynapseLauncher.py - Synapse launcher → Synapse execution buffer: queues synapses
kalliope/core/SynapseLauncher.py - Synapse launcher → Lifecycle hooks: runs lifecycle hooks
kalliope/core/SynapseLauncher.py - Synapse execution buffer → Neuron launcher: dispatches neurons
kalliope/core/Lifo/LIFOBuffer.py - Neuron actions → Synapse launcher: configured as actions
- Text-to-speech module → Audio player module: selects player
kalliope/core/TTS/TTSModule.py - Audio player module → Audio player plugins: loads audio
kalliope/players/pyalsaaudio/pyalsaaudio.py - Speech synthesis plugins → Text-to-speech module: implements synthesis
kalliope/tts/voicerss/voicerss.py - Community resources → Settings loader: reads settings
kalliope/core/ResourcesManager.py - Community resources → Neuron launcher: runs installer neuron
kalliope/core/ResourcesManager.py