Skip to content

Install Miles On Windows

Anthony Hayward edited this page Apr 7, 2024 · 13 revisions

🚀 Download and Install Guide (Windows Simplified Install)

Open powershell to start, as admin, then paste every line below in order:

When prompted to restart your computer or Powershell window, YOU MUST DO IT OR NOTHING WILL WORK

  1. Install Chocolatey:

    Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
    
  2. Restart PowerShell (Admin)

    Nothing will work unless you do this.

  3. Install Python 3.11:

    Set-ExecutionPolicy RemoteSigned
    
    choco install python --version=3.11 -y
    
  4. Install ffmpeg:

    choco install ffmpeg
    
  5. Create Virtual Environment:
    Navigate to C Drive:

    cd C:\
    

    Create Miles-env:

    python -m venv Miles-env
    

    Navigate into Miles-env:

    cd Miles-env
    
  6. Activate Virtual Environment:

    .\Scripts\Activate
    
  7. Install Git:

    choco install git -y
    
  8. Install Node.js and npm:

    choco install nodejs -y
    

Restart your computer. NOTHING WILL WORK UNLESS YOU DO THIS.

After restarting, you'll need to reopen PowerShell as Admin, navigate back to your Miles-env, and reactivate the virtual environment:

cd C:\Miles-env
.\Scripts\Activate
  1. Clone the Repo:

    git clone https://github.com/small-cactus/M.I.L.E.S.git
    
  2. Run App:
    Navigate and download dependencies one at a time, then run the app with npm:

cd C:\Miles-env\M.I.L.E.S\Miles-V2

Install requirements:

pip install -r requirements.txt

Install electron with:

npm install

Once those are all done installing, you can start the app with:

npm start
  1. Project Config:
    Follow on-screen instructions for setup. You will need:
    • OpenAI API key
    • Other necessary details as prompted.

🔄 To Run the Project Again

  1. Open PowerShell as Admin

  2. Navigate to Project Directory:

    cd C:\Miles-env\M.I.L.E.S\Miles-V2
    
  3. Activate Virtual Environment:

    .\Scripts\Activate
    
  4. Start Project with npm:

    npm start
    

⚠️ Quick Fix for Known Issue: Audio Bitrate Mismatch

  1. Open Control Panel:
    Windows key + R, type control, press Enter.

  2. Navigate to Sound Settings:
    Sound > Recording tab.

  3. Select and Adjust Your Microphone:
    Properties > Advanced tab > Select high-quality format.

  4. Apply Changes and Restart Miles.