We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d19a2e commit 4288effCopy full SHA for 4288eff
1 file changed
src/backend/piper.rs
@@ -145,6 +145,13 @@ impl TtsBackend for PiperBackend {
145
}
146
147
148
+ // Enable CUDA if available (NVIDIA GPU)
149
+ if std::path::Path::new("/usr/bin/nvidia-smi").exists()
150
+ || std::env::var("CUDA_VISIBLE_DEVICES").is_ok()
151
+ {
152
+ cmd.arg("--cuda");
153
+ }
154
+
155
let mut child = cmd
156
.stdin(Stdio::piped())
157
.stdout(Stdio::null())
0 commit comments