Skip to content

Latest commit

 

History

History
175 lines (147 loc) · 5.55 KB

File metadata and controls

175 lines (147 loc) · 5.55 KB

Deliberate AI - GitHub Preparation Summary

This document summarizes all changes made to prepare the project for GitHub.

Files Removed

Test & Debug Files (no longer needed)

  • debug_kokoro.py - Debug script for Kokoro
  • play_test_audio.py - TTS test script
  • start_debug.py - Debug launcher
  • test_tts_audio.py - Audio test script
  • test_voices.py - Voice test script
  • tts_client_simple.py - Legacy simple TTS client

Test Data Files

  • test_input_climate.txt - Test input file
  • Iran_War_test.txt - Test input file
  • simulation_test_output.txt - Test output file
  • errors_20260317.json - Old error log
  • errors_20260318.json - Old error log

Duplicate Voice Files (moved to voices/)

  • en_US-amy-medium.onnx - Duplicate in root
  • en_US-amy-medium.onnx.json - Duplicate in root

Old Documentation (consolidated into README.md)

  • README_PYQT6.md - Migrated to main README
  • HOW_IT_WORKS.md - Migrated to main README
  • IMPLEMENTATION_SUMMARY.md - Migrated to main README
  • METHODOLOGY.md - Migrated to main README
  • TTS_IMPLEMENTATION.md - Migrated to main README

Files Created

Installation Scripts

  • install.bat - Windows installer script

    • Creates virtual environment
    • Installs all dependencies
    • Downloads Kokoro voice models
    • Configures the application
  • start.bat - Application launcher

    • Activates virtual environment
    • Runs sos.py
    • Provides helpful error messages

Voice Download Script

  • scripts/download_voices.py - Downloads Kokoro voice models from HuggingFace
    • Downloads kokoro-v1.0.onnx
    • Downloads voices-v1.0.bin
    • Handles errors gracefully
    • Falls back to on-demand download

Documentation

  • LICENSE - Apache License 2.0
  • settings.example.json - Template configuration file
  • README.md - Comprehensive new README with:
    • Project overview
    • Quick start guide
    • Installation instructions
    • Configuration details
    • Usage guide
    • Troubleshooting
    • Architecture overview

Dependencies

  • requirements.txt - Updated with all dependencies:
    • PyQt6 (GUI)
    • openai (LLM integration)
    • pyyaml, pypdf2 (text processing)
    • requests (HTTP)
    • kokoro, torch, scipy, sounddevice, soundfile, misaki (TTS)
    • loguru (logging)

Files Modified

Core Application Files

  • settings.json - Cleaned with generic values for new users
  • .gitignore - Enhanced to exclude all unnecessary files

Search Module

  • search.py - Made search URL configurable from settings

TTS Client

  • tts_client.py - Added:
    • WAV file output to output/tts_audio/
    • Automatic cleanup of old files (24+ hours)
    • GPU/CPU auto-detection

UI

  • ui.py - Updated to:
    • Use configurable search settings
    • Clean up TTS files on app close
    • Support search configuration in settings dialog

Project Structure (Final)

Deliberate_AI_Github/
├── src/                          (future - not yet created)
│   ├── sos.py
│   ├── pipeline.py
│   ├── ui.py
│   ├── search.py
│   ├── error_tracker.py
│   └── tts_client.py
├── scripts/
│   ├── download_voices.py
│   └── (future install.sh for Linux/Mac)
├── voices/                       (gitignored)
├── output/                       (gitignored)
├── logs/                         (gitignored)
├── reports/                      (gitignored)
├── saved_sessions/               (gitignored)
├── LICENSE                       Apache 2.0
├── README.md                     Main documentation
├── requirements.txt              All dependencies
├── settings.json                 User configuration
├── settings.example.json         Template config
├── .gitignore                    Git ignore rules
├── install.bat                   Windows installer
└── start.bat                     Application launcher

What's Included in GitHub Push

✅ Will Be Included

  • All source code (.py files)
  • requirements.txt
  • README.md
  • LICENSE
  • settings.example.json
  • install.bat
  • start.bat
  • scripts/download_voices.py
  • .gitignore

❌ Will Be Excluded (via .gitignore)

  • venv/ - Virtual environment
  • voices/ - Voice models (downloaded on install)
  • output/ - Generated audio files
  • logs/ - Error logs
  • reports/ - Generated reports
  • saved_sessions/ - Chat sessions
  • *.onnx - Voice model files
  • *.wav, *.mp3 - Audio files
  • __pycache__/ - Python cache
  • .ruff_cache/ - Linter cache
  • errors_*.json - Error logs

Key Features for New Users

  1. Simple Installation: Just run install.bat
  2. Automatic Voice Download: Kokoro voices downloaded during install
  3. Clear Configuration: settings.example.json as template
  4. Comprehensive Documentation: Single README.md with everything
  5. Apache 2.0 License: Permissive, business-friendly license
  6. Windows-Only: Focused initially on Windows platform

Next Steps

  1. Test Installation: Run install.bat on clean Windows machine
  2. Test Application: Run start.bat and verify all features
  3. Test TTS: Verify voice download and audio generation
  4. Test Search: Configure and test SearXNG integration
  5. Push to GitHub: Ready for clean repository push

Notes

  • All test/debug files removed - clean production code
  • Documentation consolidated - single comprehensive README
  • Voice models downloaded on install - not in repository
  • Settings generic - ready for new user configuration
  • Apache 2.0 license - matches Kokoro TTS license
  • Windows-only for now - can add Linux/Mac support later