Skip to content

MiMa6/command-orchestra-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

33 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽป Command Orchestra ๐Ÿช„

Welcome to your AI Agent Automation Playground!

๐Ÿงฌ Vision

Build your own living operating system: command your AI Agent with your voice (or text), and watch it orchestrate workflows, open apps, and automate your creative rituals. Speech-2-Action! ๐Ÿ—ฃ๏ธโœจ

๐Ÿš€ FastAPI Backend

The Command Orchestra includes FastAPI backend that allows you to trigger automations from your frontend applications!

Command Orchestra Frontend Screenshot

API will be available at:

API Endpoints

  • POST /api/v1/workout - Trigger workout automations (running, cycling, mobility, gym)
  • POST /api/v1/studio - Launch FL Studio and configure audio
  • POST /api/v1/daily-note - Create daily notes in Obsidian
  • POST /api/v1/voice-command - Process natural language commands
  • GET /api/v1/automations - List all available automations

See API_EXAMPLES.md for detailed usage examples and frontend integration code.

๐Ÿ“ฆ Project Structure

Command-Orchestra/
โ”œโ”€โ”€ .venv/
โ”œโ”€โ”€ requirements.txt
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ API_EXAMPLES.md               # API usage examples and frontend integration
โ”œโ”€โ”€ run_server.py                 # FastAPI server startup script
โ””โ”€โ”€ speech2action/
    โ”œโ”€โ”€ main.py                   # Original CLI application
    โ”œโ”€โ”€ api/                      # NEW: FastAPI backend
    โ”‚   โ”œโ”€โ”€ __init__.py
    โ”‚   โ”œโ”€โ”€ main.py              # FastAPI application
    โ”‚   โ”œโ”€โ”€ routes.py            # API endpoints
    โ”‚   โ”œโ”€โ”€ models.py            # Pydantic models
    โ”‚   โ””โ”€โ”€ middleware.py        # CORS and logging middleware
    โ”œโ”€โ”€ actions/
    โ”‚   โ”œโ”€โ”€ spell_book.py           # Spell definitions and triggers
    โ”‚   โ”œโ”€โ”€ manager_agent.py        # OpenAI Agents implementation
    โ”‚   โ”œโ”€โ”€ obsidian_automation.py  # Obsidian note automation
    โ”‚   โ”œโ”€โ”€ flstudio_automation.py  # FL Studio automation
    โ”‚   โ””โ”€โ”€ __init__.py
    โ”œโ”€โ”€ core/
    โ”‚   โ”œโ”€โ”€ command_parser.py       # Command parsing logic
    โ”‚   โ”œโ”€โ”€ action_dispatcher.py    # Dispatches actions to automations
    โ”‚   โ”œโ”€โ”€ voice_listener.py       # Voice/text input handler
    โ”‚   โ””โ”€โ”€ __init__.py
    โ”œโ”€โ”€ config/
    โ”‚   โ”œโ”€โ”€ settings.py             # Environment/config management
    โ”‚   โ””โ”€โ”€ __init__.py
    โ””โ”€โ”€ __pycache__/

Frontend Repository

๐Ÿ”— Frontend: Command Orchestra Frontend - The React frontend interface for voice and manual trigger command interaction

๐Ÿ› ๏ธ Setup

  1. Clone repo & create venv:
    git clone <repo-url>
    cd Command-Orchestra
    python3 -m venv .venv
    source .venv/bin/activate
  2. Install requirements:
    pip install --upgrade pip
    pip install -r requirements.txt
  3. Configure your Obsidian vault path in .env:
    OBSIDIAN_MAIN_VAULT_PATH=/absolute/path/to/your/main/vault
    OBSIDIAN_EXERCISE_VAULT_PATH=/absolute/path/to/your/exercise/vault
    OPENAI_API_KEY=your_openai_api_key  # Required for Agent mode

๐ŸŽฎ Usage

Option 1: FastAPI Backend (Recommended)

# Start the API server
python run_server.py

# Server runs at http://localhost:8000
# Use with your frontend or make direct API calls

Option 2: Original CLI Mode

# Run the original CLI application
python -m speech2action.main

Play, experiment, and extend โ€” your digital symphony awaits! ๐ŸŽถ

About

Orchestrate life with your voice๐ŸŽป๐Ÿช„

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages