领域深度 · 音乐与音频Field guide · Music and audio
音乐生成:从风格描述到能发布的音频Music generation: from a style brief to audio you can release
你写了一句“温暖、电影感、钢琴”,出来一段很好听的 30 秒,但广告要的是 15 秒、要有人声、要能 loop、还要能商用。音乐任务先定交付物:成曲、分轨、循环、音效还是配音。交付物定了,工具和验收才有意义。You type “warm, cinematic, piano” and get a lovely 30 seconds. The ad needs 15 seconds, a vocal, a seamless loop and commercial clearance. Fix the deliverable first: a song, stems, a loop, a sound effect or a voice-over. Once that is fixed, tools and acceptance mean something.
- 先定交付物:成曲、分轨、循环、音效、配音。Fix the deliverable: song, stems, loop, sound effect or voice-over.
- 风格要写成参数:乐器、节奏、情绪、时长、禁区。Turn style into parameters: instruments, tempo, mood, length and exclusions.
- 商用看训练数据、声音、采样和歌词四层权利。Commercial use depends on four rights: training data, voice, samples and lyrics.
完整版从下面开始;表格是查的时候用,不用背。The full guide starts below. Use the tables for reference; you do not need to memorise them.
假设一个具体活:给 15 秒咖啡广告做一条轻快钢琴,要求可循环、无人声、能商用、响度跟平台一致。先把这五条写进交付单。Take one concrete job: a 15-second coffee ad, light piano, loopable, no vocal, commercially cleared and loudness-matched to the platform. Put those five lines in the delivery sheet.
1 · 交付物决定工具链1 · The deliverable decides the toolchain
“做一首歌”可以指五种不同的东西:流媒体成曲、可编辑的分轨、短视频循环、游戏音效、广告配音。成曲要母带与响度。分轨要每件乐器单独输出、相位与命名清楚。循环要无缝、可拼接。音效要短、干净、可循环。配音要口型或时长匹配。交付物没定,后面所有选择都会返工。“Make a song” can mean five different things: a streaming master, editable stems, a short-video loop, a game sound effect, or an ad voiceover. A master needs loudness and delivery; stems need separate instrument outputs, phase and naming; a loop must be seamless and tileable; a sound effect must be short, clean and loopable; a voiceover must match lip or duration. Without a deliverable, every later choice reworks.
先写一张交付单:时长、采样率、声道、格式、响度目标、是否需要分轨、歌词语言、授权范围、截止时间。这张单子既是给生成工具的约束,也是给混音、法务和平台的交接物。Write a delivery sheet first: duration, sample rate, channels, format, loudness target, whether stems are needed, lyric language, rights scope and deadline. It constrains the generation tool and becomes the handoff to mixing, legal and the platform.
| 交付物Deliverable | 关键规格Key spec | 验收证据Acceptance evidence |
|---|---|---|
| 流媒体成曲Streaming master | 时长、采样率、响度、真峰值Duration, sample rate, loudness, true peak | 母带文件、响度报告、平台上传通过Master file, loudness report, platform upload accepted |
| 分轨Stems | 每轨独立、命名、相位、采样率一致Separate tracks, naming, phase, same sample rate | 逐轨试听、重混一致、无缺轨Per-track listen, remix consistency, no missing stem |
| 短视频循环Short-video loop | 无缝、首尾可拼、时长适配Seamless, tileable, duration fit | 循环十次无跳点、平台裁切通过Ten loops without a jump, platform trim accepted |
| 游戏音效Game SFX | 短、干净、可循环、触发延迟Short, clean, loopable, trigger latency | 引擎内触发测试、无爆音In-engine trigger test, no pop |
| 广告配音Ad voiceover | 口型/时长、语气、授权Lip/duration, tone, consent | 与画面对齐、盲听通过、授权记录Aligned to picture, blind listen passed, consent record |
2 · 把风格写成可执行参数2 · Turn style into executable parameters
“史诗感”“治愈”“赛博”不是参数。把它们拆成可执行项:时长、段落数、每段小节数、 tempo、拍号、调性、乐器编制、人声类型、语言、情绪曲线、参考曲目、禁止元素。生成工具不一定全部听得懂,但混音、编曲和验收需要这些。“Epic”, “healing” and “cyber” are not parameters. Break them into executable items: duration, number of sections, bars per section, tempo, time signature, key, instrumentation, voice type, language, emotional arc, reference tracks and forbidden elements. A generator may not understand all of them, but arranging, mixing and acceptance need them.
参考曲目只用来描述方向,不要要求“复制某首歌”。可以直接说“相似的节奏密度和配器”,但不能把受版权保护的旋律、歌词或声音当成模板。参考越具体,越要记录来源与授权状态,避免把“风格参考”滑成“侵权采样”。Use reference tracks to describe direction, not to request a copy. “Similar rhythmic density and instrumentation” is acceptable; a copyrighted melody, lyric or voice is not a template. The more specific the reference, the more important it is to record source and rights status, so “style reference” does not slide into “infringing sample”.
| 参数Parameter | 写成什么Write it as | 为什么Why |
|---|---|---|
| 时长Duration | 秒数或小节数Seconds or bars | 决定生成分段与循环点Sets generation segments and loop points |
| 结构Structure | Intro/Verse/Chorus/Bridge 与小节数Intro/verse/chorus/bridge with bar counts | 避免生成后强行裁剪Avoid post-hoc cutting |
| 节奏Rhythm | BPM、拍号、律动类型BPM, time signature, groove | 影响演奏与混音Affects performance and mixing |
| 配器Instrumentation | 乐器、音域、独奏/合奏Instruments, ranges, solo/ensemble | 决定分轨与音色Sets stems and timbre |
| 人声Voice | 类型、语言、音色、情绪Type, language, timbre, emotion | 决定 TTS/歌声与授权Sets TTS/singing voice and consent |
| 禁区Exclusions | 不要的乐器、词汇、风格Unwanted instruments, words, styles | 减少返工与权利风险Less rework and rights risk |
3 · 生成方式:文本、MIDI、音频参考、歌声3 · Generation routes: text, MIDI, audio reference and singing
文本到音乐适合快速探索配器与氛围,但对精确小节、歌词对齐和可编辑性的控制较弱。MIDI/DAW 适合先定节奏与结构,再用音源或生成工具填充。音频到音频适合改风格、续写或变奏,但会继承原音频的瑕疵与权利。歌声合成适合已知歌词与旋律,但要额外处理发音、呼吸和情感。Text-to-music is good for quickly exploring instrumentation and mood, but weaker on exact bars, lyric alignment and editability. MIDI/DAW is good for fixing rhythm and structure before filling with instruments or generation. Audio-to-audio suits style transfer, continuation or variation, but inherits the source’s flaws and rights. Singing synthesis suits known lyrics and melody, but needs extra work on pronunciation, breath and emotion.
选择顺序通常是:先定结构与时长,再定哪些段落必须可编辑,最后才选生成方式。需要反复改小节和歌词的广告歌,优先 MIDI/DAW 加生成填充。一次性氛围音乐可以用文本生成。有明确歌手的品牌曲,先解决声音授权,再谈生成。The usual order: fix structure and duration, decide which sections must stay editable, then choose the route. An ad song that will be revised bar by bar should start in MIDI/DAW with generated fills; one-off ambient music can start from text; a brand track with a named singer needs voice rights settled before generation.
4 · 结构和歌词:先对齐时间轴4 · Structure and lyrics: align to a timeline first
音乐是时间艺术,结构必须落到小节和秒。先画时间轴:0–8 秒前奏、8–24 秒主歌、24–40 秒副歌。再把歌词按句对齐到小节。生成工具经常在段落边界“漂移”,所以要么分段生成再拼,要么生成后用 DAW 对齐,不要指望一次生成就卡准。Music is time-based; structure must land on bars and seconds. Draw a timeline first: 0–8 s intro, 8–24 s verse, 24–40 s chorus; then align lyric lines to bars. Generators often drift at section boundaries, so either generate in segments and assemble, or align in a DAW afterwards. Do not expect one pass to land exactly.
歌词要单独校对:多音字、专名、数字、押韵、每句音节数、语言切换。合成歌声还要标注重音、停顿和呼吸。否则会出现“字都对、唱起来不像歌”。如果歌词由模型生成,先做事实与版权检查,再进录音或合成。Proofread lyrics separately: polyphones, names, numbers, rhyme, syllable count and language switches. Singing synthesis also needs stress, pauses and breath; otherwise every word is right and it still does not sound like a song. If a model wrote the lyrics, check facts and rights before recording or synthesis.
- 先写时间轴:每段起止秒数、小节数、调性与 tempo。Write the timeline first: start/end seconds, bars, key and tempo for each section.
- 歌词逐句对齐:一句一行,标注重音、停顿与呼吸。Align lyrics line by line with stress, pauses and breath.
- 分段生成:前奏、主歌、副歌、桥段分开跑,再拼接。Generate in segments: intro, verse, chorus and bridge separately, then assemble.
- 保留干声与伴奏:方便重混、换语言或改歌词。Keep dry vocals and accompaniment for remixing, language changes or lyric edits.
5 · 混音与母带:响度、动态、分轨5 · Mixing and mastering: loudness, dynamics and stems
交付前至少统一三件事:采样率与位深(常见 44.1 kHz 或 48 kHz、24 bit)、声道与相位、响度与真峰值。流媒体平台通常会把响度再归一化,很多平台以约 -14 LUFS 作为参考。具体目标以平台规范为准。把母带推得过高,平台会压回来,动态反而更差。Before delivery, align at least three things: sample rate and bit depth (commonly 44.1 kHz or 48 kHz, 24-bit), channels and phase, loudness and true peak. Streaming platforms normalise loudness again; many use around -14 LUFS as a reference, but the exact target is platform-specific. Push the master too hot and the platform turns it down, often reducing dynamics.
分轨交付要写清命名、轨道顺序、增益与相位。把每件乐器单独导出,不要用“整轨加静音”冒充分轨。检查是否有缺轨、重复轨、采样率不一致或直流偏移。混音里保留一点噪声和呼吸通常比“绝对干净”更像真实录音,但不要用噪声掩盖生成瑕疵。Stem delivery needs naming, track order, gain and phase. Export each instrument separately; do not fake stems by duplicating a full mix with muted regions. Check for missing or duplicate tracks, sample-rate mismatch and DC offset. A little noise and breath often sounds more real than absolute cleanliness, but do not use noise to hide generation artefacts.
| 检查项Check | 目标Target | 常见错误Common error |
|---|---|---|
| 采样率/位深Sample rate/bit depth | 全链统一,交付写清Consistent chain, stated on delivery | 生成 48 kHz、伴奏 44.1 kHz48 kHz generation, 44.1 kHz backing |
| 响度Loudness | 按平台规范,留真峰值余量Follow platform spec, leave true-peak headroom | 盲目推到 0 dBFSPushing blindly to 0 dBFS |
| 相位Phase | 分轨合并后不抵消No cancellation when summed | 立体声处理导致单声道抵消Stereo processing cancels in mono |
| 分轨Stems | 每轨独立、命名一致Separate, consistently named | 重复轨、缺轨、静音轨Duplicate, missing or silent stems |
| 噪声Noise | 保留真实底噪,不掩盖瑕疵Keep natural noise, do not mask artefacts | 用噪声盖掉生成爆音Noise used to hide generated pops |
6 · 权利:训练数据、声音、采样、歌词6 · Rights: training data, voice, samples and lyrics
一首生成曲涉及四层权利:模型与服务的条款、训练数据与风格来源、输入素材(参考音频、采样、歌词)的权利、输出音频的使用范围。它们不是同一件事。模型允许商用,不代表参考曲目可以拿来训练或采样。输出归你,也不代表歌词或声音形象可以随便用。A generated track involves four layers of rights: model and service terms, training data and style sources, rights in input material (reference audio, samples, lyrics), and the permitted use of output audio. They are not the same thing. A commercial model licence does not mean a reference track may be used for training or sampling; owning the output does not mean lyrics or voice likeness are free to use.
声音是高风险输入。用真人歌手、配音演员或公众人物的声音,要有同意、用途、期限和撤回机制。用平台声音库,要读清允许的发布渠道。歌词如果由模型生成,也要查重与事实核对。采样和翻唱涉及额外的录音与词曲权利,不能靠“改了几个音符”绕过。Voice is high-risk input. Using a real singer, voice actor or public figure needs consent, use, duration and a withdrawal mechanism. Using a platform voice library requires reading the permitted release channels. Model-written lyrics still need originality checks and fact review. Samples and covers involve separate recording and composition rights; changing a few notes does not bypass them.
7 · 成本:按成片分钟算,不按调用次数算7 · Cost: per finished minute, not per call
生成调用只是成本的一项。还要算重试、分段生成、分轨导出、混音与母带、歌词校对、声音授权、平台审核和返工。用“每首完成曲”或“每分钟成片”做分母,才能和外包、买曲库或自己做比较。Generation calls are one cost line. Add retries, segmented generation, stem export, mixing and mastering, lyric proofreading, voice licensing, platform review and rework. Use “per finished track” or “per finished minute” as the denominator so the number is comparable with outsourcing, library music or in-house work.
一个可复算的式子:每分钟成本 =(生成调用 + 重试 + 存储 + 授权)/ 成片分钟 + 混音分钟 × 人工单价 + 返工成本。分母只算通过验收的成片,不算所有草稿。若授权或人工是大头,先把这两项谈清,再优化模型价格。A recomputable formula: cost per finished minute = (generation calls + retries + storage + licences) / finished minutes + mixing minutes × labour rate + rework. The denominator counts only accepted finished minutes, not every draft. If licensing or labour dominates, settle those before optimising model price.
8 · 失败分支:先听现象,再查环节8 · Failure branches: listen to the symptom, then locate the stage
音乐失败常常不是“模型不会”,而是结构、对齐、混音或权利中的一项。按听到的现象倒查,不要一次改五个参数。每次保留生成原始文件、DAW 工程和母带,才能比较改动前后。Music failures are often not “the model cannot”. They sit in structure, alignment, mixing or rights. Work backwards from what you hear and do not change five parameters at once. Keep the raw generation, DAW project and master so before/after can be compared.
段落长度不对
优先怀疑:生成漂移、时间轴没锁
核对动作:按小节重生成或 DAW 裁剪Sections wrong length
Suspect first: Generation drift, unlocked timeline
Check: Regenerate by bars or cut in DAW
副歌进不来/情绪断层
优先怀疑:段落能量没有递进、配器重复
核对动作:检查每段配器与动态Chorus does not land
Suspect first: No energy lift, repeated instrumentation
Check: Inspect instrumentation and dynamics per section
歌词唱错或吞字
优先怀疑:多音字、音节数、重音标记
核对动作:逐句校对文本与音素Lyrics wrong or swallowed
Suspect first: Polyphones, syllable count, stress markup
Check: Proofread text and phonemes line by line
人声像机器人
优先怀疑:合成模型、韵律、呼吸、混音
核对动作:干声盲听,换参考或换模型Voice sounds robotic
Suspect first: Synthesis model, prosody, breath, mix
Check: Blind-listen dry vocal; change reference or model
爆音、削波、相位抵消
优先怀疑:增益结构、真峰值、立体声处理
核对动作:看波形与单声道折叠Pops, clipping, phase cancellation
Suspect first: Gain staging, true peak, stereo processing
Check: Inspect waveform and mono fold-down
平台上传被拒
优先怀疑:响度、格式、版权标记、元数据
核对动作:对照平台交付规范逐项检查Platform rejects upload
Suspect first: Loudness, format, rights flags, metadata
Check: Check each platform delivery rule
9 · 最小落地路径9 · A minimum path to a finished track
先做一段 30 秒的样片,验证风格、结构和声音,再扩展到整首。样片通过后再谈母带与分轨,避免整首做完才发现方向错了。Make a 30-second proof first to validate style, structure and voice, then extend to the full track. Settle the master and stems after the proof passes, so a full production does not reveal a wrong direction.
- 写交付单:成曲、分轨、循环、音效还是配音。时长、格式、响度、授权。Write the delivery sheet: track, stems, loop, SFX or voiceover; duration, format, loudness, rights.
- 写一页 brief:结构、小节、tempo、调性、配器、人声、禁区、参考。Write a one-page brief: structure, bars, tempo, key, instrumentation, voice, exclusions, references.
- 先做 30 秒样片:验证风格与结构,不急着生成整首。Make a 30-second proof: validate style and structure before generating the full track.
- 定生成方式:文本、MIDI/DAW、音频参考或歌声合成,写清可编辑段。Choose the route: text, MIDI/DAW, audio reference or singing synthesis; mark editable sections.
- 对齐歌词与时间轴:逐句校对,标注重音、停顿和呼吸。Align lyrics and timeline: proofread line by line, mark stress, pauses and breath.
- 混音与母带:统一采样率、相位、响度与真峰值。Mix and master: align sample rate, phase, loudness and true peak.
- 做权利表:模型、参考、采样、歌词、声音逐项记录。Build the rights table: model, references, samples, lyrics and voice, item by item.
- 交付母带 + 分轨 + 响度报告 + 权利记录,再上传平台。Deliver master, stems, loudness report and rights record before uploading.
来源与延伸阅读Sources and further reading
以下链接用于核对事实、许可证与官方口径。外部页面可能更新;引用时以原文与核验日为准。These links are for checking facts, licences and official scope. External pages may change; cite the original text and check date.
- MusicGen: Simple and Controllable Music GenerationMusicGen paper文本到音乐的论文,说明条件生成、旋律对齐与评测思路;具体模型与许可以官方仓库为准。Paper on text-to-music, conditional generation, melody alignment and evaluation; models and licences remain with the official repository.
- EnCodec: High Fidelity Neural Audio CompressionEnCodec paper神经音频编解码的论文,解释音频 token、码率与重建质量的关系。Paper on neural audio codecs, audio tokens, bitrate and reconstruction quality.
- ITU-R BS.1770ITU-R BS.1770响度与真峰值测量的国际建议;具体平台目标仍以其交付规范为准。International recommendation for loudness and true-peak measurement; platform targets remain with their delivery specs.
- Creative Commons licensesCreative CommonsCC 许可证的官方说明,含署名、非商业与相同方式共享条件;不覆盖声音肖像与平台条款。Official CC licence explanations, including attribution, non-commercial and share-alike terms; they do not cover voice likeness or platform terms.
- 学 AI · 文字怎么变成声音Learn · Text to speech语音合成的概念页,帮助区分 TTS、歌声合成与声音克隆。Concept page on speech synthesis, separating TTS, singing synthesis and voice cloning.
- 工具站 · AI 音频与语音Tools · Audio音频工具的任务分类与档案入口,不是质量排名。Task-based audio tool dossiers; not a quality ranking.
- 工具站 · 成本算式Tools · Cost calculator按调用、单位与人工估算成本的方法页。Method page for estimating cost from calls, units and labour.
- Specul · 第三方素材与署名Specul · Third-party assets素材台账、第三方内容与署名要求的站内说明。Site notes on the asset register, third-party content and attribution.
下一步Next
- 回到“用 AI 写音乐”路线Back to the music route
- 下一步:人声和配音怎么接Next: how voice-over fits in
- 看其他 15 条主题路线Browse the other 15 topic routes
如果你照着做时卡住了,先回到对应主题路线,不要从头重读。If you get stuck while following it, go back to the matching route instead of rereading the whole guide.
← 回到首页← Back to home 发现错误?提交纠错Spot an error? Send a correction