Skip to content

About

client for the Strawberry AI. Local mode, hub syncing, and easily extended tools.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Strawberry AI - Spoke

Voice assistant spoke/client for the Strawberry AI platform. For the hub, see ai-hub.

Quick Start

# 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

Configuration

  1. Environment setup: Copy .env.example to .env and fill in your API keys:

    cp .env.example .env

    Then edit .env with your actual API keys and settings.

  2. Device configuration: Edit config/settings.yaml for device-specific settings (device name, skills path, etc.) and config/tensorzero.toml for LLM configuration.

Running

CLI

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.

GUI UI

The full graphical interface with chat history and voice controls.

# Run GUI
strawberry-gui
# Or via python
python -m strawberry.ui.gui_v2

Voice in GUI: Click the microphone icon to toggle voice listening.

Settings CLI

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.backend

Tests

strawberry-test -h  # See how to use the test command
# Or via python
python -m pytest

Core Components

  • 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).

Project Structure

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

Common Installation Options

  • 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 Installation

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

Notes

  • 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_agnostic for the global default and per-server device_agnostic in mcp_config.json for overrides.

TODO

About

client for the Strawberry AI. Local mode, hub syncing, and easily extended tools.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages