2026-03-02T07-58-27_auto_memory/memories.db-wal
This commit is contained in:
parent
e2f2ada361
commit
45f5e40ad8
Binary file not shown.
@ -257,13 +257,16 @@ class MeetingNotesBot {
|
||||
private subscribeToUser(receiver: any, userId: string, userName: string): void {
|
||||
if (!this.activeSession) return;
|
||||
|
||||
const audioStream = receiver.subscribe(userId, {
|
||||
const opusStream = receiver.subscribe(userId, {
|
||||
end: {
|
||||
behavior: EndBehaviorType.AfterSilence,
|
||||
duration: 2000,
|
||||
},
|
||||
});
|
||||
|
||||
const decoder = new prism.opus.Decoder({ rate: 48000, channels: 2, frameSize: 960 });
|
||||
const audioStream = opusStream.pipe(decoder);
|
||||
|
||||
audioStream.on('data', (chunk: Buffer) => {
|
||||
const buffers = this.audioBuffers.get(userId) || [];
|
||||
buffers.push(chunk);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user