音频人工智能指南

歌声合成

歌声合成(SVS)是一种将乐谱(即歌词加上音高和时值的音符)转换为演唱录音的技术。

听听这个指南AI叙述 · ~8 min

在本页阅读时间 9 分钟
  1. 概述
  2. 主要要点
  3. 深入探讨
  4. 通过神经网络 SVS 流水线追踪一段歌唱旋律
  5. 现实世界的实施
  6. 歌声合成的未来
  7. 付诸实践
  8. 资料来源与延伸阅读
  9. 不断探索
  10. 常见问题

概述

它从 2004 年雅马哈基于采样的 VOCALOID 发展到了如 DiffSinger 和 VISinger 等神经网络系统,如今它不仅驱动着音乐制作工具,也对声音版权和深度伪造技术引发了新的审视。

主要要点

  1. 歌声合成根据歌词、音高和音符时长的乐谱生成演唱音频,而不是根据纯文本生成。
  2. 雅马哈的 VOCALOID 于 2004 年首次发售,并推出了 Leon 和 Lola 语音库,通过拼接从真实歌手那里录制的短音频片段来构建歌曲。
  3. 现代神经系统可以预测音素时长、音高曲线和梅尔频谱图,然后利用声码器生成最终的音频波形。
  4. DiffSinger 的浅扩散技巧从粗略预测开始去噪,将推理时间缩短了 45.1%,同时提升了听众的评分。
  5. 2023 年的一项 SingFake 研究表明,针对口语深度伪造训练的检测器在合成歌唱上的表现很差,因此歌唱需要专属的检测模型。

深入探讨

Singing voice synthesis is the singing counterpart of text-to-speech. Instead of only a sentence to read, the system receives a score: the lyrics, the note each syllable falls on, how long each note lasts, and often tempo, dynamics and expression marks. Its job is to produce audio of a specific voice singing that score in tune and in time. Singing is harder than speech for several reasons. Pitch must land on exact notes, vowels are stretched over long durations, vibrato and breath must sound natural, and the vocal range covered is much wider than in conversation.

Modern neural systems usually split the work into stages. First, a front end converts lyrics into phonemes (the individual speech sounds) and aligns each phoneme with a note. Second, a duration model decides how many audio frames each phoneme receives inside its note; consonants are short and vowels absorb most of the note length. Third, an acoustic model predicts a mel-spectrogram, a picture of how energy is spread across frequencies over time, along with the fundamental frequency (F0) curve that defines pitch, including vibrato and slides between notes. Fourth, a vocoder turns that spectrogram into an audio waveform. Some newer systems merge the last two stages and generate audio directly from the score.

The first commercial generation used concatenation. Yamaha began developing VOCALOID in 2000, revealed it at Musikmesse in Frankfurt in 2003, and shipped the first products, the English voicebanks Leon and Lola by Zero-G, at the NAMM Show in 2004. As described by Yamaha engineers Hideki Kenmochi and Hayato Ohshita at Interspeech 2007, VOCALOID stitched together short samples recorded from a real singer and adjusted their pitch and timing to match the score. Users edited pitch curves and expression parameters by hand in a piano-roll editor. VOCALOID2 and the Hatsune Miku voicebank arrived in 2007, and versions 3, 4 and 5 followed in 2011, 2014 and 2018, according to Yamaha's official timeline.

The second generation was statistical. The Sinsy project at Nagoya Institute of Technology modeled singing with hidden Markov models (HMMs), probabilistic models that generate smooth parameter trajectories. Statistical models needed less storage than sample libraries and could produce any note smoothly, but they tended to sound muffled. Its developers later rebuilt Sinsy around deep neural networks, reporting in IEEE/ACM Transactions on Audio, Speech, and Language Processing (2021) that the DNN version improved timing, vibrato and pitch accuracy and scored higher in listening tests. That version has four modules: a time-lag model, a duration model, an acoustic model and a pitch-robust neural vocoder called PeriodNet.

The third generation is deep generative modeling, borrowed largely from speech synthesis. XiaoiceSing (2020) adapted the FastSpeech text-to-speech architecture, adding note pitch and length to each phoneme, a residual connection so predicted pitch stays near the written note, and a loss that keeps the summed phoneme durations equal to the note length. Against a convolutional baseline, its authors reported mean opinion score (MOS, a 1 to 5 listener rating) gains of 1.44 for sound quality and 1.38 for naturalness. DiffSinger from Zhejiang University (AAAI 2022) used a diffusion model, which learns to turn random noise into a mel-spectrogram step by step, and introduced a "shallow diffusion" shortcut that starts from a rough prediction instead of pure noise. VISinger (ICASSP 2022) adapted the end-to-end VITS speech model to produce waveforms directly from lyrics and score.

The approaches trade off differently. Concatenative systems preserve the exact timbre of the recorded singer but can produce audible joins and need large, carefully recorded libraries. HMM systems are compact and controllable but sound buzzy or flat. Neural acoustic models produce far more natural output but need hours of clean, annotated singing; DiffSinger's PopCS dataset, for example, holds 117 Mandarin pop songs, 5.89 hours from one female vocalist, recorded in a studio and annotated with phoneme alignments and pitch. A separate family, singing voice conversion, takes an existing sung recording and changes whose voice it sounds like; it needs no score but depends on a human performance as input.

The limits are both technical and social. Data is scarce because singing must be recorded dry, without accompaniment, and labeled note by note. Models trained on one singer struggle with styles outside that data, such as growls, falsetto or extreme ranges. Pitch errors are easy to hear, which is why Sinsy added automatic pitch correction for out-of-tune training phrases. Expressive control is still often done by hand, as in the VOCALOID editors. On the social side, convincing synthetic singing enables voice cloning of real artists. The SingFake study (ICASSP 2024) found that four leading detectors built for spoken deepfakes performed poorly on singing, and that even detectors retrained on singing struggled with unseen singers, languages and audio codecs.

In practice, training a research model is modest by modern AI standards. DiffSinger's authors trained on one Nvidia V100 GPU, with about 16 hours for a warm-up stage and 12 for the main stage, and the model generated a second of mel-spectrogram in 0.191 seconds before vocoding. The harder cost is data: recording, cleaning and aligning hours of a consenting singer's voice. Commercial products bundle that work into voicebanks that musicians license and control through note editors inside digital audio workstations.

04工作示例

通过神经网络 SVS 流水线追踪一段歌唱旋律

  1. 为歌词“hello”编写一个乐谱,使用两个四分音符,C4 然后是 E4,速度为每分钟 120 拍,因此每个音符持续 0.5 秒。

  2. 将歌词转换为音素,如 h、e、l、ou,并将 h 和 e 分配给第一个音符,将 l 和 ou 分配给第二个音符。

  3. 让时长模型将每个 0.5 秒的音符拆分为帧,给短辅音分配几帧,其余部分分配给元音。

  4. 让音高模型生成一条 F0 曲线,使其在 C4 附近保持在 261.6 Hz,向上滑动,并在 E4 附近稳定在 329.6 Hz,并带有轻微的颤音。

  5. 将音素、帧数和 F0 输入声学模型,生成一个覆盖一秒钟的 80 频段梅尔频谱图。

  6. 将梅尔频谱图传递给神经声码器以渲染波形。

它显示了什么

输出大约是一秒钟所选声音在两个音符上演唱“hello”的音频。通过对音频运行音高跟踪器并确认 F0 在几个音分内与 C4 和 E4 匹配,以及通过聆听音符变化处清晰的辅音时机来检查它。

现实世界的实施

Crypton Future Media于2007年8月31日为雅马哈的VOCALOID2引擎发布了初音未来语音库,让用户通过输入音符和歌词来制作由虚拟角色演唱的歌曲。

雅马哈的VOCALOID:AI项目为2019年NHK的特别节目重现了已故日本歌手美空云雀的声音,该节目旨在纪念她逝世30周年。

雅马哈于2022年发布的VOCALOID6为这一长青产品线添加了基于AI的引擎,随后在2024年推出了新的AI声库。

名古屋工业大学的Sinsy系统最初采用统计HMM模型,后来围绕深度神经网络进行了重建,其开发人员在2021年报告称其在节奏、颤音和音高准确度方面均有所提升。

研究人员在2023年发布了SingFake,这是一个包含28.93小时真实歌声和29.40小时由40位歌手生成的AI歌声的数据集,旨在训练歌声深度伪造检测器。

歌声合成的未来

Research directions visible in recent work include end-to-end systems that skip the separate vocoder, as VISinger did in 2022 and as the DiffSinger authors listed as future work; multilingual and cross-lingual voices, which VOCALOID3 began commercially in 2011 with five languages; and finer expressive control so musicians can shape breath, vibrato and timbre without hand-drawing every curve. Data remains the bottleneck, so methods that learn from fewer hours of a singer or from mixed recordings separated by source-separation tools are active areas. Commercial products have moved toward AI engines. Yamaha released VOCALOID6 with an AI-based engine in 2022 and distributed the experimental VX-beta as a free VOCALOID6 add-on in 2024, according to its official history. In parallel, detection research is growing: the SingFake authors (2023) reported that unseen singers, languages, codecs and musical contexts remain hard for detectors. How consent, licensing and attribution for synthetic singing voices will be handled, especially when a voice resembles a living or deceased artist, is an open question for both industry and regulators.

付诸实践

为什么这很重要

  • 交通与覆盖范围. 它通过转录、旁白和语音界面提高了可访问性。
  • 成本与预算. 媒体团队可以用更少的预算更快地交付精美的音频。
  • 速度与规模. 面向客户的系统可以处理更大规模的语音交互。

留意

  • 如果未征得同意,语音滥用和冒充风险就会增加。
  • 由于口音、方言或嘈杂的环境,准确性可能会下降。
  • 如果没有明确的标签,合成音频可能会被误认为是真实的语音。

后续步骤

  1. 获得语音捕获、克隆和重用的明确同意。
  2. 测试不同扬声器和背景条件下的质量。
  3. 定义人员必须审查或批准输出的时间。
  4. 标记合成音频并保留来源记录以供问责。

资料来源与延伸阅读

  1. ISCA Archive (Interspeech 2007)VOCALOID - 基于样本拼接的商业歌声合成器
  2. Yamaha CorporationVOCALOID 20周年历史
  3. arXiv (IEEE/ACM TASLP 2021)Sinsy:一种基于深度神经网络的歌声合成系统
  4. arXivXiaoiceSing:一种高质量且集成的歌声合成系统
  5. arXiv (AAAI 2022)DiffSinger:通过浅层扩散机制实现的歌声合成
  6. arXiv (ICASSP 2022)VISinger:用于端到端歌声合成的变分推理与对抗学习
  7. arXiv (ICASSP 2024)SingFake:歌声深度伪造检测

不断探索

免费通讯

获取每日AI简报

每个工作日早晨提供三条经过验证的AI故事,使用简明英文撰写。永久免费,无广告。

每个工作日发送一封邮件。一键退订。我们永不出售或分享您的地址。

测试一下自己

参加歌声合成测验

每个答案即时反馈,课程通过后可获得可验证ID的可分享证书。

开始测验

支持免费AI教育。AI Understanding是一家501(c)(3)非营利组织——无广告,无付费墙,永不收费。 捐款

常见问题

什么是歌声合成?

歌声合成(SVS)是一种将乐谱(即歌词加上音高和时值的音符)转换为歌声录音的技术。它从2004年雅马哈基于样本的VOCALOID发展到如今DiffSinger和VISinger等神经系统,目前不仅为音乐制作工具提供支持,也引发了关于声音权利和深度伪造的新问题。

乐谱条件歌声合成系统使用哪些核心输入?

歌词和乐谱提供了内容和时值目标。歌手身份调节是可选的,具体取决于系统。

雅马哈在2003年公开宣布了什么?

雅马哈研究员剑持秀纪(Hideki Kenmochi)回忆说,该公司在2003年宣布正在开发一种名为VOCALOID的歌声合成技术。

F0轮廓在有声歌唱中代表什么?

F0跟踪有声帧的基频;它代表的是音高轮廓,而不是保证精确的音高估计。

在所描述的两阶段神经歌声合成设置中,声学模型在声码器之前可以产生什么?

在这种两阶段设计中,声学模型预测梅尔频谱图,声码器将该表示转换为波形音频。

DiffSinger 是如何在声学模型中使用扩散机制的?

DiffSinger 引入了一种浅层扩散机制,用于从乐谱条件生成歌唱声学特征;这描述的是论文中的模型,而不是每一个 SVS 系统。