Custom Voices With Qwen3-TTS

Armin Ronacher · 2026年10月29日

AI 摘要 AI 生成,可能有误

在开发一款地牢爬行游戏时,作者探索了 Qwen3-TTS,用于创建独特的自定义旁白声音,并介绍了它的三个模型:Base(语音克隆)、CustomVoice(带指令的内置说话人)和 VoiceDesign(根据文本描述创造出的声音)。由于 Base 模型无法对克隆的声音应用诸如“用悲伤的语气说话”之类的指令,他们演示了一种变通方法:从录音中提取 2048 维的说话人嵌入向量,并将其注入 CustomVoice,从而实现对克隆声音的情感控制。文章还展示了嵌入向量运算的创意用法,例如混合两个声音、利用嵌入向量在播客中进行说话人检测,以及沿计算出的性别轴移动某个声音。

With my kids I’m currently building a little dungeron crawler and we’re trying to learn a bit about game development along the way. However given that we live in the modern times of increasing capabilities we wanted to get a narrator and voice over.

But we also wanted it to not sound like everyone’s standard AI voices so I looked into what options there are on the table. After some investigation I narrowed down to using Qwen3-TTS which uses voice embeddings for custom voices.

With a bit of creativity you can also do more with those custom voices than appears initially. In case this is of interest to you, this post just covers what we learned and with some examples. You can probably point your agent to it and it can do something with it.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Armin Ronacher

Bob’s Company

AI 摘要Bob, a former software engineer who spent 27 years running a niche software company for car enthusiasts and mechanics, became obsessed with AI coding tools like Claude and Codex and fired all but three of his engineers, who now spend their days reviewing the AI-generated code he produces on weekends. Ironically, the same AI tools that Bob believes will replace his engineers are also making it possible for others to replicate his entire business, while his remaining, demotivated engineers may leave. His company could emerge leaner and better, or Bob could end up alone with no business at all.

Abolish Lock Poisoning

AI 摘要The article argues that Rust's mutex poisoning feature—where a mutex becomes permanently unusable after a panic while locked—should be removed or made opt-in, claiming the author has never seen code that handles poisoned locks correctly in practice. Real-world examples from RLS, Mozilla, Tokio, rust-analyzer, and even the standard library itself show poisoning causing deadlocks, cascading panics, and prolonged outages rather than enabling recovery, with most major Rust projects already using non-poisoning locks. The author proposes stabilizing std::sync::nonpoison as the default and offering a separate Poison wrapper for those who genuinely want poisoning semantics.

AI and Irontown

AI 摘要The author draws a parallel between Princess Mononoke and today's AI debate: like Lady Eboshi's Irontown, which gave work and dignity to society's outcasts while destroying the surrounding forest, AI empowers people who were previously excluded while imposing real costs on others, often those who don't benefit from it. As in the film, fear of losing a race for power drives destructive behavior whose consequences are not fully understood. The author calls for nuance in the AI conversation, urging us to embrace its genuine benefits, acknowledge its harms, and 'see with eyes unclouded by hate' before losing something irreplaceable.

What is Codemode

AI 摘要The article introduces Codemode, a new Pi 1.0 feature that lets the LLM orchestrate complex operations on the harness side by writing JavaScript that runs in a heavily sandboxed QuickJS/WASM runtime with no network, file system, or timers. Because tool calls are composed in code rather than passing through the model's context, Codemode avoids context bloat, enables concurrency and multi-step workflows, allows state to be stashed and reloaded across invocations, and exposes internal APIs like image generation and classifier models (e.g., Jev) as well as MCP servers without loading their tools into the context. The author illustrates these capabilities with real agent-generated examples, including image creation, sentiment analysis of GitHub issues, driving a tank game loop with a classifier, and tool discovery for MCP servers.

Deser: Rethinking Rust Serialization

AI 摘要The article introduces Deser, a Rust serialization library built to address structural limitations of Serde—such as lossy buffering for internally tagged enums and flatten, non-composable adapters, and stack-based recursion—through an event-driven sink/emitter architecture that keeps state on the heap in a driver. This design enables suspension of deserialization, arbitrary nesting without stack overflows, lossless buffering, an extensible data model, middleware layers, and composable adapters, though it deliberately excludes non-self-describing formats like protobuf and trades off some binary size and runtime performance. While the author doubts Serde can be truly replaced due to the orphan rule, Deser now supports all major self-describing formats (including XML) and is presented as a viable drop-in alternative or at least inspiration for exploring the design space.