mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-15 04:40:40 -07:00
The upstream VoiceEncoder's melspectrogram only casts to float32 when hp.normalized_mels is True (it defaults to False), so librosa's float64 output flows through as double tensors into float32 model weights, causing 'expected m1 and m2 to have the same dtype, but got: float != double'. Fix by monkey-patching prepare_conditionals in both Chatterbox and Chatterbox Turbo backends to ensure librosa.load returns float32.