rhasspy / piper

A fast, local neural text to speech system
https://rhasspy.github.io/piper-samples/
MIT License
4.38k stars 297 forks source link

Enable to designate GPU device_id on inference #429

Open kazukiotsuka opened 2 months ago

kazukiotsuka commented 2 months ago

Added device_id option to PiperVoice.load()

device_id = 1
model = PiperVoice.load(model_path, config_path, use_cuda=use_cuda, device_id=device_id)