elevenlabs / elevenlabs-js

The official JavaScript (Node) library for ElevenLabs Text to Speech.
https://elevenlabs.io
MIT License
142 stars 15 forks source link

idea: Allow user to pass a `baseUrl` #102

Closed rdvo closed 4 hours ago

rdvo commented 13 hours ago

any chance you could allow this? I wrote a middleware and that would help me a lot if i could just swap my existing code that's using the elevenlabs js sdk to use my middleware url

I see its in the environments file, it pulls the api.us or api. ,and pipes in the domain there for requests

worth a shot

dsinghvi commented 13 hours ago

@rdvo yup -- you can pass in the base url for the environment field

dsinghvi commented 13 hours ago

environment: "your-url"

rdvo commented 12 hours ago

thank you! didnt see it in docs, i see it in the code now tho