arXiv:2410.00037eess.AScs.AI2024-10被引 690

Moshi实现毫秒级实时语音对话,支持多方重叠交流。

Moshi: a speech-text foundation model for real-time dialogue

  • 将语音对话统一为端到端语音生成,跳过文本中间层。
  • 实测延迟200ms,支持无缝重叠发言与情感表达。
  • 适合需要自然交互的语音助手、虚拟人等场景。

我们提出Moshi,一种面向实时对话的语音-文本基础模型及全双工语音对话框架。现有语音对话系统依赖语音活动检测、语音识别、文本对话和文本转语音等独立组件构成的流水线,导致交互延迟达数秒,且因以文本为中间模态而丢失情绪、非语言声音等语义信息,并强制划分发言轮次,无法处理重叠说话、打断和插话。Moshi通过将语音对话建模为语音到语音生成,从文本语言模型骨干出发,利用神经音频编解码器的残差量化器生成语音令牌,同时并行建模自身与用户语音流,无需显式发言轮次划分,可模拟任意对话动态。我们还将先前工作中的分层语义-声学令牌生成扩展为先预测时序对齐的文本令牌作为音频令牌前缀,该“内在独白”方法显著提升生成语音的语言质量,同时支持流式语音识别与文本转语音。最终模型为首个实时全双工语音大语言模型,理论延迟160毫秒,实际延迟200毫秒,代码已开源。

原文摘要 · Abstract (English)

We introduce Moshi, a speech-text foundation model and full-duplex spoken dialogue framework. Current systems for spoken dialogue rely on pipelines of independent components, namely voice activity detection, speech recognition, textual dialogue and text-to-speech. Such frameworks cannot emulate the experience of real conversations. First, their complexity induces a latency of several seconds between interactions. Second, text being the intermediate modality for dialogue, non-linguistic information that modifies meaning -- such as emotion or non-speech sounds -- is lost in the interaction. Finally, they rely on a segmentation into speaker turns, which does not take into account overlapping speech, interruptions and interjections. Moshi solves these independent issues altogether by casting spoken dialogue as speech-to-speech generation. Starting from a text language model backbone, Moshi generates speech as tokens from the residual quantizer of a neural audio codec, while modeling separately its own speech and that of the user into parallel streams. This allows for the removal of explicit speaker turns, and the modeling of arbitrary conversational dynamics. We moreover extend the hierarchical semantic-to-acoustic token generation of previous work to first predict time-aligned text tokens as a prefix to audio tokens. Not only this "Inner Monologue" method significantly improves the linguistic quality of generated speech, but we also illustrate how it can provide streaming speech recognition and text-to-speech. Our resulting model is the first real-time full-duplex spoken large language model, with a theoretical latency of 160ms, 200ms in practice, and is available at https://github.com/kyutai-labs/moshi.

语音对话全双工实时生成

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。