Spaces:
Running
Running
| # Script to get ElevenLabs voice IDs | |
| Write-Host "Getting ElevenLabs Voice IDs..." -ForegroundColor Yellow | |
| # You'll need your ElevenLabs API key for this | |
| $apiKey = Read-Host "Enter your ElevenLabs API Key (or press Enter to skip)" | |
| if ($apiKey) { | |
| try { | |
| $headers = @{ | |
| "xi-api-key" = $apiKey | |
| "Content-Type" = "application/json" | |
| } | |
| $response = Invoke-RestMethod -Uri "https://api.elevenlabs.io/v1/voices" -Headers $headers -Method GET | |
| Write-Host "`n✅ Available Voices:" -ForegroundColor Green | |
| foreach ($voice in $response.voices) { | |
| Write-Host "Name: $($voice.name)" -ForegroundColor Cyan | |
| Write-Host "ID: $($voice.voice_id)" -ForegroundColor White | |
| Write-Host "Category: $($voice.category)" -ForegroundColor Gray | |
| Write-Host "Description: $($voice.description)" -ForegroundColor Gray | |
| Write-Host "---" -ForegroundColor DarkGray | |
| } | |
| } catch { | |
| Write-Host "❌ Error getting voices: $($_.Exception.Message)" -ForegroundColor Red | |
| } | |
| } else { | |
| Write-Host "Skipping API call - showing default voice IDs instead" -ForegroundColor Yellow | |
| } | |