| domain | contrib |
|---|---|
| title | gpt sovits hubert 16khz |
| verification | metadata-normalized |
| {"title" | GPT-SoVITS:HuBERT 必须 16kHz 且 get_model() 返回单体", "domain": "tts", "tags": "", "source": "hanged-man", "status": "published", "created": "2026-04-05", "confidence": "0.9", "scope": "narrow", "domain_expert": "hanged-man", "verified_date": "2026-04-05"} |
| created | 2026-07-06 |
| source | unknown |
HuBERT SSL 特征提取失败,音频克隆效果异常。
cnhubert_mod = inf.cnhubert(模块,非实例)hmodel = cnhubert_mod.get_model()→ 返回单个CNHubert实例,不是元组librosa.load(wav, sr=16000)→ 必须是 16kHz(不是 32kHz)feat = cnhubert_mod.get_content(hmodel, wav_tensor)→ 签名是(hmodel, wav_16k_tensor)
- Follow the solution steps in order
- Run any relevant commands or tests to confirm the fix
- Verify the symptom no longer occurs
- Check related logs or outputs for expected behavior
get_model()返回值解包为元组 → 实际是单个对象get_content(data, sr)→ 实际签名是(hmodel, wav_16k_tensor)- 音频 32kHz → HuBERT 要求 16kHz