Add patch for piper voice.py

This commit is contained in:
Robert Dunmire III
2025-01-04 16:59:23 -05:00
parent 625b43cbb4
commit 8449cb67a4
2 changed files with 14 additions and 1 deletions
+3 -1
View File
@@ -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
+11
View File
@@ -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"})],
),
)