You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regardless of the specified encoding passed in the settings when creating the mic instance, the on 'data' listener always passes an Uint8Array to the callback.
I would expect this data to be, for example, of type Int16Array if I specify a 'signed-integer' encoding.
Looking at the source code, here the encoding argument of the transform stream's _transform method seems to be unused. I'm not sure if that's where the change would have to be made to get the right TypedArray according to the specified encoding.
If anyone here can point me in the right direction (right place in source code), I don't mind working out a potential solution and opening a PR.
Thanks!
The text was updated successfully, but these errors were encountered:
Regardless of the specified encoding passed in the settings when creating the
mic
instance, the on 'data' listener always passes an Uint8Array to the callback.I would expect this data to be, for example, of type Int16Array if I specify a 'signed-integer' encoding.
Looking at the source code, here the encoding argument of the transform stream's
_transform
method seems to be unused. I'm not sure if that's where the change would have to be made to get the right TypedArray according to the specified encoding.If anyone here can point me in the right direction (right place in source code), I don't mind working out a potential solution and opening a PR.
Thanks!
The text was updated successfully, but these errors were encountered: