mirror of
https://github.com/slackr31337/wyoming-piper-gpu.git
synced 2026-10-18 22:48:09 +02:00
Updates to enable CUDA in piper
This commit is contained in:
+3
-2
@@ -131,7 +131,6 @@ class PiperProcessManager:
|
||||
"--output_dir",
|
||||
str(wav_dir.name),
|
||||
"--json-input", # piper 1.1+
|
||||
"--cuda",
|
||||
]
|
||||
|
||||
if voice_speaker is not None:
|
||||
@@ -149,6 +148,8 @@ class PiperProcessManager:
|
||||
if self.args.noise_w:
|
||||
piper_args.extend(["--noise-w", str(self.args.noise_w)])
|
||||
|
||||
if self.args.cuda:
|
||||
piper_args.extend(["--cuda"])
|
||||
|
||||
_LOGGER.debug(
|
||||
"Starting piper process: %s args=%s", self.args.piper, piper_args
|
||||
@@ -170,4 +171,4 @@ class PiperProcessManager:
|
||||
# Update used
|
||||
piper_proc.last_used = time.monotonic_ns()
|
||||
|
||||
return piper_proc
|
||||
return piper_proc
|
||||
|
||||
Reference in New Issue
Block a user