mirror of
https://github.com/slackr31337/wyoming-piper-gpu.git
synced 2026-10-18 13:20:20 +02:00
Add patch for piper voice.py
This commit is contained in:
+3
-1
@@ -50,10 +50,12 @@ RUN \
|
||||
|
||||
|
||||
# Patch to enable CUDA arguments for piper
|
||||
COPY patch/* /tmp/
|
||||
COPY patches/* /tmp/
|
||||
RUN \
|
||||
cd /app/lib/python3.10/site-packages/wyoming_piper/;\
|
||||
for file in /tmp/wyoming_piper*.diff;do patch -p0 --forward < $file;done;\
|
||||
cd /app/lib/python3.10/site-packages/piper;\
|
||||
for file in /tmp/piper*.diff;do patch -p0 --forward < $file;done;\
|
||||
true
|
||||
|
||||
# Clean up
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- voice.py 2025-01-04 19:49:49.000000000 +0000
|
||||
+++ voice.patched 2025-01-04 21:54:21.970873501 +0000
|
||||
@@ -41,7 +41,7 @@
|
||||
sess_options=onnxruntime.SessionOptions(),
|
||||
providers=["CPUExecutionProvider"]
|
||||
if not use_cuda
|
||||
- else ["CUDAExecutionProvider"],
|
||||
+ else [("CUDAExecutionProvider", {"cudnn_conv_algo_search": "HEURISTIC"})],
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user