Closed cahyosubroto closed 4 months ago
When install Node JS SDK, I encounter an error.
Steps to reproduce:
> start > tsx src/index.ts
xxx\node_modules\elevenlabs\api\resources\pronunciationDictionary\client\Client.js:98 throw new errors.ElevenLabsError({ ^
ElevenLabsError: Status code: 400 Body: { "detail": { "status": "Unable to parse lexicon file", "message": "Unable to parse lexicon file. Lexicon file formatted incorrectly" } } at PronunciationDictionary. xxx\node_modules\elevenlabs\api\resources\pronunciationDictionary\client\Client.js:98:31) at Generator.next () at fulfilled (xxx\node_modules\elevenlabs\api\resources\pronunciationDictionary\client\Client.js:31:58) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { statusCode: 400, body: { detail: { status: 'Unable to parse lexicon file', message: 'Unable to parse lexicon file. Lexicon file formatted incorrectly' } } }
Node.js v18.16.0
@cahyosubroto this looks like an issue with the lexicon file or the core API -- i'm going to close this issue since issues here are generally scoped to the TypeScript SDK!
lexicon file
When install Node JS SDK, I encounter an error.
Steps to reproduce:
xxx\node_modules\elevenlabs\api\resources\pronunciationDictionary\client\Client.js:98 throw new errors.ElevenLabsError({ ^
ElevenLabsError: Status code: 400 Body: { "detail": { "status": "Unable to parse lexicon file", "message": "Unable to parse lexicon file. Lexicon file formatted incorrectly" } } at PronunciationDictionary. xxx\node_modules\elevenlabs\api\resources\pronunciationDictionary\client\Client.js:98:31)
at Generator.next ()
at fulfilled (xxx\node_modules\elevenlabs\api\resources\pronunciationDictionary\client\Client.js:31:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
statusCode: 400,
body: {
detail: {
status: 'Unable to parse lexicon file',
message: 'Unable to parse lexicon file. Lexicon file formatted incorrectly'
}
}
}
Node.js v18.16.0