# How to Fix Choppy PersonaPlex Audio on a DGX Spark (Buffer Fix Explained)

> A DGX Spark recipe by Greg Alton: why PersonaPlex stutters on a Spark, and how a 0.5 s buffer plus DeviceNexus FP8 speedups made it smooth.

Level: Advanced
Tool: DGX Spark
Category: Building
Time: About 25 minutes
Checked: 2026-11-14
Tools: [NVIDIA PersonaPlex (GitHub)](https://github.com/NVIDIA/personaplex), [PersonaPlex 7B model on Hugging Face](https://huggingface.co/nvidia/personaplex-7b-v1), [The choppy-audio thread (issue #3)](https://github.com/NVIDIA/personaplex/issues/3), [DeviceNexus optimized fork (amarrmb/personaplex)](https://github.com/amarrmb/personaplex), [DeviceNexus optimization write-up](https://github.com/amarrmb/personaplex/blob/main/README-optimizations.md)
HTML page: https://easyaihowtos.com/guides/fix-choppy-personaplex-audio-dgx-spark

AI engineering is just process engineering. *— [Greg Alton](https://www.linkedin.com/in/greg-alton-ios)*

The first time I ran NVIDIA PersonaPlex on my DGX Spark, it sounded like it was falling apart: choppy words, long silences, freezing for seconds and clipping words, and answering things I'd said a minute ago. I run the DeviceNexus FP8 build, which fits comfortably on a single Spark. After two fixes from the community, it holds a smooth conversation about anything, for as long as I want, on that one box. It's the closest thing to a real Jarvis I've used.

Prefer to watch? Follow along with the [step-by-step video on YouTube](https://youtube.com/watch?v=iXrAHYRhd5s), or catch the [quick Short](https://youtube.com/shorts/lzJxVCZ_h4I).

This recipe explains why it broke, how a Hugging Face engineer's buffering idea and the DeviceNexus FP8 speedups each helped, my before and after numbers, and how to set it up yourself. **Tested on my DGX Spark, Nov 14, 2026.**

## What you need

- An NVIDIA DGX Spark (GB10) with CUDA 13 and Python 3.12. I run the DeviceNexus FP8 build, which fits comfortably on a single Spark.
- A Hugging Face account with the PersonaPlex model license accepted, and an access token
- libopus, a Rust toolchain (for the sphn package), and Node.js to rebuild the web client
- Chrome or another Chromium browser and a headset, so the model doesn't hear itself
- About 11 GB of free GPU memory for the DeviceNexus FP8 path I measured (stock bf16 used about 18.8 GB).

## Steps

### 1. What it sounded like before

NVIDIA's [PersonaPlex](https://github.com/NVIDIA/personaplex) is a 7B speech-to-speech model you can talk to like a person. I run it on a single DGX Spark with the DeviceNexus **FP8** build (`--fp8`, plus skipping a second unused codec). Even so, the stock client was unusable. The voice came out choppy, with long dead pauses. Then, a minute or so in, it got weird: freezing for seconds and clipping words, answering things I'd said a while ago, and rambling like it was having a breakdown. Changing the quantization alone didn't save it.

I wasn't alone. GitHub [issue #3](https://github.com/NVIDIA/personaplex/issues/3), "PersonaPlex produces choppy/unusable audio on DGX Spark (GB10)", has dozens of Spark, Jetson Thor and RTX owners describing the same thing. One person put it plainly: "Audio playback has frequent dropouts and the Latency is constantly increasing."

Two fixes from that thread turned it around for me. Here's how each one works and what my Spark measured.

### 2. The quantization: FP8 on a single Spark

The official PersonaPlex weights on [Hugging Face](https://huggingface.co/nvidia/personaplex-7b-v1) are **bf16**. On my Spark I run the DeviceNexus **FP8** build: `--fp8` for the language model's linear layers, plus skipping a second unused Mimi codec. That path fits comfortably on a single Spark. Stock bf16 also loads, but it uses more memory (about 18.8 GB in my latest test, versus about 11.0 GB for this FP8 path) and, as the numbers below show, it can't stay under the 80 ms frame budget.

DeviceNexus [tested NVFP4](https://github.com/amarrmb/personaplex/blob/main/README-optimizations.md) and dropped it because it was slower than FP8 on that path.

### 3. How PersonaPlex hears and talks: the 80 ms budget

Most voice assistants take turns: speech-to-text, then a chatbot, then text-to-speech. PersonaPlex is **full duplex**. It's one model, built on Kyutai's Moshi, that listens and speaks at the same time.

It works in **frames of 80 ms** (12.5 a second). For every frame, it does three jobs:

```text
  your mic ──80 ms──▶ [Mimi encoder] ──▶ [7B language model] ──▶ [Mimi decoder] ──80 ms──▶ your speaker
                      audio to tokens     "what do I hear,        tokens to audio
                                           what do I say next?"
```

The rule is simple: **every frame has to finish in under 80 ms**, because the next 80 ms of your voice is already arriving.

| Time per frame | What happens |
|---|---|
| Under 80 ms | It keeps up. Spare time absorbs small hiccups. |
| About 80 ms | It's on the edge. Any spike causes a gap. |
| Over 80 ms | It falls further behind on every frame, for as long as you talk. |

Stock PersonaPlex in **bf16** on my Spark took **103.8 ms per frame**. That's a real-time factor of 1.30: every second of conversation took 1.30 seconds to process.

### 4. Why falling behind sounds like a breakdown

This is the part that surprised me. A slow chatbot just feels slow. A slow full-duplex model sounds unhinged, and the code shows why.

- **The lag keeps growing.** In the server, incoming mic audio is appended to a queue and processed one 80 ms frame at a time. Nothing in that queue is ever skipped. At 103.8 ms a frame in stock bf16, it falls about 0.30 s further behind for every second you talk. After 30 seconds, it's hearing you roughly 9 seconds late.
- **It answers stale audio.** Because it's hearing old audio, it replies to what you said a while ago, and it misses you saying "wait" until long after.
- **The speaker runs dry.** In the browser, a small player (the AudioWorklet in `client/src/audio-processor.ts`) holds only about 80 to 100 ms of audio. When the next frame is late, it runs out, logs "Missed some audio", goes silent and waits to refill. That's the choppy, gappy sound: it freezes for seconds at a time.
- **Bits get thrown away.** When a late burst finally arrives, the player drops the oldest audio to catch up, so words get clipped.

Put those together and you get choppy speech, long pauses, freezing for seconds and clipping words, and a voice that seems to lose the plot.

### 5. Fix 1: the Hugging Face buffer (the smoothness)

[Andrés Marafioti](https://github.com/andimarafioti) from Hugging Face described his approach in the [issue thread](https://github.com/NVIDIA/personaplex/issues/3): "a small buffering system to avoid the choppiness and some look-ahead to reduce accumulated latency." He was testing on a Jetson Thor, and said it was still flaky there. On its own, the buffer couldn't make a slow server fast. (The DeviceNexus write-up uses the same idea: "0.5s client-side buffer absorbs frame variance.")

The idea lives entirely in the **browser player**. Here's what we changed in `client/src/audio-processor.ts`:

| Setting | Stock | Our setting | What it does |
|---|---|---|---|
| Starting buffer (`initialBufferSamples`) | 80 ms (one frame) | **500 ms** | How much audio to collect before playback starts, and again after any underrun |
| Refill step (`partialBufferSamples`) | 10 ms | **40 ms** | Extra audio to wait for on top of that before playing |
| Look-ahead cap | about 100 ms total | **about 550 ms total** | When the queue grows past the cap, drop the **oldest** audio back down to about 540 ms |

```text
Stock:  [80 ms]  ──▶ one late frame = silence, rebuffer, stutter
Fixed:  [■■■■■■ 500 ms ■■■■■■]  ──▶ late frames are covered by audio already waiting
        and if it ever piles up past ~550 ms ──▶ drop the oldest, stay near live
```

**Why it works:** frame times vary. A 500 ms cushion means a late frame plays from audio that's already waiting, so you hear no gap. The drop-the-oldest cap means the delay can't keep stacking up: you are never more than about half a second behind.

**What it can't do:** it can't make the server faster. If the model produces less than one second of audio per second, any buffer eventually runs dry. In our offline test, the buffer alone changed nothing on the server side (still 103.8 ms a frame in stock bf16). Playback got smoother, but it still fell behind.

### 6. Fix 2: the DeviceNexus speedups (staying under 80 ms)

The other half came from a fork by DeviceNexus ([amarrmb/personaplex](https://github.com/amarrmb/personaplex)), posted in the same thread. Their [write-up](https://github.com/amarrmb/personaplex/blob/main/README-optimizations.md) lists each change:

- **FP8 weights** for the language model's linear layers, using Blackwell's FP8 tensor cores. This is the big one: their write-up says it saved about 40 ms.
- **Skipping the second Mimi codec.** The server ran a second encoder and decoder whose output was always thrown away.
- **FP16 plus torch.compile for Mimi**, which shaves a few ms off encode and decode.
- **Pinned memory for GPU-to-CPU copies** of the output audio.

With these, the server finishes each frame in time, and the buffer only has to cover the occasional spike.

### 7. The numbers on my Spark

Sparky, my lab agent on the Spark, re-measured an offline benchmark against the 80 ms budget on Nov 14, 2026: 150 frames each, the same test clip, with other models unloaded. These are the numbers I use below: stock **bf16** and the DeviceNexus **FP8** path I run on this Spark.

| Setup | Mean per frame | p90 | Real-time factor | Frames over 80 ms |
|---|---|---|---|---|
| Stock (bf16) | **103.8 ms** | **104.5 ms** | **1.30** | **150 of 150** |
| Stock + HF buffer only | 103.8 ms (buffer is browser-side) | same | 1.30 | still behind |
| DeviceNexus speedups (FP8) | **68.4 ms** | **69.5 ms** | **0.86** | **0 of 150** |

The DeviceNexus FP8 version used about 11.0 GB of memory; stock bf16 used about 18.8 GB. For comparison, DeviceNexus reports 74.2 ms a frame on their Spark, also with FP8. An earlier run on Nov 6, with another model loaded on the same Spark, measured 106.5 ms stock and 69.1 ms FP8.

Then I tested it live: the DeviceNexus speedups plus the 500 ms browser buffer. On Nov 6 that live test ran with another model loaded on the same Spark. My verdict at the time: **"MUCH better than without the HuggingFace engineer's hack."** It was smooth, no stutter, and it stayed sane through a long conversation.

A later recorded take made the gap obvious. In stock **bf16**, after I said "Teach me about Kubernetes," there were about 6 seconds of dead air, the audio came out chopped even though the on-screen text was fine, and it never answered "Thank you." The missed-audio counter climbed to about 21 seconds. With **FP8 plus the buffer**, missed audio held at 0.22 seconds, and it answered "Thank you." If the stats panel already shows missed audio when you start, that may be left over from an earlier broken session: reload before you judge the numbers.

**Credit where it's due:** the speedups got the model under budget. The buffer is what made it *sound* smooth, by soaking up the jitter that's left and capping the lag. Neither one alone did it on my Spark.

### 8. Step 1: Install the optimized fork

These steps follow the [DeviceNexus README](https://github.com/amarrmb/personaplex). Check it first in case anything has changed.

1. Accept the model license on [Hugging Face](https://huggingface.co/nvidia/personaplex-7b-v1) and create a read token.
2. Install libopus (`sudo apt install libopus-dev`) and [Rust](https://rustup.rs/).
3. Create a venv and install PyTorch for CUDA 13, then the fork:
```bash
python3 -m venv ~/personaplex-venv
source ~/personaplex-venv/bin/activate
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu130
git clone https://github.com/amarrmb/personaplex.git
cd personaplex
pip install -e moshi/.
export HF_TOKEN=your-token-here
```
Keep your token out of scripts you share.

### 9. Step 2: Change the buffer settings

Open `client/src/audio-processor.ts`. In the constructor, change the starting buffer and the refill step:
```diff
-    this.initialBufferSamples = 1 * frameSize;
+    this.initialBufferSamples = asSamples(500);   // was one 80 ms frame
-    this.partialBufferSamples = asSamples(10);
+    this.partialBufferSamples = asSamples(40);    // was 10 ms
```
Then change the same refill line inside `initState()`, because it resets the value at the start of every session:
```diff
-    this.partialBufferSamples = asSamples(10);
+    this.partialBufferSamples = asSamples(40);
```
The drop-the-oldest logic is already in the file. It drops back to `initialBufferSamples + partialBufferSamples` whenever the queue passes the cap, so raising those two values moves the cap to about 550 ms. You don't need to write new code.

Rebuild the web client:
```bash
cd client
npm install
npm run build
cd ..
```

### 10. Step 3: Run it with FP8 and your rebuilt client

The command below is the DeviceNexus **FP8** path I run on this Spark, the one behind the 68.4 ms numbers above.

By default, the server downloads a prebuilt web client from Hugging Face, so your buffer change would be ignored. Point it at your build with `--static`:
```bash
source ~/personaplex-venv/bin/activate
SSL_DIR=$(mktemp -d)
python -m moshi.server --fp8 --ssl "$SSL_DIR" --static client/dist
```
Open the HTTPS address the server prints, in Chrome, from any machine on your network. Accept the self-signed certificate warning, allow the microphone, put on a headset, and start talking.

**Give it a minute.** The first frames are slower while things warm up and compile. In my fixed take, the page showed "Connecting..." for about 6 seconds before it first spoke. That's normal warm-up. Judge it after it settles, and don't restart mid-session, or you pay the warm-up again.

### 11. Step 4: Pick a role and a voice

This is where it starts to feel like a real Jarvis. PersonaPlex takes a **hybrid system prompt**: a **text prompt** for the role and a **voice prompt** for how it sounds. Both go into the model's context before the conversation starts, so it stays in character.

- **Role (text prompt):** NVIDIA trained it on an assistant role, customer-service roles, and real open-ended conversations. Their [prompting guide](https://github.com/NVIDIA/personaplex#prompting-guide) shows the style:
```text
You are a wise and friendly teacher. Answer questions or provide advice in a clear and engaging way.
```
```text
You enjoy having a good conversation. Have a technical discussion about home lab servers. You are Max, a calm, dry-witted engineer who explains things simply.
```
The role prompt steers the conversation, but it doesn't always win the first line. In one take I used the teacher prompt above, and it still opened with "Alright, I can help you set up a basic home server to run your games." That's a real persona quirk, not a setup error.
- **Voice (voice prompt):** pick one of the 16 bundled voices in the web UI (NATF0 to NATF3 and NATM0 to NATM3 sound natural; the VAR voices are more varied). My recorded takes used NATURAL_F0. The model can also take a short speech sample as a voice prompt, but the web UI only lists the bundled voices, so a custom voice takes some extra setup. Only use someone's voice with their permission.

NVIDIA says the model generalizes to roles outside its training data, like their astronaut example, but expect the best behavior from roles close to what it was trained on.

### 12. The tradeoff: about half a second

The buffer isn't free. Holding 500 ms of audio means you hear the model **about 0.5 s later** than you would with a stock client on a fast machine.

For me it's an easy trade. Half a second feels like a person thinking before they answer. Stutter, dead air and runaway lag feel broken. In the recorded takes, that was the difference between missed audio climbing to about 21 seconds and it holding at 0.22 seconds. If your hardware has more headroom than mine, try a smaller buffer (300 ms, say) and see if it stays smooth.

### 13. Why it feels like a real Jarvis

I've seen plenty of "Jarvis" setups. Most are push-to-talk or wait-for-silence: you speak, it transcribes, a chatbot answers, a voice reads it out. It works, but it's walkie-talkie conversation.

PersonaPlex is different because it's **full duplex**. NVIDIA's [project page](https://research.nvidia.com/labs/adlr/personaplex/) says it "listens and speaks at the same time", and that it learned "when to pause, interrupt, or backchannel" (the "uh-huh" and "oh" people say while listening).

| | Typical "Jarvis" pipeline | PersonaPlex |
|---|---|---|
| How you talk | Push to talk, or wait for silence | Just talk |
| Interrupting it | Usually stops it, or doesn't work at all | You can cut in, and it reacts |
| While you speak | It's silent | It can back-channel ("mm-hm") |
| Pieces | Speech-to-text, then a chatbot, then text-to-speech | One model |
| Role and voice | Set in the chatbot and text-to-speech settings | Text prompt plus voice prompt |

With the fix in place, it's a **private sidekick that lives on my desk**. I can talk with it about anything, as long as I want, with nothing leaving my network.

**What it isn't:** it's a conversation partner, not an agent. Out of the box it has **no tools** (no web search, calendar, or smart home) and **no long-term memory**. When I asked "Can you do a web search?", it just told me to use a search engine, as you'd expect. It only remembers the last few minutes of the conversation: the DeviceNexus fork uses a 240-second window, and NVIDIA's README says about 2.5 minutes for the current version. It can also say things that sound confident and are wrong. Treat it as a voice to think out loud with, not an assistant that does things for you.

### 14. The takeaway

**For full-duplex voice, speed is a hard line, and smoothness is a buffer problem.** If each 80 ms frame takes longer than 80 ms, nothing on the client can save it, and the lag grows until it sounds like a breakdown. Once the server is under budget, a half-second buffer with a drop-the-oldest cap turns the remaining jitter into silence you don't notice.

Thanks to Andrés Marafioti at Hugging Face for the buffering idea, and to DeviceNexus for the speedups. Both are in [issue #3](https://github.com/NVIDIA/personaplex/issues/3).

NVIDIA has since updated the main repo with "endless conversation" support, which keeps the system prompt (role and voice) pinned in context for the whole session. My tests used the DeviceNexus fork, so I haven't tested that update yet. Follow the [DGX Spark section](/dgx-spark) for more recipes.

**Want to try this without buying a DGX Spark?** [GPUwerk.com](https://gpuwerk.com) rents dedicated DGX Spark time by the minute. (GPUwerk is not a sponsor.)

## Tips

- Measure frame time first. If the mean is over 80 ms, no buffer will fix it; get the server under budget before tuning the client.
- Use a headset. On open speakers, a full-duplex model hears itself and may answer its own voice.
- Use Chrome or another Chromium browser. People in the issue thread reported dropouts in Firefox.
- Remember to pass --static client/dist, or the server serves the stock client and your buffer change does nothing.
- Start with NVIDIA's example prompts, then change one detail at a time to shape the role.
- If the stats panel already shows missed audio when you start, it may be left over from an earlier broken session. Reload before you judge the numbers.

## FAQ

### Did the buffer fix alone make it smooth?

No. On my Spark, the buffer alone smoothed playback but the server still fell behind at 103.8 ms a frame in stock bf16. It took the DeviceNexus FP8 speedups (68.4 ms a frame) plus the buffer to make it smooth.

### Why did it sound like it was losing its mind?

Because it fell further behind every second. It was answering audio from several seconds earlier, freezing for seconds and clipping words, and the player kept running dry and dropping old audio. That combination sounds like a breakdown, even though the model itself is fine.

### How much delay does the fix add?

About half a second. The browser holds about 500 ms of audio before it plays, and drops the oldest audio if the queue grows past about 550 ms, so the delay can't keep growing.

### Can I give it my own role?

Yes. Type a role in the text prompt and pick a voice. It works best with roles close to its training: an assistant, a customer-service agent, or a casual conversation partner with a topic and a backstory. The prompt steers, but it doesn't always land the first line: with a teacher role, mine still opened by offering to help set up a home server.

### Does it remember past conversations or use tools?

No. It only remembers the last few minutes of the current conversation, and it can't search the web or take actions. When I asked "Can you do a web search?", it just told me to use a search engine. You'd have to add memory and tools yourself.

---

This guide is from Easy AI How-To (https://easyaihowtos.com). It is independent of the tools named above. Screens and free-plan limits change, so check the date before you rely on a button name.
