Views
No views yet

1git clone https://github.com/Soul-AILab/SoulX-Duplug.git
2cd SoulX-Duplug1sudo apt-get update
2sudo apt-get install ffmpeg sox libsox-dev -y1conda create -n soulx-duplug -y python=3.10
2conda activate soulx-duplug
3pip install -r requirements.txt
4# If you are in mainland China, you can set the mirror as follows:
5pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com1# If you are in mainland China, please first set the mirror:
2export HF_ENDPOINT=https://hf-mirror.com
3huggingface-cli download --resume-download Soul-AILab/SoulX-Duplug-0.6B --local-dir pretrained_models1from huggingface_hub import snapshot_download
2snapshot_download("Soul-AILab/SoulX-Duplug-0.6B", local_dir="pretrained_models") 1# Make sure you have git-lfs installed (https://git-lfs.com)
2git lfs install
3git clone https://huggingface.co/Soul-AILab/SoulX-Duplug-0.6B pretrained_modelsbash run.shdict:1{
2 "type": "turn_state",
3 "session_id": , # session_id
4 "state": {
5 "state": , # predicted state: "idle", "nonidle", "speak", or "blank"
6 "text": , # (optional) asr result of user's turn
7 "asr_segment": , # (optional) asr result of current chunk
8 "asr_buffer": , # (optional) asr result of last 3.2s
9 },
10 "ts": time.time(), # timestamp
11}"asr_segment" returns the ASR result of the current chunk, and "asr_buffer" returns the ASR result of the accumulated audio over the past 3.2 seconds."asr_segment" returns the ASR result of the current chunk, "asr_buffer" returns the ASR result of the accumulated audio over the past 3.2 seconds, and "text" returns the complete transcription of the user’s utterance for this turn.1@misc{yan2026soulxduplug,
2 title={SoulX-Duplug: Plug-and-Play Streaming State Prediction Module for Realtime Full-Duplex Speech Conversation},
3 author={Ruiqi Yan and Wenxi Chen and Zhanxun Liu and Ziyang Ma and Haopeng Lin and Hanlin Wen and Hanke Xie and Jun Wu and Yuzhe Liang and Yuxiang Zhao and Pengchao Feng and Jiale Qian and Hao Meng and Yuhang Dai and Shunshun Yin and Ming Tao and Lei Xie and Kai Yu and Xinsheng Wang and Xie Chen},
4 year={2026},
5 eprint={2603.14877},
6 archivePrefix={arXiv},
7 primaryClass={eess.AS},
8 url={https://arxiv.org/abs/2603.14877},
9}