Patched OpenVoice for short-clip cloning and CPU inference
View on GitHubPrevious approach, no longer used: an earlier version of my video-translator pipeline cloned voices with OpenVoice and MeloTTS; that stage has since been replaced with F5-TTS. While it was still in use, I hit two blockers in OpenVoice :
openvoice/se_extractor.pydiscarded audio segments shorter than 1.5 seconds, which meant short subtitle lines (hello,hi,bye) couldn’t be cloned at all. I relaxed the threshold to ~0.5 seconds and added an explicit skip for lines too short to process.- The library assumed a CUDA GPU. I patched it to run on CPU so it worked on Apple M1.
The changes live in my fork at github.com/pratts/OpenVoice . They were scoped to my use case and haven’t been proposed upstream.