File size: 225 Bytes
dff5fe4
 
 
 
 
1
2
3
4
5
import os
import requests
headers = {"xi-api-key": os.getenv("ELEVENLABS_API_KEY")}
voices_response = requests.get("https://api.elevenlabs.io/v1/voices", headers=headers)
print("Available voices:", voices_response.json())