File size: 1,199 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
26
27
28
29
30
# 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
}