jarvis_dart library

JARVIS Voice Assistant library.

A Dart-based voice assistant that listens for wake words, transcribes speech, generates LLM responses, and speaks them back.

Classes

AppConfig
Configuration loaded from environment variables or YAML file.
AudioInput
Captures audio from microphone using sox rec command.
AudioOutput
Plays audio through speakers using configurable audio player.
ChatMessage
Represents a message in a chat conversation.
ConfigLoader
Loads configuration from various sources.
ConversationContext
Manages conversation history and formatting for LLM interactions.
LlamaProcess
Wrapper for llama.cpp LLM text generation via persistent interactive process.
TtsManager
Text-to-speech manager using sherpa_onnx VITS model.
TtsResult
Result of text-to-speech synthesis.
VADEvent
Event emitted when voice activity state changes.
VoiceActivityDetector
Energy-based voice activity detector.
VoiceAssistant
Voice assistant orchestrator that coordinates all modules.
VoiceAssistantConfig
Configuration for the voice assistant.
WakeWordDetector
Wake word detector using sherpa_onnx keyword spotter.
WakeWordEvent
Event emitted when a wake word is detected.
WhisperProcess
Wrapper for whisper.cpp speech-to-text via process pipe.

Enums

AssistantState
State of the voice assistant.
AudioPlayer
Supported audio players.
VADState
State of voice activity.

Exceptions / Errors

AudioInputException
Exception thrown by AudioInput operations.
AudioOutputException
Exception thrown by AudioOutput operations.
ConfigException
Exception thrown when configuration loading fails.
LlamaException
Exception thrown by LlamaProcess operations.
TtsException
Exception thrown when TTS operations fail.
VoiceAssistantException
Exception thrown when voice assistant operations fail.
WakeWordException
Exception thrown when wake word detection fails.
WhisperException
Exception thrown by WhisperProcess operations.