Views
No views yet
1git clone https://github.com/AmphionTeam/SpeechJudge.git
2cd SpeechJudge1pip install transformers==4.52.3
2pip install accelerate==1.10.0
3pip install qwen-omni-utils==0.0.8infer/main_grm.py. Here's a basic example:1from infer.main_grm import load_model, compare_wavs
2
3# Load the model
4model_path = "pretrained/SpeechJudge-GRM"
5model, processor = load_model(model_path)
6
7# The compared two speeches (and the corresponding text)
8target_text = "Your target text here"
9wav_path_a = "path/to/audio_a.wav"
10wav_path_b = "path/to/audio_b.wav"
11
12# Compare the two audio outputs
13rating, result = compare_wavs(processor, model, target_text, wav_path_a, wav_path_b)
14
15print(f"Output A score: {rating['output_a']}")
16print(f"Output B score: {rating['output_b']}")
17print(f"\nDetailed Analysis:\n{result}")infer/examples/. To run the provided example:1cd infer
2python main_grm.py1@article{zhang2025speechjudge,
2 title={SpeechJudge: Towards Human-Level Judgment for Speech Naturalness},
3 author={Zhang, Xueyao and Wang, Chaoren and Liao, Huan and Li, Ziniu and Wang, Yuancheng and Wang, Li and Jia, Dongya and Chen, Yuanzhe and Li, Xiulin and Chen, Zhuo and Wu, Zhizheng},
4 journal={arXiv preprint arXiv:2511.07931},
5 year={2025}
6}