xzf-thu/VoiceMem

Infrastructure for the next generation of voice agents, designed to provide universal memory. It is divided into a left brain and a right brain, storing information and emotions respectively, while a fully streaming architecture eliminates latency at the fundamental level.

What it solves

VoiceMem provides a long-term memory system for real-time voice agents, allowing them to remember factual information about users, their emotional states, and personality traits over time. It addresses the high latency and high token cost typically associated with retrieving large amounts of memory in voice interactions.

How it works

VoiceMem uses a "streaming dual-brain" architecture to separate memory types:

  • Left Brain: Manages factual information using schemas and entities for precise retrieval.
  • Right Brain: Manages emotional intelligence, personality, and relationship information through independent and cross-entity nodes.

The system operates in a streaming fashion, performing ASR (Automatic Speech Recognition), memory extraction, and retrieval while the user is still speaking. It uses speculative prefetching (0–300 ms) and hierarchical storage to minimize latency, only injecting the top-K most relevant memories into the model's context to keep token usage low.

Who it’s for

Developers building real-time voice AI agents who need their bots to have a persistent, emotional, and personality-aware memory of their users without sacrificing response speed.

Highlights

  • Low Latency: Response times around 134 ms, significantly faster than traditional memory engines.
  • Emotional Awareness: Tracks not just what was said, but who the user is and how they feel.
  • Efficient Token Use: Uses approximately 430 memory tokens per query compared to thousands in other systems.
  • Multimodal Memory: Capable of remembering voiceprints, speaker IDs, sound events, and music from audio.
  • Open Source: Includes a family of compatible models (Qwen2.5-Omni, Qwen3-Omni, Step-Audio2-Mini) and a training dataset (ChatMem-400K).

Related

  • Project
  • Project
  • Project
  • Project
  • Project