diff --git a/memory/memories.db-wal b/memory/memories.db-wal index 4d928e148..656695b53 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 b3e2cc19f..2420893c7 100644 --- a/tools/meeting-notes/src/index.ts +++ b/tools/meeting-notes/src/index.ts @@ -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);