MOSS

Model Details

End-to-End Multi-Speaker Speech Transcription: How Does MOSS-Transcribe-Diarize Achieve Joint Output of Text, Speakers, and Timestamps?

MOSS-Transcribe-Diarize takes a different technical approach: through an end-to-end multimodal large model, it jointly performs speech recognition, speaker attribution, and timestamp prediction in a single inference pass, directly generating structured transcription results and achieving joint output of text, speakers, and timestamps.

In a multi-person meeting, AI needs not only to clearly hear what each person says, but also to accurately determine who said each sentence and exactly when it occurred. For example, a 40-minute meeting recording may contain multiple people taking turns speaking, brief interjections, overlapping voices, and the same speaker speaking again at different times. For a speech transcription system, this means it needs to solve three problems simultaneously:

  • Speech Recognition: Accurately recognize speech content and convert sound into text.
  • Speaker Diarization: Distinguish different speakers and determine who each segment of speech belongs to.
  • Timestamp Prediction: Determine the start and end times of each speech segment and establish the temporal correspondence between text and audio. Traditional approaches usually assign these tasks to different models for separate processing and then integrate the results. MOSS-Transcribe-Diarize takes a different technical approach: through an end-to-end multimodal large model, it jointly performs speech recognition, speaker attribution, and timestamp prediction in a single inference pass, directly generating structured transcription results. So how does MOSS-Transcribe-Diarize accomplish this process?

MOSS-Transcribe-Diarize's End-to-End Approach: One Model Completes Three Tasks

In traditional multi-speaker speech transcription approaches, speech recognition (ASR) and speaker diarization are usually handled by different modules separately: the former converts speech into text, while the latter identifies different speakers and their speech segments, after which the results are aligned and integrated to generate a transcription result with speaker attribution. If precise segment-level timestamps are also required, an additional time alignment component is often needed. This modular processing approach is prone to cross-module error propagation and makes it difficult to continuously associate speech content, speaker identity, and temporal information within a unified context. MOSS-Transcribe-Diarize uses a unified multimodal large language model architecture, integrating speech recognition, speaker attribution, and timestamp prediction into a single end-to-end model. Unlike traditional approaches that separately obtain text and speaker information and then match them, MOSS-Transcribe-Diarize jointly models speech content and speaker identity within the same model and predicts the corresponding temporal information. Specifically, MOSS-Transcribe-Diarize jointly completes three tasks in a single forward pass:

  • Speech Recognition: Recognize words in the audio and generate the corresponding transcription text.
  • Speaker Attribution: Determine which speaker each speech segment belongs to, and mark different utterances with speaker labels.
  • Timestamp Prediction: Predict the start and end times of the corresponding speech segments. Ultimately, the model directly generates structured transcription results containing these three types of information.

Traditional multi-speaker speech transcription pipeline

For example, MOSS-Transcribe-Diarize can generate output in the following form:

[0.11] [S01] Good morning! [1.03]
[1.11] [S02] Morning, guys! [1.34]
[1.20] [S03] Hi, everyone! [1.44]

Here, S01, S02, and S03 represent different speakers, and the leading and trailing timestamps mark the start and end times of the corresponding speech segments. In this way, MOSS-Transcribe-Diarize unifies tasks that originally required multiple independent modules to complete collaboratively into a single model, enabling text content, speaker identity, and temporal information to be jointly modeled within the same context.

MOSS-Transcribe-Diarize Model Architecture: How Does It Jointly Model Text, Speakers, and Timestamps?

The end-to-end capability of MOSS-Transcribe-Diarize is built on an architecture that combines an audio encoder with a pretrained text large language model. MOSS-Transcribe-Diarize mainly consists of three parts: Audio Encoder, Projection Module, and pretrained text LLM. By mapping multi-speaker audio features into the feature space of the text LLM, the model can jointly model speaker identity and lexical content within a unified architecture.

Autoregressive SpeechLLMs

Audio Encoder: Extracting Multi-Speaker Audio Features The input audio is encoded by the Audio Encoder and converted into multi-speaker acoustic embeddings, providing audio feature representations for subsequent model processing. Projection Module: Mapping Audio and Text Feature Spaces Since the audio encoder and the pretrained text LLM use different feature spaces, MOSS-Transcribe-Diarize introduces a Projection Module to map the multi-speaker acoustic embeddings into the feature space of the pretrained text LLM. This module establishes the connection between the audio encoder and the language model, enabling audio features to enter the language model's processing pipeline. Autoregressive Speech LLM: Joint Modeling and Generation After feature mapping is completed, the audio features enter the pretrained text LLM. The model leverages the shared context to jointly model speaker identity and lexical content, and outputs transcription results through autoregressive generation. Through the collaboration of these three parts, MOSS-Transcribe-Diarize combines audio information with language modeling, completing speech recognition, speaker attribution, and timestamp prediction within a single unified model, no longer relying on the handoff of results between multiple independent modules. How Is Temporal Information Incorporated into the Model? In addition to the combination of audio features and the language model, the representation of temporal information is also an important design in MOSS-Transcribe-Diarize's end-to-end timestamp prediction. According to the technical report, MOSS-Transcribe-Diarize adopts a text-token-based time encoding method, explicitly introducing formatted timestamp text into the model's sequence modeling process. Specifically, the model represents temporal information as formatted timestamp text and inserts it between the audio segments output by the audio encoder, so that temporal information can be explicitly expressed in the model. This design avoids binding time encoding to absolute position indices. For audio spanning long durations, absolute position indices may become sparse, affecting the effectiveness of temporal information expression; text-token-based time representation can adapt to the time modeling needs of long time spans. Ultimately, the model can output the start timestamp, speaker number, corresponding text, and end timestamp of speech segments in structured transcription results, making temporal information part of the end-to-end generation result. In addition, MOSS-Transcribe-Diarize is equipped with a 128k-token Context Window, supporting audio input of up to approximately 90 minutes without segmentation. This supports the model in leveraging global context and maintaining speaker consistency in long conversations.

Experimental Validation: How Does MOSS-Transcribe-Diarize Perform in End-to-End Transcription?

To evaluate the performance of MOSS-Transcribe-Diarize in multi-speaker speech transcription tasks, we selected three representative datasets—AISHELL-4, Podcast, and Movies—covering scenarios such as real meetings, multi-person interviews, and frequent speaker switching and speech overlap, and compared it with various commercial models. In terms of evaluation metrics, the report adopts CER, cpCER, and Δcp. Among them, CER measures basic speech recognition accuracy; cpCER jointly evaluates text recognition and speaker attribution performance by finding the optimal matching between predicted speaker labels and ground-truth speaker labels; Δcp is the difference between cpCER and CER, used to measure the additional performance loss caused by speaker attribution errors. For the end-to-end joint transcription task of MOSS-Transcribe-Diarize, cpCER and Δcp are the two metrics worthy of more attention.

Joint transcription performance across different scenarios

Overall, the three test scenarios demonstrate the performance of MOSS-Transcribe-Diarize in joint speaker attribution and text transcription tasks from the perspectives of long meetings, multi-guest interviews, and dense speech overlap, respectively. In particular, the two metrics cpCER and Δcp provide a more direct reference for understanding the model's joint modeling effectiveness than speech recognition accuracy alone. It should be noted that these metrics mainly evaluate text recognition and speaker attribution performance, and do not directly measure the boundary precision of timestamp prediction. The end-to-end nature of MOSS-Transcribe-Diarize is mainly reflected in its unified model architecture and single forward pass mechanism.

Local Deployment and API Access

MOSS-Transcribe-Diarize has released its model code and model weights to developers, and welcomes everyone to experience, use, and explore it. Developers are welcome to visit the project homepage to obtain model resources and explore the application of end-to-end speech transcription technology in scenarios such as meeting notes, podcast transcription, and multi-speaker audio analysis.