Tyrbo 素材生成器(英文) 推广联盟 制作你的游戏

AI游戏音效生成:音效、音乐、配音、复古音都能做

角色起跳却没有声音,玩家会以为是 bug。asset 命令行有四个和声音有关的命令:asset sfx 按文字做音效,asset music 做一段曲子,asset voice 念一句台词,asset synth 用代码合成复古音效,不花钱。

每个命令写出一个文件,名字就是你取的那个词,door 就成了 door.mp3。同时它打印一行 JSON 说明文件名,你读得懂,编程助手也一样读得懂。

Tyrbo 应用也支持简体中文:它会跟随你的浏览器语言,你也可以在设置中更改。

把这段发给你的编程助手
Set up Tyrbo asset gen for me so I can make my game's art, sprite sheets, animated characters, 3D models, UI and sound from here, all in one look.
1. Install the CLI: run `npm install -g @tyrbo/asset` (Node 20.11 or later).
2. Add the skill: in Claude Code, run `claude plugin marketplace add https://cdn.jsdelivr.net/npm/@tyrbo/asset/.claude-plugin/marketplace.json`, then `claude plugin install tyrbo-asset@tyrbo`. In another MCP client, add the MCP server `npx -y @tyrbo/asset mcp`. In any other agent, read `asset --help` before the first call.
3. Check it, free: in an empty scratch folder, not my game's, run `asset look grove "hand-painted fantasy forest, soft dappled light" --view top-down --mock`. It needs no key and writes stand-in files there.
4. Authenticate: ask me to make an asset key at https://app.tyrbo.ai/?from=/asset-generator#/settings/assets (Settings, Asset gen) and to run `asset login` in my own terminal, pasting the key there. Never ask me for the key in chat, and never run `asset login` yourself. Once I have, run `asset spend` to see it works.
Once that's done, let me know when it's ready.

要运行的命令

asset sfx door "a heavy wooden door creaks open" --seconds 2
asset sfx rain "soft rain on a tin roof" --seconds 10 --loop
asset music theme "calm folk adventure, slow tempo, fiddle and harp"
asset voice greet "Welcome back, traveller."
asset synth coin pickup --seed 7

用文字做音效:asset sfx

像跟拟音师交代那样描述声音:是什么东西,它发生了什么,在哪里。比如“一扇沉重的木门吱呀打开”“一把剑从皮鞘里抽出”“一团史莱姆啪地落在石头上”。

--seconds 设定时长,从半秒到 30 秒,不写就是一秒。--loop 要一段能循环的声音,适合雨声、风声、人群或引擎的嗡嗡声。文件是 <name>.mp3。

简短、具体的描述效果最好:一个声音只写一件事,一次调用只要一个声音,这样每个都是单独的文件,可以单独触发。

音乐和配音

asset music 从描述里读出情绪、风格、速度和乐器,写出一段 30 秒的 <name>.mp3,比如“紧张的地牢氛围,低沉的持续音”“轻快的芯片音乐冒险”“舒缓的民谣,小提琴和竖琴”。游戏里每个地方要一首:菜单、村庄、Boss 战。更多写法见 AI游戏音乐生成。

asset voice 把你给的那句话一字不差地念出来,存成 <name>.mp3,可以是店主的招呼、新手教程的提示,或者解说员喊的“第二回合!”。--voice 按编号挑一个声音,让同一个角色所有台词都用同一副嗓子。

用代码合成复古音:asset synth

asset synth <name> <preset> 在代码里直接合成声音,不调用模型,也不收费,文件是 <name>.wav。它的预设覆盖了街机类游戏最常用的那些:

  • pickup、blip 和 win,用于奖励和菜单;
  • jump、step 和 shoot,用于移动和动作;
  • hit、explosion 和 lose,用于受伤和结局。

--seed 换同一个预设的另一个变体,同一款游戏里的两种金币声就能不一样。它很适合 像素风(英文)游戏,也是在花任何钱之前,先给原型配齐所有声音的快捷办法。

文件放在哪里

每个声音都存进 ./public/assets/,或者 TYRBO_ASSET_OUT 指向的地方,按你取的名字命名。每次付费调用运行前都会报价,余额不够就会拒绝;以前要过的声音,从你账号的缓存里免费取回。

--mock 不需要密钥,离线就能跑这些命令,所以可以先把文件名接进游戏,之后再要真正的声音。每个命令的价格在 价格页(英文)。

大家常问的问题

有免费的部分吗?

有。asset synth 永远免费,重复要的声音从缓存里取,--mock 离线运行所有命令,不花钱。

声音会跟着游戏的画风走吗?

不会。画风是一张图,只引导图片。声音只听它自己的描述,所以每次都要写清材质、动作和情绪。

一个音效最长多久?

用 --seconds 可以设半秒到 30 秒,不写就是一秒。音乐固定是 30 秒。

先装好它,再说出你要的画风。

获取素材密钥

先在 Tyrbo 应用里创建密钥,再运行 asset login。想先免费试,给任何命令加上 --mock 即可。