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

Cannot set property writableObjectMode of #<Duplex> which has only a getter #63

Open
SinanAkkoyun opened this issue Mar 21, 2024 · 4 comments

Comments

@SinanAkkoyun
Copy link

TypeError: Cannot set property writableObjectMode of # which has only a getter
at Object. (./node_modules/audio-through/index.js:162:38)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
at Object.S (./node_modules/tsx/dist/cjs/index.cjs:1:1292)
at Module.load (node:internal/modules/cjs/loader:1205:32)
at Module._load (node:internal/modules/cjs/loader:1021:12)
at Module.require (node:internal/modules/cjs/loader:1230:19)
at require (node:internal/modules/helpers:179:18)
at Object. (./node_modules/audio-speaker/stream.js:10:15)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
at Object.S (./node_modules/tsx/dist/cjs/index.cjs:1:1292)

Node.js v21.7.1

@SinanAkkoyun
Copy link
Author

Also, is there a way to actually use this in NodeJS with normal PCM buffers instead of AudioBuffer?

@y-lobau
Copy link

y-lobau commented Mar 28, 2024

Same issue for me on mac, same Node version. Doing just this:

import createSpeaker from 'audio-speaker';
let output = createSpeaker();

@acornejo
Copy link

Ditto.

I suspect, also using node V21.

I suspect something change in the most recent releases of nodejs that prevents this library from working :(

@acornejo
Copy link

Ohh, its easier than that writable.writableObjectMode is a read only property, and has been that way for a long time, so I guess it just means nodejs added stricter checking.

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

3 participants