$ErrorActionPreference = 'Continue' $root = Split-Path -Parent $PSScriptRoot Set-Location $root Write-Host "=== StreamerVirtualTikTok: comprobacion ===" -ForegroundColor Cyan if ($PSVersionTable.PSVersion.Major -lt 5) { Write-Warning 'Se recomienda PowerShell 5.1 o posterior.' } foreach ($name in @('node','npm','py','python','ollama')) { $cmd = Get-Command $name -ErrorAction SilentlyContinue if ($null -ne $cmd) { Write-Host "[OK] $name -> $($cmd.Source)" -ForegroundColor Green } else { Write-Host "[FALTA] $name no esta en PATH" -ForegroundColor Yellow } } if(Test-Path '.venv\Scripts\python.exe') { Write-Host '[OK] Entorno Python instalado' -ForegroundColor Green } else { Write-Host '[PENDIENTE] Entorno .venv (ejecuta instalar.ps1)' -ForegroundColor Yellow } Write-Host '[INFO] WebSocket integrado en Node.js 22.4+; no necesitas dependencia ws.' $config = Get-Content 'config.json' -Raw | ConvertFrom-Json $voice = Join-Path $root "voices\$($config.piper.voice).onnx" if(Test-Path $voice) { Write-Host '[OK] Voz Piper descargada' -ForegroundColor Green } else { Write-Host '[PENDIENTE] Voz Piper (descargar_voz.ps1)' -ForegroundColor Yellow } try { $response = Invoke-RestMethod -Uri "$($config.ollama.baseUrl)/api/tags" -TimeoutSec 3 -ErrorAction Stop Write-Host '[OK] Ollama responde en localhost' -ForegroundColor Green } catch { Write-Host '[PENDIENTE] Ollama no responde; abre la aplicacion Ollama.' -ForegroundColor Yellow } Write-Host "[MANUAL] Comprueba TikFinity, VNyan, OBS y el acceso de tu cuenta a LIVE." Write-Host "[MANUAL] Comprueba que LIVE Studio acepte OBS Virtual Camera (video) y el audio de tu PC por separado."