mirror of
https://github.com/PierrunoYT/Kokoro-TTS-Local.git
synced 2025-01-27 02:30:25 +03:00
- Updated setup.ps1 and setup.sh to check for and install the 'uv' package manager if not already present. - Modified virtual environment creation to use 'uv' for consistency across platforms. - Improved activation instructions for the virtual environment in both scripts. - Added FFmpeg installation for Windows and system dependencies for Linux and macOS to ensure all necessary tools are available for TTS functionality. - Streamlined dependency installation process to utilize 'uv' for package management.
32 lines
971 B
PowerShell
32 lines
971 B
PowerShell
# Setup script for Windows
|
|
Write-Host "Setting up Kokoro TTS Local..."
|
|
|
|
# Check if uv is installed
|
|
$uvExists = Get-Command uv -ErrorAction SilentlyContinue
|
|
if (-not $uvExists) {
|
|
Write-Host "Installing uv package manager..."
|
|
iwr -useb https://astral.sh/uv/install.ps1 | iex
|
|
}
|
|
|
|
# Create virtual environment if it doesn't exist
|
|
if (-not (Test-Path "venv")) {
|
|
Write-Host "Creating virtual environment..."
|
|
uv venv
|
|
}
|
|
|
|
# Activate virtual environment
|
|
Write-Host "Activating virtual environment..."
|
|
.\venv\Scripts\Activate.ps1
|
|
|
|
# Install dependencies using uv
|
|
Write-Host "Installing dependencies..."
|
|
uv pip install -r requirements.txt
|
|
|
|
# Install FFmpeg if not already installed (using winget)
|
|
$ffmpegExists = Get-Command ffmpeg -ErrorAction SilentlyContinue
|
|
if (-not $ffmpegExists) {
|
|
Write-Host "Installing FFmpeg..."
|
|
winget install -e --id Gyan.FFmpeg
|
|
}
|
|
|
|
Write-Host "Setup complete! Run '.\venv\Scripts\Activate.ps1' to activate the virtual environment." |