用 NVIDIA Nemotron 开源模型建造一座闹鬼的房子
或者更准确地说……
“吼!现在滚出我的草坪!”
简而言之:MonsterHouse 是我为了万圣节制作的一个交互式投影装置。它会倾听前来讨糖的孩子们,用一位脾气暴躁的老海盗船的声音回答,并在访客表现出礼貌时变得柔和。它基于 NVIDIA Nemotron Voice Agent、NVIDIA Nemotron ASR、Nemotron 3.5 Bolt E4B 4GB、Magpie TTS Zeroshot 和 Audio2Face-3D 构建,并在单个工作站上运行。
我希望万圣节来我家做客的孩子们能以一种有趣且独特的方式互动。房子将主导局面并发放糖果,但比起恐怖,它更多是脾气暴躁。不知何故,我的解决方案是给车库门安上一张嘴,并教它抱怨。
于是就有了 MonsterHouse:一座脾气暴躁的老建筑,有着海盗故事、炽热的笑容以及对“请”字的可疑弱点。NVIDIA Nemotron Voice Agent 提供了对话基础。Nemotron Speech 负责倾听,Bolt E4B 是大脑,NVIDIA Magpie TTS Zeroshot 是实时语音,而 NVIDIA Audio2Face-3D 则让木制的嘴巴动起来。
MonsterHouse 的工作原理
满是木刺的笑容
嘴是首先制作的。我想象车库门的木板分裂成锯齿状的嘴唇,每当他张开诅咒之口时,地狱的火焰就会照亮车道。它需要看起来古老、富有表现力,并对访客的存在感到轻微的不悦。
这座房子有很多话要说,这里展示了一些表情。
创建自定义动画绑定是构建过程中劳动密集型的部分之一。在将其强行纳入掌控之后,我可以导出 Audio2Face-3D 稍后用于动画的面部表情形状。角色 SkelMesh 是在 Autodesk Maya 中构建的,然后导出到 Unreal Engine,在门后添加了虚拟火焰和特效。没有眼睛、眉毛和眨眼动作,它是一个出乎意料的经济实惠的怪物。
当构建角色的所有繁琐工作正在进行时,NVIDIA 正在构建 Nemotron Voice Agent。原本被认为是构建中最困难的部分现在变得相当有趣、迭代且容易。我开箱即用地拥有了倾听、对话和语音的基础。房子已经有了嘴。现在它终于可以找到可以抱怨的事情了。
教导坏 manners
房子需要一个与其性格一样乖戾的过去,所以我构思了一个背景故事:这座房子是由一艘沉没海盗船的木材建造的,被其暴风雨般的过去所困扰。这些航海抱怨现在有了理由。这就是那艘船,转世为房地产,对此并不完全满意。
表演需要一个指南,一条从问候到告别的路径,沿途分发糖果。首先,房子会用诸如“我很忙在发牢骚,去打扰邻居吧!”这样的话把访客打发走。但坚持会让它软化。“请”可以立即打破僵局,而“谢谢”则能赢得温暖的告别。一旦访客征服了它,我希望它能保持被征服的状态。没有人想和同一个车库门谈判两次。
这正是 Voice Agent 真正发光的地方。你可以选择任何你喜欢的 LLM。因为我希望系统离线且完全独立,所以我拥有内存和计算预算。
角色不仅仅需要一个说“要脾气暴躁”的提示。它必须遵循主对话流程,回应访客实际说的话,跟踪遭遇状态,并为管道的其余部分留出足够的计算资源。
在测试了十几个模型后,我选择了 Bolt E4B 来提供实时对话。它是一个专为本地对话代理和互动角色构建的开源小型语言模型,这非常符合一扇会说话的车库门的描述。我使用 4-bit 量化版本(名称中的“4GB”)作为默认响应模型,并提供 BF16 检查点以供比较。
如果到现在这还看不出来的话,我在英伟达(NVIDIA)工作,因此我得以在 Bolt E4B 公开发布之前对其进行测试,并发现它是一个扎实的选择,其占用空间比其他领跑者——Qwen3 30B-A3B 和 Qwen 3.6 35B-A3B——都要小。
它在 Nemotron Voice Agent 管道中运行,将访客所说的话转化为下一个恰如其分的、略带不情愿的回复。
Bolt 提供了对话基础。我的提示词、应用逻辑以及在数千条经过审查的示例对话上训练的 LoRA 适配器将其塑造成了这艘特定的“顽固之船”。
创建包含超过 5000 条多轮对话的数据集意味着我可以为每一个我觉得足以作为备选方案模型训练 LoRA。有些模型的训练大约需要一小时,有些则需要几个小时。一个本地代理运行了所有操作并对结果进行了基准测试。这个代理和一个非常大的大语言模型最初创建并评估了该数据集。这一切都发生在夜间或我从事日常工作的时候。
在放置好 LoRA 后,我会检查回复的连贯性、时机和语气,对模型和适配器的质量、重复性和速度进行基准测试,然后聆听其表现。这座房子最终应该让步,但不能变成一位欢快的礼宾员。一点阻力是魅力的一部分。但与车库门无休止的争吵则不然。
值得等待的声音
两条捷径,两种输出。撰写的文本跳过新的对话生成,保存的音频跳过语音合成。清晰的语音独立于观众效果驱动动画。
如果一座鬼屋抱怨的时间太长,就会失去威严。该管道会在整个答案完成之前释放可朗读的文本,因此房子可以在句子的其余部分还在途中时就开始说话。准备好的问候语和糖果笑话涵盖了熟悉的遭遇:文本库节省了语言模型的工作量,缓存的录音节省了语音合成。即使是古老的脾气暴躁者也能从排练中受益。
使用 Bolt Q4 和 TTS 的中位语音结束到音频时间 = 1.70 秒
使用中位语音结束到音频缓存响应时间 = 0.72 秒
(注:语音结束检测目前等待 300 毫秒的静音)
英伟达 Magpie TTS Zero-shot 将文本转化为女王般的英语。其零样本语音条件使用短参考样本而不是训练过的声音;我的样本提供了脾气暴躁的海盗角色。这座房子有七种情绪,从脾气暴躁和具有威胁性到 amused(被逗乐)和 delighted(欣喜),情绪标签由提示模板规定并由大语言模型提供,决定了每一行的交付方式。由于每种情绪都需要不同的 3-10 秒语音样本,我在 UI 的工具选项卡上添加了一个“Sample your Voice”(采样你的声音)模块。然后我可以用我最快乐的海盗或最愤怒的海盗的声音朗读并录制一行示例文本。当“开始”时刻到来时,Bolt E4B 决定说什么,而 Magpie 则以适当的喜悦或绝望将那段文本转化为语音。
接下来是 Audio2Face-3D 和我在 Epic 的 Unreal Engine(虚幻引擎)中创建的 3D 角色场景。默认模型权重最适合干净的、中性的男性或女性声音,不要太低沉,也不要太高(根据你的用例选择合适的性别化模型)。我希望这座房子拥有非常低沉和恶魔般的声音,带有回声和混响效果。在这种情况下,由于我的语音样本没有那种戏剧性的厚重感,这实际上是一个优势。Audio2Face-3D 从样本中获取清晰的语音,第二个音频流添加可调节的实时声乐效果并播放到扬声器中。
为了保持一切运行顺畅,我将工作分配给一对 GPU:语言和语音模型管道在 NVIDIA RTX PRO 6000 Blackwell Max-Q 上运行,而带有 Audio2Face-3D 的虚幻引擎图形则在 NVIDIA RTX PRO 4000 Blackwell 上运行。问题不在于内存,而在于计算能力。我希望无论代理管道正在做什么处理,都能保持动画帧率的一致性。
声音、动画和特效必须协同到位。一个令人信服的怪物不仅仅需要快速的回答;它听起来必须像是抱怨来自建筑物本身。在我的案例中,他做到了。同步音频交付的调整是可用的。我发现我可以设置好就忘掉它们。(100毫秒补偿了 Audio2Face-3D 的缓冲)
怪物有一个控制台
在某个阶段,“让房子说话”需要一个充满控件的界面。我可以试听缓存的行话,调整开场情绪,跟随对话,改变声音处理方式并调整嘴部动画。标签页涵盖对话、模型选择、录音、提示、性能监控和摄像头画面,而调音板和自定义对话框让我能给他嘴里塞进话语。还有模型加载控件和一个 Unreal Engine 连接指示器,因为有时候怪物不是在生闷气。他是断开了连接。
MonsterHouse 控制台,带有调音板、自定义台词、开场情绪和对话流程。
火焰和光芒也加入了表演。可编辑的规则将视觉提示与交付联系起来:实时提示以语音开始,而录制的表演可以遵循保存的时间线。我可以在不重建场景的情况下引导情绪变化。
直播模式运行着万圣节讨糖的角色。演示模式说服房子解释他自己。麦克风模式让我直接通过房子说话,绕过识别、对话生成和语音合成。我干净的声音驱动着嘴部;观众听到的是经过处理后的版本。房子认为这是附身。我认为这是一个有用的后备方案。
下一声敲门声
NVIDIA Nemotron 3 Nano Omni 是一个 VLM(视觉语言模型),它为房子提供视觉上下文。作为一个可选的观察者,它解释摄像头图像并描述可见的服装,以便角色有具体的东西可以反应。不想重新发明每一个轮子,我选择了流行的目标检测和跟踪模型 YOLO 和 ByteTrack 来计数和跟踪当前视野中的人。保持这些任务分离让房子注意到一群人而不必要求 Omni 叙述每一帧。
为了一个足够荒谬的测试,我给 Omni 看了一段五个穿着服装的绵羊在门口的视频。它保存的分析识别出了海盗、吸血鬼、女巫、南瓜和幽灵的服装。这就是我想要的视觉上下文。显然,即使是牲畜也有比我更复杂的万圣节计划。
合成测试重放中的五只非常毛茸茸的讨糖者。服装标签来自保存的 Omni 分析;框和跟踪 ID 仅为示意。
绵羊是合成测试,并非成功万圣节之夜的证据。真实的车道人群、服装和夜间照明仍需测试。检测确实会触发自动问候,但我担心时髦的服装识别和足够机智的回话可能还需要一些后训练。由于房子没有眼睛,他称他的访客感知为回声定位。我让他拥有这个说法吧。
还有更多工作要做:动画总是可以改进,完整的性能测试需要真实的访客,而糖果终有一天会自动提供。我还没有达到最初的目标,即让我在万圣节期间让他独自运行,而我与家人一起去看看其他街区的幽灵。但这仍然是这一切的意义所在。总有一天,一个孩子会遇到一个脾气暴躁的老房子,尝试一点善意,发现老木头有一个柔软的地方。并且分发巧克力棒。
构建你自己的不合理角色
MonsterHouse 的代码本身并未打包发布,但它使用的每一个 NVIDIA 模型今天都可用,而 NVIDIA Nemotron Voice Agent 能让你走大部分路程。这就是我会遵循的路径。
从语音管道开始。克隆 NVIDIA Nemotron Voice Agent 并运行 Generic Assistant 示例。你得到了一个级联管道,包含 Nemotron Speech ASR、LLM 和 Magpie TTS,加上语音活动检测和话语结束处理,这样你的角色就知道何时说话。
让 Bolt E4B 成为大脑。语音代理(Voice Agent)包含适用于云端、服务器和单 GPU 部署的 Bolt E4B 配置文件。你可以先在 build.nvidia.com 上试用该模型。尝试对话模式以获取简短且适合语音回复的内容,并禁用推理功能以实现更简单的交互。
赋予它个性。从系统提示词和一些连接的示例对话开始。将对话状态(例如谁已经说过“请”)保存在你的应用程序中,而不是让模型去记住它。当提示词不足以应对时,训练一个 LoRA 适配器;NVIDIA NeMo AutoModel 为 Bolt E4B 提供了 LoRA 配方。
赋予它声音。Magpie TTS Multilingual 是语音代理的默认选项。对于自定义角色,Magpie TTS Zeroshot 只需一个简短的参考样本即可生成。在 build.nvidia.com 上试用它,并申请访问权限以自行运行。[CONFIRM: 访问路径和链接] 仅使用你有权使用的声音。
赋予它面孔。NVIDIA Audio2Face-3D 可将语音转化为角色的面部动画。输入清晰的语音,随后添加效果。
可选:赋予它眼睛。语音代理的 Nemotron Omni Assistant Subagents 示例通过 Nemotron 3 Nano Omni 添加了实时网络摄像头理解功能。如果需要计数,可以将其与轻量级人物追踪器配对。
缓存响应库以及为你最常用的台词保存音频,即使是一个缓慢的模型也会感觉反应迅速。事实上,如果你的计算能力受限,完全没有理由不能拥有一个仅使用 Nemotron 3 ASR、Python 对话路由器以及所有缓存音频的实时版本。你可以使用 Bolt E4B 和 Magpie 管道离线生成数百个响应,然后在展示时使用缓存。我将为互动南瓜做这件事。
资源
Building a Haunted House with NVIDIA Nemotron Open Models
Or rather…
Boo! Now Get Off My Lawn!
TL;DR: MonsterHouse is an interactive projection I created for Halloween. He listens to trick-or-treaters, answers in the voice of a grumpy old pirate ship and softens when visitors remember their manners. He is built on the NVIDIA Nemotron Voice Agent with NVIDIA Nemotron ASR , Nemotron 3.5 Bolt E4B 4GB , Magpie TTS Zeroshot and Audio2Face-3D , and he runs on a single workstation.
I wanted the kids visiting my house at Halloween to interact in a fun and unique way. The house was going to be in charge and giving out the treats, but more grumpy than scary. Somehow, my solution was to give the garage door a mouth and teach him to complain.
That became MonsterHouse: a grumpy old building with pirate stories, a fiery grin and a suspicious weakness for “please.” NVIDIA Nemotron Voice Agent supplies the conversation foundation. Nemotron Speech does the listening, Bolt E4B is the brain, NVIDIA Magpie TTS Zeroshot is the live voice, and NVIDIA Audio2Face-3D makes the wooden mouth talk.
How Monster House works
A grin full of splinters
The mouth came first. I imagined the wooden garage door boards splitting into jagged lips, with the burning flames of hell illuminating the driveway from beyond whenever he opened his cursed mouth. He needed to look ancient, expressive and mildly offended by the existence of visitors.
A few expressions from a house with plenty to say.
Creating a custom animation rig was one of the more labor intensive parts of the build. After bashing it into submission, I could export the facial expression shapes that Audio2Face-3D could later animate. The character SkelMesh was built in Autodesk Maya then exported into Unreal Engine where virtual fire and effects were added behind the door. With no eyes, no eyebrows and no blinking, he’s a surprisingly economical monster.
While all the nonsense of building the character was going on, NVIDIA built the Nemotron Voice Agent. What was supposed to be the hard part of the build now became rather fun, iterative and easy. I had a foundation for listening, conversation and speech right out of the box. The house already had a mouth. Now he could finally find something to complain about.
Teaching bad manners
The house needed a past as cantankerous as its personality so I devised a backstory that the house had been built from the timbers of a sunken pirate ship, haunted by its stormy past. The nautical complaints now had a reason. This was the ship, reincarnated as real estate and not entirely pleased about it.
The performance needed a guide, a path to follow from greeting to goodbye while providing treats along the way. First, the house would brush visitors off with remarks like “I’m busy grumbling, go bother the neighbors!” But persistence would wear him down. A “Please” could break through immediately, and “thank you” earned a warm farewell. Once a visitor won him over, I wanted him to stay won over. Nobody wants to negotiate with the same garage door twice.
Here is where the Voice Agent really shines. You can choose any LLM you like. Because I wanted the system to be off-grid and completely self-contained, I had a memory and compute budget.
The character needs more than a prompt that says “be grumpy.” It had to follow a master conversation flow, respond to what visitors actually said, track encounter state, and leave enough compute for the rest of the pipeline.
After testing more than a dozen models, I landed on Bolt E4B to supply the live dialogue. It is an open small language model purpose-built for local conversational agents and interactive characters, which is a fair description of a talking garage door. I use the 4-bit quantized release (the “4GB” in its name) as the default response model, with the BF16 checkpoint available for comparison.
If it’s not obvious by now, I work at NVIDIA and due to this I was able to test Bolt E4B before its public release and found it to be a solid choice, with a smaller footprint than other frontrunners- Qwen3 30B-A3B and Qwen 3.6 35B-A3B.
It works inside the Nemotron Voice Agent pipeline, turning what visitors say into the next suitably reluctant reply.
Bolt provides the conversational foundation. My prompts, application logic and LoRA adapter trained on thousands of reviewed example conversations shape it into this particular stubborn ship.
Creating a dataset of over 5000 multi-turn conversations meant I could train LoRAs for each model I felt good enough to be an option. Some took about an hour to train, some took a couple. A local agent ran everything and benchmarked the results. That agent and a very large LLM created and judged the dataset to begin with. This happened at night or while I was doing the day job.
With the LoRA in place I check the replies for continuity, timing and tone, benchmark models and adapters for quality, repetition and speed, and then listen to the performance. The house should give in eventually, without turning into a cheerful concierge. A little resistance is part of the charm. An endless argument with a garage door is not.
A voice worth waiting for
Two shortcuts, two outputs. Authored text skips fresh dialogue generation, and saved audio skips synthesis. Clean speech drives the animation separately from the audience effects.
A haunted house loses authority if he takes too long to complain. The pipeline releases speakable text before an entire answer is finished, so the house can start talking while the rest of the sentence is still on its way. Prepared greetings and candy jokes cover familiar encounters: the text bank saves language-model work, and cached recordings save speech synthesis. Even an ancient grump benefits from rehearsing.
median end-of-speech-to-audio with Bolt Q4 & TTS = 1.70 seconds
median end-of-speech-to-audio cached responses = 0.72 seconds
(note: speech-end detection currently waits for 300 ms of silence )
NVIDIA Magpie TTS Zeroshot turns text into the Queen’s English. Its zero-shot voice conditioning uses a short reference sample instead of a trained voice; mine supplies the grumpy pirate character. The house has seven moods, from grumpy and menacing to amused and delighted, and emotion tags dictated by the prompt template and provided by the LLM choose how each line is delivered. Since each emotion requires a different 3-10 second voice sample I added a “Sample your Voice” block on the UI’s tool tab. I could then read and record a sample line of text in my best happy pirate or angry pirate voice. When it’s “Go” time, Bolt E4B decides what to say, and Magpie turns that text into speech with the proper delight or despair.
Next down the pipe is Audio2Face-3D and the 3d character scene I created in Epic’s Unreal Engine. The default model weights work best with a clean neutral male or female voice, not too deep, not too high (choose the appropriate gendered model for your use case). I wanted the house to have a very deep and demonic voice with echo and chamber. In this case, since my voice samples don’t have that theatrical heft, it’s actually a benefit. Audio2Face-3D gets clean speech from the samples and a second audio stream adds adjustable real-time vocal effects that play out the speakers.
To keep everything running smoothly, I split the work to a pair of GPUs: the language and voice model pipeline runs on an NVIDIA RTX PRO 6000 Blackwell Max-Q, and Unreal Engine graphics with Audio2Face-3D runs on an NVIDIA RTX PRO 4000 Blackwell. Memory isn’t the issue, compute is. I want to keep animation at a consistent frame rate regardless of what processing the agent pipeline is doing.
Voice, animation and effects have to land together. A convincing monster needs more than a fast answer; it needs to sound as though the complaint belongs to the building. In my case, he does. Tweaks to sync audio delivery are available. I’ve found I could set them and forget them. (100ms compensates for the Audio2Face-3D buffering)
The monster has a control desk
Somewhere along the way, “make the house talk” required an interface full of controls. I can audition cached lines, adjust the opening mood, follow the conversation, change the voice treatment and tune the mouth animation. Tabs cover conversations, model selection, recordings, prompts, performance monitoring and camera feeds, and a soundboard and custom dialogue field let me put words in his mouth. There are also model-loading controls and an Unreal Engine connection indicator, because sometimes the monster is not sulking. He is disconnected.
The MonsterHouse control desk, with the soundboard, custom lines, opening mood and conversation flow.
The fire and glow have joined the act. Editable rules tie visual cues to delivery: live cues begin with speech, while recorded performances can follow a saved timeline. I can direct a change of mood without rebuilding the scene.
Live mode runs the trick-or-treat character. Demo mode persuades The house to explain himself. Microphone mode lets me speak through the house directly, bypassing recognition, dialogue generation and speech synthesis. My clean voice drives the mouth; the audience hears the treated version. The house considers this possession. I consider it a useful fallback.
The next knock at the door
NVIDIA Nemotron 3 Nano Omni is a VLM that gives the house visual context. As an optional observer, it interprets camera images and describes visible costumes so the character has something specific to react to. Not looking to reinvent every wheel, I chose the popular object detection and tracking models YOLO and ByteTrack to count and track people currently in view. Keeping those jobs separate lets the house notice a group without asking Omni to narrate every frame.
For a suitably ridiculous test, I gave Omni a video of five costumed sheep at the door. Its saved analysis identified the pirate, vampire, witch, pumpkin and ghost outfits. That is the sort of visual context I want the house to use. Apparently even livestock have more elaborate Halloween plans than I do.
Five very woolly trick-or-treaters in a synthetic test replay. Costume labels come from the saved Omni analysis; boxes and track IDs are illustrative.
The sheep are a synthetic test, not evidence of a successful Halloween night. Real driveway groups, costumes and night lighting still need testing. Detection does trigger automatic greetings, but I fear trendy costume identification and suitably witty retorts may need some post training. Since the house has no eyes, he calls his visitor awareness echolocation. I am letting him have that one.
There is more to do: the animation can always improve, complete performance testing needs real visitors, and candy will one day be provided automatically. I have not yet reached the original goal of leaving him to run Halloween while I head off with my family to see the other neighborhood ghouls. But that is still the point of all this. One day a child will meet a grumpy old house, try a little kindness and discover that the old timber has a soft spot. And gives out candy bars.
Build your own unreasonable character
The MonsterHouse code itself is not packaged for release, but every NVIDIA model it uses is available today, and the NVIDIA Nemotron Voice Agent gets you most of the way. This is the path I would follow.
Start with the voice pipeline. Clone the NVIDIA Nemotron Voice Agent and run the Generic Assistant example. You get a cascaded pipeline with Nemotron Speech ASR, an LLM and Magpie TTS, plus voice activity detection and end-of-utterance handling, so your character knows when to talk.
Make Bolt E4B the brain. The Voice Agent includes Bolt E4B profiles for cloud, server and single-GPU deployments. You can try the model first on build.nvidia.com .Try conversational mode for short, speech-ready replies, and disable reasoning for simpler exchanges.
Give it a personality. Start with a system prompt and a few connected example dialogues. Keep conversation state, such as who has already said please, in your application instead of asking the model to remember it. When prompting is not enough, train a LoRA adapter; NVIDIA NeMo AutoModel has a LoRA recipe for Bolt E4B.
Give it a voice. Magpie TTS Multilingual is the Voice Agent default. For a custom character, Magpie TTS Zeroshot works from a short reference sample. Try it on build.nvidia.com, and request access to run it yourself. [CONFIRM: access path and link] Use only voices you have permission to use.
Give it a face. NVIDIA Audio2Face-3D turns speech into facial animation for your character. Feed it clean speech and add effects afterward.
Optional: give it eyes. The Voice Agent’s Nemotron Omni Assistant Subagents example adds live webcam understanding with Nemotron 3 Nano Omni . Pair it with a lightweight people tracker if you need counts.
A cached response bank and saved audio for your most common lines will make even a slow monster feel quick. In fact, if you happen to be limited by computing power, there is no reason why you can’t have a Live version that just uses Nemotron 3 ASR, a python conversation router, with all cached audio. You can use the Bolt E4B and Magpie pipeline to generate 100s of responses offline, then use the cache for the show. I’ll be doing this for the interactive pumpkins.
Resources
首次收录 · 2026-10-31 · 10.75 分