Voice assistant spoke/client for the Strawberry AI platform. For the hub, see ai-hub.
# From the repo root
python3 -m venv .venv
source .venv/bin/activate
# Install options (choose one)
pip install -e "ai-pc-spoke" # CLI only
pip install -e "ai-pc-spoke[ui]" # CLI + GUI (recommended)
pip install -e "ai-pc-spoke[picovoice,silero]" # CLI + voice
pip install -e "ai-pc-spoke[all]" # Everything (stable set)
pip install -e "ai-pc-spoke[all_neutts]" # Everything + NeuTTS from GitHub
# Or from inside ai-pc-spoke/
pip install ".[all]" # Stable set
pip install ".[all_neutts]" # Stable set + NeuTTS from GitHub-
Environment setup: Copy
.env.exampleto.envand fill in your API keys:cp .env.example .env
Then edit
.envwith your actual API keys and settings. -
Device configuration: Edit
config/settings.yamlfor device-specific settings (device name, skills path, etc.) andconfig/tensorzero.tomlfor LLM configuration.
The unified CLI supports interactive chat, one-shot messages, settings, and developer tools.
strawberry-cli # Interactive chat (default)
strawberry-cli "What time is it?" # One-shot message
strawberry-cli --settings # Settings menu
strawberry-cli skill-tester # Skill interaction tester (human)
strawberry-cli skill-tester --agent # Skill tester (AI agent JSON-line)Voice in CLI: Type /voice to toggle voice mode.
The full graphical interface with chat history and voice controls.
# Run GUI
strawberry-gui
# Or via python
python -m strawberry.ui.gui_v2Voice in GUI: Click the microphone icon to toggle voice listening.
Manage settings from the command line without launching a full UI.
strawberry-cli --settings list
strawberry-cli --settings show voice_core
strawberry-cli --settings get voice_core stt.backend
strawberry-cli --settings set voice_core stt.backend whisper
strawberry-cli --settings apply
strawberry-cli --settings edit voice_core stt.order
strawberry-cli --settings reset voice_core stt.backendstrawberry-test -h # See how to use the test command
# Or via python
python -m pytest- SpokeCore: Handles chat, skills, hub communication, and agent orchestration.
- VoiceCore: Runs the voice pipelines (listening pipeline and speaking pipeline).
- UI: CLI/GUI frontends that interact with SpokeCore and/or VoiceCore.
- VoiceInterface: Voice-only example UI that wires VoiceCore and SpokeCore together (in
ui/voice_interface/). - SettingsManager: Centralized configuration with namespace isolation, schema-driven validation, and reactive updates (see SETTINGS.md).
ai-pc-spoke/
├── src/strawberry/ # Main package
│ ├── spoke_core/ # SpokeCore - LLM, chat, and skill services
│ ├── ui/ # User interfaces
│ │ ├── qt/ # Qt-based GUI
│ │ ├── cli/ # Unified CLI (chat, settings, tools)
│ │ └── voice_interface/ # Voice-only interface (example)
│ ├── voice/ # Voice processing
│ │ ├── stt/ # Speech-to-text (Leopard, etc.)
│ │ ├── tts/ # Text-to-speech (Orca, Pocket, etc.)
│ │ ├── vad/ # Voice activity detection (Silero)
│ │ ├── wakeword/ # Wake word detection (Porcupine)
│ │ ├── audio/ # Audio I/O and playback
│ │ ├── pipeline/ # Conversation orchestration
│ │ ├── controller.py # VoiceController (VoiceCore)
│ │ └── state.py # Voice state machine
│ ├── shared/settings/ # SettingsManager, schema, storage
│ ├── skills/ # Skill loading and sandbox execution
│ └── hub/ # Hub client for remote ops
├── config/ # Config files (settings.yaml, tensorzero.toml)
├── skills/ # User skill files
└── tests/ # Test suite
- CLI only:
pip install -e "ai-pc-spoke"(no UI, no voice) - CLI + GUI:
pip install -e "ai-pc-spoke[ui]" - CLI + Voice:
pip install -e "ai-pc-spoke[picovoice,silero]" - Everything (stable):
pip install -e "ai-pc-spoke[all]"(recommended) - Everything + NeuTTS:
pip install -e "ai-pc-spoke[all_neutts]"
NeuTTS is available, but some environments fail to build/install it from PyPI.
To keep pip install -e "ai-pc-spoke[all]" reliable, NeuTTS is opt-in.
- Install NeuTTS from GitHub extra:
pip install -e "ai-pc-spoke[neutts_git]" - Or install with everything:
pip install -e "ai-pc-spoke[all_neutts]"
After install, set the TTS backend order to include neutts first (already the default in this repo):
strawberry-cli --settings set voice_core tts.order "neutts,pocket,orca,piper,google"
strawberry-cli --settings apply- Validate config/.env regeneration flows (create examples only; never ship secrets).
- Ensure system prompt is configurable via settings (
settings_schema.py). - Confirm skills re-register after brief Hub disconnects.
- Allow user-provided MCP tool descriptions in
mcp_config.json. - MCP-generated skills are device-agnostic by default; use
skills.mcp_skill.default_device_agnosticfor the global default and per-serverdevice_agnosticinmcp_config.jsonfor overrides.
- Add TTS Engines
- Add wakeword https://github.com/frymanofer/Python_WakeWordDetection
- Consider Claude Code Damage Control for code generation
- Better code search (https://blog.cloudflare.com/code-mode-mcp/) or Claude Tool search
- Qwen LLM fallback