diff --git a/memory/memories.db-wal b/memory/memories.db-wal index 4e4f33891..08b3c434f 100644 Binary files a/memory/memories.db-wal and b/memory/memories.db-wal differ diff --git a/tools/meeting-notes/src/index.ts b/tools/meeting-notes/src/index.ts index a037003ef..b317a1664 100644 --- a/tools/meeting-notes/src/index.ts +++ b/tools/meeting-notes/src/index.ts @@ -256,13 +256,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);