Who it is forA developer who wants a simple memory store for user facts, without audio processing or emotion tracking.
The problemBuilding a per-user fact store with retrieval from scratch takes time, and the team wants a tested memory engine to start from.
The outcomeA short Python script saves a fact such as a dietary restriction and returns it when asked a matching question.
What you need first
- Python 3.10 or newer
- An OpenAI API key, used for fact extraction when memories are written
- Git and access to GitHub and Hugging Face to clone the repo and download the default models
- Audio input (a WAV file or a microphone) if you want to ingest speech
Steps
- Clone the repo with
git clone https://github.com/xzf-thu/VoiceMem.gitand install withpip install voicemem. - Download the default models with
hf download zhifeixie/VoiceMem_Default_Models_Env --local-dir ./modelsafter runningpip install -U huggingface_hub. - In a Python file, create Voice Mem(mode="leftbrain_only", openai_key=...) and call vm.ingest with a text fact.
- Call vm.search with a question about that fact and print the result.result_leftbrain field.
Prompt for your agent
In the VoiceMem repo at <repo path>, write a script that creates VoiceMem with mode leftbrain_only, ingests the text <fact text>, and searches with the question <question>. Expected output is the stored fact in result_leftbrain. Verify the search returns the fact after ingest.
Caveat. The README describes this mode as storing factual text without emotion, so it does not replace the full dual-brain setup.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for xzf-thu/VoiceMem and "Store and search text facts with Voice Mem"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer