Spaces:
Running
on
Zero
Running
on
Zero
Commit
Β·
906d0f6
1
Parent(s):
10d56bf
Initial Commit
Browse files
README.md
CHANGED
|
@@ -1,13 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MOSS-Speech: Towards True Speech-to-Speech Models Without Text Guidance
|
| 2 |
+
|
| 3 |
+
<div align="center" style="line-height: 1;">
|
| 4 |
+
<!-- <a href="https://open-moss.com/cn/speechgpt2-preview/" target="_blank" style="margin: 2px;">
|
| 5 |
+
<img alt="Project Page" src="https://img.shields.io/badge/π %20Project%20Page-MOSS--Speech-536af5?color=e31a2f&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
|
| 6 |
+
</a>
|
| 7 |
+
<a href="https://sp2.open-moss.com/" target="_blank" style="margin: 2px;">
|
| 8 |
+
<img alt="Chat" src="https://img.shields.io/badge/π€%20Demo-MOSS--Speech-536af5?color=1ae3f5&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
|
| 9 |
+
</a> -->
|
| 10 |
+
<a href="https://moss-speech.open-moss.com/" target="_blank" style="margin: 2px;">
|
| 11 |
+
<img alt="Video Demo" src="https://img.shields.io/badge/πΉ%20Video%20Demo-MOSS--Speech-536af5?color=1ae3f5&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
|
| 12 |
+
</a>
|
| 13 |
+
<a href="papers/MOSS-Speech Technical Report.pdf" target="_blank" style="margin: 2px;">
|
| 14 |
+
<img alt="Technical Report" src="https://img.shields.io/badge/π%20Technical%20Report-MOSS--Speech-4caf50?color=4caf50&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
|
| 15 |
+
</a>
|
| 16 |
+
<a href="https://discord.gg/wmJGnd4q" target="_blank" style="margin: 2px;">
|
| 17 |
+
<img alt="Discord" src="https://img.shields.io/badge/Discord-OpenMOSS-7289da?logo=discord&logoColor=white&color=7289da" style="display: inline-block; vertical-align: middle;"/>
|
| 18 |
+
</a>
|
| 19 |
+
<a href="https://huggingface.co/fnlp" target="_blank" style="margin: 2px;">
|
| 20 |
+
<img alt="Hugging Face" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-MOSS--Speech-ffc107?color=ffc107&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
|
| 21 |
+
</a>
|
| 22 |
+
<a href="https://x.com/Open_MOSS" target="_blank" style="margin: 2px;">
|
| 23 |
+
<img alt="X Follow" src="https://img.shields.io/badge/Twitter-OpenMOSS-black?logo=x&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
|
| 24 |
+
</a>
|
| 25 |
+
</div>
|
| 26 |
+
|
| 27 |
+
<div style="height: 200px; overflow: hidden; text-align:center;">
|
| 28 |
+
<img src="assets/logo-large.png" style="width:80%; object-fit:cover; object-position:center;">
|
| 29 |
+
</div>
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
ι
θ―»[δΈζ](./README_ZH.md)ηζ¬.
|
| 34 |
+
|
| 35 |
+
---
|
| 36 |
+
|
| 37 |
+
## π Introduction
|
| 38 |
+
|
| 39 |
+
Spoken dialogue systems often rely on cascaded pipelines that transcribe, process, and resynthesize speech, which limits expressivity and discards paralinguistic cues. **MOSS-Speech** directly understands and generates speech without relying on text intermediates, enabling end-to-end speech interaction while preserving tone, prosody, and emotion.
|
| 40 |
+
|
| 41 |
+
Our approach combines a **modality-based layer-splitting architecture** with a **frozen pre-training strategy**, leveraging pretrained text LLMs while extending native speech capabilities. Experiments show state-of-the-art results in spoken question answering and competitive speech-to-speech performance compared to text-guided systems.
|
| 42 |
+
|
| 43 |
+
<!-- Welcome to talk to our [Demo system](https://sp2.open-moss.com/) online, and also welcome to check out the system's [demonstration video](https://open-moss.com/en/speechgpt2-preview/).-->
|
| 44 |
+
|
| 45 |
+
Welcome to check out the system's [demonstration video](https://moss-speech.open-moss.com/).
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
|
| 49 |
---
|
| 50 |
+
|
| 51 |
+
## π Key Features
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
- **True Speech-to-Speech Modeling**: No text guidance required.
|
| 55 |
+
- **Layer-Splitting Architecture**: Integrates modality-specific layers on top of pretrained text LLM backbones.
|
| 56 |
+
- **Frozen Pre-Training Strategy**: Preserves LLM reasoning while enhancing speech understanding and generation.
|
| 57 |
+
- **State-of-the-Art Performance**: Excels in spoken question answering and speech-to-speech tasks.
|
| 58 |
+
- **Expressive & Efficient**: Maintains paralinguistic cues often lost in cascaded pipelines, such as tone, emotion, and prosody.
|
| 59 |
+
|
| 60 |
---
|
| 61 |
|
| 62 |
+
## π Repository Contents
|
| 63 |
+
|
| 64 |
+
- `gradio_demo.py` β Gradio-based web demo script for quickly experiencing speech-to-speech functionality.
|
| 65 |
+
- `generation.py` β Core generation script for producing output speech from input speech, suitable for inference and batch processing.
|
| 66 |
+
|
| 67 |
+
---
|
| 68 |
+
|
| 69 |
+
## π οΈ Installation
|
| 70 |
+
|
| 71 |
+
```bash
|
| 72 |
+
# Clone the repository
|
| 73 |
+
git clone https://github.com/OpenMOSS/MOSS-Speech
|
| 74 |
+
cd MOSS-Speech
|
| 75 |
+
|
| 76 |
+
# Install dependencies
|
| 77 |
+
pip install -r requirements.txt
|
| 78 |
+
```
|
| 79 |
+
|
| 80 |
+
---
|
| 81 |
+
|
| 82 |
+
## π Usage
|
| 83 |
+
Launch the web demo
|
| 84 |
+
```sh
|
| 85 |
+
python3 gradio_demo.py
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
<p align="center">
|
| 89 |
+
<img src="assets/gradio.jpg" width="80%"> <br>
|
| 90 |
+
</p>
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
---
|
| 94 |
+
|
| 95 |
+
## License
|
| 96 |
+
- The code in this repository is released under the [Apache 2.0](LICENSE) license.
|
| 97 |
+
|
| 98 |
+
---
|
| 99 |
+
|
| 100 |
+
## Acknowledgements
|
| 101 |
+
- [Qwen](https://github.com/QwenLM/Qwen3): We use Qwen3-8B-Instruct as the base model.
|
| 102 |
+
- We thank an anonymous colleague for Character Voice!
|
| 103 |
+
|
| 104 |
+
---
|
| 105 |
+
|
| 106 |
+
## π Citation
|
| 107 |
+
|
| 108 |
+
If you use this repository or model in your research, please cite:
|
| 109 |
+
|
| 110 |
+
```bibtex
|
| 111 |
+
@article{moss_speech2025,
|
| 112 |
+
title={MOSS-Speech: Towards True Speech-to-Speech Models Without Text Guidance},
|
| 113 |
+
author={SLM Team},
|
| 114 |
+
institution={Shanghai Innovation Institute, Fudan University, MOSI},
|
| 115 |
+
year={2025},
|
| 116 |
+
note={Official implementation available at https://huggingface.co/fnlp/MOSS-Speech}
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
or
|
| 120 |
+
|
| 121 |
+
@misc{moss_speech2025,
|
| 122 |
+
author = {SLM Team},
|
| 123 |
+
title = {MOSS-Speech: Towards True Speech-to-Speech Models Without Text Guidance},
|
| 124 |
+
year = {2025},
|
| 125 |
+
publisher = {GitHub},
|
| 126 |
+
journal = {GitHub repository},
|
| 127 |
+
howpublished = {\url{https://github.com/OpenMOSS/MOSS-Speech}},
|
| 128 |
+
}
|
| 129 |
+
```
|
app.py
DELETED
|
@@ -1,7 +0,0 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
-
|
| 3 |
-
def greet(name):
|
| 4 |
-
return "Hello " + name + "!!"
|
| 5 |
-
|
| 6 |
-
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 7 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|