# Test using direct audio URL instead of text-to-speech Write-Host "🔄 Testing with direct audio URL (bypassing ElevenLabs)..." -ForegroundColor Yellow $audioTestPayload = @{ prompt = "A professional teacher explaining a mathematical concept with clear gestures" elevenlabs_audio_url = "https://www.soundjay.com/misc/sounds/bell-ringing-05.wav" image_url = "https://i.ibb.co/8g4xryvS/531bd0d0c48b.png" guidance_scale = 5.0 audio_scale = 3.5 num_steps = 30 } | ConvertTo-Json -Depth 3 Write-Host "Testing with audio URL instead of TTS..." -ForegroundColor Cyan Write-Host $audioTestPayload -ForegroundColor Gray try { $headers = @{"Content-Type" = "application/json"} $response = Invoke-RestMethod -Uri "https://bravedims-ai-avatar-chat.hf.space/generate" -Method POST -Body $audioTestPayload -Headers $headers -TimeoutSec 120 Write-Host "✅ Success with audio URL!" -ForegroundColor Green $response | ConvertTo-Json -Depth 3 } catch { Write-Host "❌ Still failing: $($_.Exception.Message)" -ForegroundColor Red }