busy-breakfast-56085
08/05/2025, 3:57 AMtts=elevenlabs.TTS(voice_id=eleven_voice_id,model="eleven_turbo_v2_5",api_key=elevenlabs_api_key,base_url=eleven_base_url),
I am using enterprise creds which are a bit different than normal, I laso have a different base url and have set them up as per docs of agents 1.2.2.
I am getting 403 awith unable to push audio frames error. Whats wierd if i switch back to normal ones it works. I tried to test using elevenlabs library and a dummy text and was able to receive audio.
Any idea how this can be resolved or where I need to look?tall-airline-16756
08/05/2025, 3:57 AMtall-airline-16756
08/05/2025, 3:58 AMbusy-breakfast-56085
08/05/2025, 3:59 AMtall-airline-16756
08/05/2025, 3:59 AMimport aiohttp
import asyncio
async def test_api_key():
async with aiohttp.ClientSession() as session:
async with session.get(
"<https://api.elevenlabs.io/v1/voices>",
headers={"xi-api-key": "your_api_key_here"}
) as resp:
print(f"Status: {resp.status}")
if resp.status != 200:
print(f"Error: {await resp.text()}")
asyncio.run(test_api_key())
Just swap out your_api_key_here with your actual API key. If everything’s good, you’ll get a status of 200 and a list of voices you can use. If not, don’t worry—an error message will help you figure out what’s up.busy-breakfast-56085
08/05/2025, 3:59 AMtall-airline-16756
08/05/2025, 4:00 AMimport aiohttp
import asyncio
async def test_api_key():
async with aiohttp.ClientSession() as session:
async with session.get(
f"{BASE_API_URL}/v1/voices",
headers={"xi-api-key": "your_api_key_here"}
) as resp:
print(f"Status: {resp.status}")
if resp.status != 200:
print(f"Error: {await resp.text()}")
asyncio.run(test_api_key())
Just swap out BASE_API_URL with your EU-specific base URL and pop in your real API key where it says your_api_key_here. This way, your request will go straight to the right regional endpoint for your EU account. If you hit any bumps, I’m here to help!