-
Notifications
You must be signed in to change notification settings - Fork 163
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
In capture():
It didn't respect the Int16Array boundary and copy the underlying buffer directly. This will create issue if we use Buffer (minimum 8192 bytes) and use Int16Array view on PCM data less than 8192 bytes.
for (const f of bstream.write(frame.data.buffer)) {
handle.pushedDuration += (f.samplesPerChannel / f.sampleRate) * 1000;
await this.#audioSource.captureFrame(f);
}
Relevant log output
No response
Describe your environment
Nodejs 18, livekit agent 0.7.9
Minimal reproducible example
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working