Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bun support #87

Open
hexxt-git opened this issue Sep 20, 2024 · 2 comments
Open

bun support #87

hexxt-git opened this issue Sep 20, 2024 · 2 comments

Comments

@hexxt-git
Copy link

i can't express enough my disappointment when i found out this library doesn't support bun

4 |  */
5 | Object.defineProperty(exports, "__esModule", { value: true });
6 | exports.ElevenLabsError = void 0;
7 | class ElevenLabsError extends Error {
8 |     constructor({ message, statusCode, body }) {
9 |         super(buildMessage({ message, statusCode, body }));
            ^
error: This function is only supported in node environments. bun is not supported
      at new ElevenLabsError (/home/hexxt/Documents/GitHub/Artificial-Intelligence-Agent/node_modules/elevenlabs/errors/ElevenLabsError.js:9:9)
      at /home/hexxt/Documents/GitHub/Artificial-Intelligence-Agent/node_modules/elevenlabs/wrapper/play.js:33:19
      at /home/hexxt/Documents/GitHub/Artificial-Intelligence-Agent/node_modules/elevenlabs/wrapper/play.js:8:71
      at new Promise (:1:11)
      at /home/hexxt/Documents/GitHub/Artificial-Intelligence-Agent/node_modules/elevenlabs/wrapper/play.js:4:12
      at play (/home/hexxt/Documents/GitHub/Artificial-Intelligence-Agent/node_modules/elevenlabs/wrapper/play.js:31:12)
      at /home/hexxt/Documents/GitHub/Artificial-Intelligence-Agent/tts.js:44:9
@dsinghvi
Copy link
Collaborator

@hexxt-git want to submit a PR here to allow it for bun https://github.com/elevenlabs/elevenlabs-js/blob/main/src/wrapper/play.ts ? This only applies to the play function

@hexxt-git
Copy link
Author

@hexxt-git want to submit a PR here to allow it for bun https://github.com/elevenlabs/elevenlabs-js/blob/main/src/wrapper/play.ts ? This only applies to the play function

not really up to work for free to a paid api. but you sound interested maybe you should give it a go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants