Installation¶
VoiceHub supports Python 3.10–3.12. Install it from source.
Create an environment¶
Choose your platform.
Install¶
Choose the correct PyTorch build for your hardware, then install VoiceHub from GitHub:
Add training dependencies only when needed:
Editable checkout¶
Use an editable checkout when changing the library:
git clone https://github.com/kadirnar/voicehub.git
cd voicehub
python -m pip install -e ".[test,training,docs]"
Verify¶
Check the installation without downloading a checkpoint:
Check the accelerator separately:
Cache and offline mode¶
Pass cache_dir to isolate model files. Set local_files_only=True after
the required checkpoint and processor assets have been downloaded.
from voicehub import AutoConfig
config = AutoConfig.from_pretrained(
"parler-tts/parler-tts-mini-v1",
model_type="parlertts",
cache_dir=".cache/voicehub",
local_files_only=True,
)
print(config.model_type)
Choose your platform when starting an offline process.