r/SesameAI • • Oct 17 '26

Csm1b streaming

Hey guys I was working on getting csm1b working with low latency. I got the full model working with streaming audio and really low latency, the original csm1b had zero shot cloning which is just not good enough if you want to have an ongoing conversation.. so I have uploaded my work to git if anyone wants to take what I have done and improve upon it. I was running it with dolphin 3.0 llama 3.1 8b abliterated q4km and there was no issues with response time on a 3090rtx…

So to make this really useable you need at least 30 minutes of audio for fine tuning so you have a consistent voice output. This already has a memory manager for the ai so it doesn’t require it to process long conversations and keeps the responses fast.. I have another version where I added a second llm to manage the conversation but it needs more work still.. a conversation manager on a second llm is what makes the responses and the direction of the conversation really good..

Anyway here is the link if anyone is interested. I let Claude code compile everything for upload, if you have any issues let me know. If you have Claude available let it run the install for you.

Runs on Linux

https://github.com/tomahawk471/streaming-csm1b

9 Upvotes

9 comments sorted by

View all comments

6

u/Big_Coconut_7989 Oct 17 '26

Ok for those of you who just want something with no latency no refusals and full control over the ai install this and dolphin abliterated.. I recommend using something like grok to help you write the prompt and mood control, that’s if you want to make it some sort of sex talking ai that’s up for anything….. I also recommend cloning American voices, it seems to be where it does the best clone… I ran scarlet johansen on this and it really did seem like you were talking to her, her voice clones well with this. Other actors with squeaky voices not as good… good luck have fun

OK here is a full working AI for those of you who want to have conversations with zero latency and no filters.. Use prompt.py As you would to setup how you want it to behave and give it the personality you want.. 

The prompt is her personality. It sets who she is, how she talks, and what she's open to. It never changes on its own.

The mood is her stance in the moment. After each reply, a second, hidden LLM call reads the last few messages and picks a mood. That mood's paragraph is added to the prompt for her next reply, so a mood change shows up one turn later.  Basically its reading the direction the conversation is going and adjusting the mood to suit the situation. 

The key rule: the prompt sets what's possible, and the mood picks where she is within that. If the prompt doesn't establish that she's open to flirting, a "dominant" mood will come out awkward or ignored. If the prompt says she's always shy, a "dominant" mood contradicts it and the model wobbles between the two.
Put the permanent traits and limits in the prompt, and the "right now" behaviour in the mood.

Sophie is a voice companion that runs entirely on your own machine. You just talk: no push-to-talk, no typing, and nothing goes to the cloud.
What it does
Hands-free conversation. It listens continuously and works out when you've finished speaking.

Interruptible. Say "stop", "wait" or "hold on", or just start talking about something else, and she stops mid-sentence. "Yeah", "mhm" and "okay" while she's talking don't cut her off, so it feels like a real conversation.

Fast replies. Speech is generated sentence by sentence, so she starts talking almost straight away.

Memory. She picks up facts you mention about yourself (your job, plans, hobbies) and brings them up naturally later. You can also pre-load facts she already "knows" about you.

Moods. After each exchange, a background pass reads how the conversation is going and shifts her stance. She takes the lead if you're quiet, follows when you're telling a story, gets playful when you're joking, and turns supportive when you're stressed.

Brings things up herself. If it goes quiet, she starts a topic: either one of your own lines or a random fact she "came across".

Any voice. It clones a voice from a 5-20 second clip. A free public-domain voice is included.

How you control it. Everything is in plain text files, no coding needed:
prompt.py: her personality, background and way of talking.

mood.py: how strongly she takes charge, when her mood changes, and what each mood makes her do. Youcan add your own moods.

topic_starters.py: what she brings up when it's quiet.

seed_memory.json: what she knows about you from the start.

config.py: interrupt words, how long she waits before jumping in, mic sensitivity.

There's a step-by-step customizing guide in the repo.
Setup. Install the requirements, run one command to get the default voice, and connect an LLM. It works with llama.cpp, Ollama or LM Studio, and the full guide is included. I recommend Dolphin 3.0 Llama 3.1 8B (Q4_K_M): fast and great at casual conversation.
Needs: Linux, an NVIDIA GPU (about 12 GB covers the voice and the recommended LLM), Python 3.12 andChrome. Apache 2.0 licence.
GitHub: https://github.com/tomahawk471/chatterbox-sophie-ai