Closed TowhidKashem closed 2 months ago
Hi Towhid! In my tests, the language_code
parameter ended up being an issue that led to an error.
I see this in the source code: https://github.com/elevenlabs/elevenlabs-js/blob/da57b8790e985de26ab27ed6acab0c9f854aaa97/src/api/resources/textToSpeech/client/requests/TextToSpeechRequest.ts#L37C9-L37C207
Can you please try to either change the model being used or remove the parameter and see if the API works? I understand this is suboptimal UX, and if that's the fix, I will make sure that we track better error messages from the client, and have better examples!
Hi Towhid! In my tests, the
language_code
parameter ended up being an issue that led to an error.I see this in the source code: https://github.com/elevenlabs/elevenlabs-js/blob/da57b8790e985de26ab27ed6acab0c9f854aaa97/src/api/resources/textToSpeech/client/requests/TextToSpeechRequest.ts#L37C9-L37C207
Can you please try to either change the model being used or remove the parameter and see if the API works? I understand this is suboptimal UX, and if that's the fix, I will make sure that we track better error messages from the client, and have better examples!
I ended up using the rest api, but before that had tried various things including removing those additional optional options and had the same issue. Anyway if it's not happening for you consider it closed.
Hi,
Just trying to run a very basic example in node but running into this error:
eleven-test.mjs:
running it from the terminal like: