dan-gearscodeandfire/little_timmy

My AI cohost and companion, all code to be included, 6 different python environments and two esp32 arduino sketches

Python

2

75 commits

updated Mar 12, 2026

See the code

README

Little Timmy

Voice-enabled AI assistant with persistent vector memory, GPU-accelerated speech processing, and intelligent context retrieval.

⚑ Professional-grade performance: 2.4s response time (47% faster after optimization)

🎯 For New Agents/Developers - Start Here!

To understand this project, read these documents in order:

  1. πŸ“– SYSTEM_ARCHITECTURE.md - Complete system overview, component diagram, and data flow
  2. πŸ› οΈ DEVELOPMENT_GUIDE.md - Development workflow, Git operations, and environment setup
  3. πŸ“Š Performance & Optimization: βœ… All optimizations complete!
  4. πŸ“‚ Component READMEs:

Repository Location:

\\wsl.localhost\Ubuntu-20.04\home\gearscodeandfire\timmy-backend\little-timmy\

πŸš€ Quick Start

Launch All Services (Easiest)

Double-click:

testing-interface\START_CONTROL_PANEL.bat

Then open http://localhost:5555 and start services.

Manual Launch

See DEVELOPMENT_GUIDE.md for individual service startup commands.

⚑ Performance

Professional-grade conversational AI response times achieved through comprehensive optimization:

MetricBeforeAfterImprovement
Total Response Time4.6s2.4s47% faster
HTTP Latency2070ms6ms99.7% faster
Memory Storage640ms473ms26% faster
Vector Retrieval50ms28msAlready optimal

Key Achievements:

  • βœ… HTTP connection pooling across all services
  • βœ… Optimized memory storage (metadata reuse + batch DB inserts)
  • βœ… Discovered vector retrieval already optimal (no FAISS needed!)
  • βœ… Complete latency tracking and analysis system

Read the full story: OPTIMIZATION_JOURNEY_COMPLETE.md

πŸ“¦ Repository Structure

little-timmy/
β”œβ”€β”€ stt-server-v17/              # Speech-to-Text (faster-whisper + CUDA)
β”œβ”€β”€ tts-server/                  # Text-to-Speech (Piper + CUDA)
β”œβ”€β”€ v34/                         # LLM Preprocessor (GLiClass + Memory)
β”œβ”€β”€ testing-interface/           # Service Control Panel
β”œβ”€β”€ esp32_phoneme_to_jaw_openness/  # Hardware control (Arduino)
β”œβ”€β”€ SYSTEM_ARCHITECTURE.md       # 🎯 START HERE for overview
β”œβ”€β”€ DEVELOPMENT_GUIDE.md         # Development workflow
└── README.md                    # This file

βš™οΈ System Components

STT Server (Port 8888)

  • Real-time speech recognition with faster-whisper
  • GPU-accelerated transcription
  • Echo cancellation during TTS playback
  • Custom whisper models for accuracy

TTS Server (Port 5051)

  • Natural voice synthesis with Piper
  • GPU-accelerated with CUDA/ONNX Runtime
  • Custom voice model (skeletor_v1)
  • Coordinates with STT to prevent echo

LLM Preprocessor (Port 5050)

  • Ollama-based conversation AI
  • Vector memory with PostgreSQL + pgvector
  • GLiClass zero-shot classification
  • Smart context retrieval
  • Web chat interface

Service Control Panel (Port 5555)

  • Web-based management interface
  • Start/stop all services
  • Real-time log streaming
  • Status monitoring

🎯 Key Features

βœ… Voice-to-Voice AI - Speak naturally, hear responses
βœ… Persistent Memory - Remembers conversations across sessions
βœ… Smart Retrieval - GLiClass classification + vector similarity
βœ… GPU Accelerated - Fast transcription and synthesis
βœ… Zero Echo - Proper coordination prevents feedback loops
βœ… Easy Management - One-click control panel
βœ… Production Ready - Error handling, logging, monitoring

πŸ”§ Technical Stack

  • Python 3.11 - Core language
  • CUDA 12.x - GPU acceleration
  • faster-whisper - STT engine
  • Piper TTS - TTS engine
  • Ollama - LLM backend (llama3.2:3b)
  • GLiClass - Zero-shot classification
  • PostgreSQL + pgvector - Vector memory
  • Flask + SocketIO - Web framework
  • PyAudio + sounddevice - Audio I/O

πŸ“Š Performance

  • Voice Response: ~5-9 seconds end-to-end
  • STT Latency: 2-4 seconds
  • LLM Generation: 1-3 seconds
  • TTS Synthesis: <1 second
  • GPU Usage: RTX 3060 or equivalent

🌐 Network Topology

All services run on 192.168.1.154 (this machine):

  • Windows services: STT, TTS, Ollama, Control Panel
  • WSL services: v34 LLM Preprocessor
  • External: ESP32 display at 192.168.1.110:8080

Communication via localhost (STT↔TTS, v34↔Ollama) and LAN (v34↔TTS).

πŸ“ Common Tasks

Starting Everything

# Launch control panel
testing-interface\START_CONTROL_PANEL.bat
# Then visit http://localhost:5555

Making Changes

# Edit files in WSL location
cd ~/timmy-backend/little-timmy
# Make your changes
git add .
git commit -m "Your message"
git push origin main

Debugging

  • Control panel shows real-time logs
  • Service logs in testing-interface/logs/
  • Debug mode flags: --debug or --ai

πŸ› Known Issues

  • ⚠️ Log file permissions on WSL filesystem (handled gracefully)
  • ⚠️ Control panel cleanup requires signal handlers (fixed)
  • ⚠️ Old Windows copy at C:\Users\dsm27\little_timmy (TODO: delete)

πŸŽ“ Learning Resources

🀝 Contributing

This is a personal project, but follows standard Git workflow:

  1. Make changes in WSL repository
  2. Test with control panel
  3. Commit and push to GitHub

πŸ“œ License

MIT License - See v34/LICENSE for details

πŸ† Project Status

Status: βœ… Production Ready
Last Updated: November 27, 2025
Version: v34 (LLM), v17 (STT), v2 (TTS)


Repository: https://github.com/dan-gearscodeandfire/little_timmy
Maintainer: Dan (gearscodeandfire)

dan-gearscodeandfire/little_timmy

My AI cohost and companion, all code to be included, 6 different python environments and two esp32 arduino sketches

Python

2

75 commits

updated Mar 12, 2026

See the code

README

Little Timmy

Voice-enabled AI assistant with persistent vector memory, GPU-accelerated speech processing, and intelligent context retrieval.

⚑ Professional-grade performance: 2.4s response time (47% faster after optimization)

🎯 For New Agents/Developers - Start Here!

To understand this project, read these documents in order:

  1. πŸ“– SYSTEM_ARCHITECTURE.md - Complete system overview, component diagram, and data flow
  2. πŸ› οΈ DEVELOPMENT_GUIDE.md - Development workflow, Git operations, and environment setup
  3. πŸ“Š Performance & Optimization: βœ… All optimizations complete!
  4. πŸ“‚ Component READMEs:

Repository Location:

\\wsl.localhost\Ubuntu-20.04\home\gearscodeandfire\timmy-backend\little-timmy\

πŸš€ Quick Start

Launch All Services (Easiest)

Double-click:

testing-interface\START_CONTROL_PANEL.bat

Then open http://localhost:5555 and start services.

Manual Launch

See DEVELOPMENT_GUIDE.md for individual service startup commands.

⚑ Performance

Professional-grade conversational AI response times achieved through comprehensive optimization:

MetricBeforeAfterImprovement
Total Response Time4.6s2.4s47% faster
HTTP Latency2070ms6ms99.7% faster
Memory Storage640ms473ms26% faster
Vector Retrieval50ms28msAlready optimal

Key Achievements:

  • βœ… HTTP connection pooling across all services
  • βœ… Optimized memory storage (metadata reuse + batch DB inserts)
  • βœ… Discovered vector retrieval already optimal (no FAISS needed!)
  • βœ… Complete latency tracking and analysis system

Read the full story: OPTIMIZATION_JOURNEY_COMPLETE.md

πŸ“¦ Repository Structure

little-timmy/
β”œβ”€β”€ stt-server-v17/              # Speech-to-Text (faster-whisper + CUDA)
β”œβ”€β”€ tts-server/                  # Text-to-Speech (Piper + CUDA)
β”œβ”€β”€ v34/                         # LLM Preprocessor (GLiClass + Memory)
β”œβ”€β”€ testing-interface/           # Service Control Panel
β”œβ”€β”€ esp32_phoneme_to_jaw_openness/  # Hardware control (Arduino)
β”œβ”€β”€ SYSTEM_ARCHITECTURE.md       # 🎯 START HERE for overview
β”œβ”€β”€ DEVELOPMENT_GUIDE.md         # Development workflow
└── README.md                    # This file

βš™οΈ System Components

STT Server (Port 8888)

  • Real-time speech recognition with faster-whisper
  • GPU-accelerated transcription
  • Echo cancellation during TTS playback
  • Custom whisper models for accuracy

TTS Server (Port 5051)

  • Natural voice synthesis with Piper
  • GPU-accelerated with CUDA/ONNX Runtime
  • Custom voice model (skeletor_v1)
  • Coordinates with STT to prevent echo

LLM Preprocessor (Port 5050)

  • Ollama-based conversation AI
  • Vector memory with PostgreSQL + pgvector
  • GLiClass zero-shot classification
  • Smart context retrieval
  • Web chat interface

Service Control Panel (Port 5555)

  • Web-based management interface
  • Start/stop all services
  • Real-time log streaming
  • Status monitoring

🎯 Key Features

βœ… Voice-to-Voice AI - Speak naturally, hear responses
βœ… Persistent Memory - Remembers conversations across sessions
βœ… Smart Retrieval - GLiClass classification + vector similarity
βœ… GPU Accelerated - Fast transcription and synthesis
βœ… Zero Echo - Proper coordination prevents feedback loops
βœ… Easy Management - One-click control panel
βœ… Production Ready - Error handling, logging, monitoring

πŸ”§ Technical Stack

  • Python 3.11 - Core language
  • CUDA 12.x - GPU acceleration
  • faster-whisper - STT engine
  • Piper TTS - TTS engine
  • Ollama - LLM backend (llama3.2:3b)
  • GLiClass - Zero-shot classification
  • PostgreSQL + pgvector - Vector memory
  • Flask + SocketIO - Web framework
  • PyAudio + sounddevice - Audio I/O

πŸ“Š Performance

  • Voice Response: ~5-9 seconds end-to-end
  • STT Latency: 2-4 seconds
  • LLM Generation: 1-3 seconds
  • TTS Synthesis: <1 second
  • GPU Usage: RTX 3060 or equivalent

🌐 Network Topology

All services run on 192.168.1.154 (this machine):

  • Windows services: STT, TTS, Ollama, Control Panel
  • WSL services: v34 LLM Preprocessor
  • External: ESP32 display at 192.168.1.110:8080

Communication via localhost (STT↔TTS, v34↔Ollama) and LAN (v34↔TTS).

πŸ“ Common Tasks

Starting Everything

# Launch control panel
testing-interface\START_CONTROL_PANEL.bat
# Then visit http://localhost:5555

Making Changes

# Edit files in WSL location
cd ~/timmy-backend/little-timmy
# Make your changes
git add .
git commit -m "Your message"
git push origin main

Debugging

  • Control panel shows real-time logs
  • Service logs in testing-interface/logs/
  • Debug mode flags: --debug or --ai

πŸ› Known Issues

  • ⚠️ Log file permissions on WSL filesystem (handled gracefully)
  • ⚠️ Control panel cleanup requires signal handlers (fixed)
  • ⚠️ Old Windows copy at C:\Users\dsm27\little_timmy (TODO: delete)

πŸŽ“ Learning Resources

🀝 Contributing

This is a personal project, but follows standard Git workflow:

  1. Make changes in WSL repository
  2. Test with control panel
  3. Commit and push to GitHub

πŸ“œ License

MIT License - See v34/LICENSE for details

πŸ† Project Status

Status: βœ… Production Ready
Last Updated: November 27, 2025
Version: v34 (LLM), v17 (STT), v2 (TTS)


Repository: https://github.com/dan-gearscodeandfire/little_timmy
Maintainer: Dan (gearscodeandfire)