File size: 1,072 Bytes
8be8b4b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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
}