SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.00037 · 2024

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

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 7 functions out of this paper's own repositories and ran 7 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
kyutai-labs/moshi canonical 7 of 7
FunctionStatusWhere it lives
apply_parametrization_norm Ran kyutai-labs/moshi/moshi/moshi/modules/conv.py
code served (permissive licence) · get_code("61632108e112746f")
colorize Ran kyutai-labs/moshi/moshi/moshi/client_utils.py
code served (permissive licence) · get_code("ebade1c8fb249955")
gating_forward_generic Ran kyutai-labs/moshi/moshi/moshi/modules/gating.py
code served (permissive licence) · get_code("26ecc97e6c0629ee")
get_extra_padding_for_conv1d Ran kyutai-labs/moshi/moshi/moshi/modules/conv.py
code served (permissive licence) · get_code("5a9465546cfaa0f0")
hf_get Ran kyutai-labs/moshi/moshi/moshi/models/loaders.py
code served (permissive licence) · get_code("625b33a3b1ad0220")
make_log Ran kyutai-labs/moshi/moshi/moshi/client_utils.py
code served (permissive licence) · get_code("d48f94c0cfe9e8b8")
pad_for_conv1d Ran kyutai-labs/moshi/moshi/moshi/modules/conv.py
code served (permissive licence) · get_code("44c94244e949b9fb")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2410.00037")
get_code_for_paper("2410.00037")
have("2410.00037")

Connect an agent — have() is free.