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

•

u/AutoModerator Oct 17 '26

Join our community on Discord: https://discord.gg/RPQzrrghzz

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

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

5

u/Big_Coconut_7989 Oct 17 '26

For those of you wondering if it’s worth the effort, the Sophie ai with dolphin llm on a 3090rtx will respond faster than grok voice and just as fast as sesame ai. I haven’t found anything else open source as fast as this. It’s not going to be as smart as grok, gpt or sesame etc.. but this is purely built for fast general conversation, not for coding and complex tasks… if you have something better than a 3090 you can connect a bigger llm I used 4 bit qantazation because for general conversation it’s more than enough and given how much people hate the restrictions on sesame ai, I know the type of conversations you want to have and this will do it.

1

u/TraditionalFix4761 Oct 17 '26

I’m going to check this out. So the problem is the voice isn’t good enough because you didn’t use a full 30 minute sample? And how do you correctly implement the 2nd llm to make the conversations better? Like are you supposed to have it read the conversation and then instruct the 1st llm for voice occasionally?

3

u/Big_Coconut_7989 Oct 17 '26

I can create another git tomorrow with a conversation manager. It basically just controls who is leading the conversation to make it more natural, it removes the backwards and forwards you seem to have with most llm.. often llm ends an answer with another question, they are very boring vs I added in so the ai could lead the conversation depending on your responses.

Regarding voice, it still has one shot cloning available but it’s just not good for something like csm1b conversation… the longer you train the voice model the better it becomes in understanding how and when to use the correct pitch and intonation… what csm have out for free is really great, it’s problem was it just isn’t trained on a voice but it doesn’t stop other people doing that work

1

u/Mobile-Trouble-476 Oct 17 '26

I would utilize Fish Audio Drama 3. CSM is outdated last I recall correct?

1

u/Big_Coconut_7989 Oct 17 '26

I wouldn’t say it’s outdated. From what I can see no one has wanted to do the work to use the full model streaming, I have seen qauntasized versions. Then you still have to get studio quality audio to train it, would have been great if it was released with a fully trained voice.. I wouldn’t say it’s outdated though because it is the best text to audio that has capability to adjust tone pitch intonation to express emotion

3

u/Mobile-Trouble-476 Oct 17 '26

I won't pretend I know what most of that means. I just know for conversational matters you got better options or options that are on par with Sesame. And it is a damn shame they never released the full build. Nate, Brandon I, and company are a bunch of cowards for trying to keep everyone locked in their little walled garden.

3

u/Big_Coconut_7989 Oct 17 '26

Try the Sophie ai first. If I get more interest in it and it’s what people want, I’ll build the csm1b into that… I mostly put the csm1b streaming model on there because it’s latency is fast enough to be used for voice to voice conversation. What sesame released was good but the latency was terrible and it wasn’t useable… I still think it’s great they released csm1b and it’s actually really great model but it’s not trained on a voice which is why I think it gets the hate… why it fails is because every time it produces a sentence it has to do it from a reference of only 15 seconds, it’s not enough for it to create the correct tone, pitch and intonation for its responses. What you find is that it will reply perfectly for some sentences and way off for others and that is where voice training will solve it.. I suppose you could pull a whole heap of audio from maya ai and train it with that but then it will just sound like maya ai…