| param( | |
| [string]$Python = "py -3.10" | |
| ) | |
| $ErrorActionPreference = "Stop" | |
| $root = Split-Path -Parent (Split-Path -Parent $MyInvocation.MyCommand.Path) | |
| $venv = Join-Path $root ".venv-habibi" | |
| if (-not (Test-Path $venv)) { | |
| Invoke-Expression "$Python -m venv `"$venv`"" | |
| } | |
| $pythonExe = Join-Path $venv "Scripts\python.exe" | |
| & $pythonExe -m pip install --upgrade pip | |
| & $pythonExe -m pip install -r (Join-Path $root "requirements-habibi.txt") | |
| Write-Host "Habibi-TTS sidecar is ready at $venv" | |
| Write-Host "Use voice id habibi-msa for the Apache-2.0 MSA specialized model." | |