Skip to content

Commit b285553

Browse files
authored
Add LOG_LEVEL environment variable (#26)
1 parent a65bb40 commit b285553

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
"curand",
88
"espeak",
99
"manylinux",
10+
"NOISEW",
1011
"nvrtc",
1112
"onnxruntime",
1213
"phonemize",
14+
"PROCS",
1315
"rhasspy",
1416
"setuptools",
1517
"slackr",

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ docker pull ghcr.io/slackr31337/wyoming-piper-gpu:latest
2323
> PIPER_SPEAKER="0"
2424
>
2525
> PIPER_SILENCE="0.8"
26+
>
27+
> LOG_LEVEL="debug" # For debug logging
2628
2729

2830
# Docker compose

run.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
#!/usr/bin/env bash
22

3+
LOGGING=""
4+
if [[ "${LOG_LEVEL}" == "debug" ]]; then
5+
LOGGING="--debug "
6+
fi
7+
38
# Run wyoming-piper server
49
/app/bin/python3 -m wyoming_piper \
510
--piper '/app/piper/piper' \
6-
--uri 'tcp://0.0.0.0:10200' \
11+
--uri "${PIPER_URI:-tcp://0.0.0.0:10200}" \
712
--length-scale "${PIPER_LENGTH:-1.0}" \
813
--noise-scale "${PIPER_NOISE:-0.667}" \
914
--noise-w "${PIPER_NOISEW:-0.333}" \
1015
--speaker "${PIPER_SPEAKER:-0}" \
1116
--sentence-silence "${PIPER_SILENCE:-1.2}" \
1217
--voice "${PIPER_VOICE:-en_US-amy-medium}" \
1318
--max-piper-procs "${PIPER_PROCS:-1}" \
14-
--data-dir /data \
15-
--download-dir /data \
16-
--use-cuda "$@"
19+
--data-dir "${DATA_DIR:-/data}" \
20+
--download-dir "${DOWNLOAD_DIR:-/data}" \
21+
--use-cuda ${LOGGING}"$@"

0 commit comments

Comments
 (0)