Skip to content

Commit 88549de

Browse files
authored
Add support for streaming (introduced in wyoming-piper 1.6.0) (#33)
1 parent c803b93 commit 88549de

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04 AS build
33

44
ARG TARGETARCH=linux_x86_64
5-
ARG WYOMING_PIPER_VERSION="1.5.2"
5+
ARG WYOMING_PIPER_VERSION="1.6.1"
66
ARG PIPER_VERSION="1.2.0"
77
ARG PIPER_PHONEMIZE_VERSION="1.1.0"
88

@@ -110,4 +110,4 @@ COPY --from=build /app .
110110

111111
EXPOSE 10200
112112

113-
ENTRYPOINT ["bash", "/app/run.sh"]
113+
ENTRYPOINT ["bash", "/app/run.sh"]

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ docker pull ghcr.io/slackr31337/wyoming-piper-gpu:latest
2525
> PIPER_SILENCE="0.8"
2626
>
2727
> LOG_LEVEL="debug" # For debug logging
28+
>
29+
> STREAMING=false # To disable streaming
2830
2931

3032
# Docker compose

run.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ if [[ "${LOG_LEVEL}" == "debug" ]]; then
55
LOGGING="--debug "
66
fi
77

8+
STREAMING="${STREAMING:-true}"
9+
STREAMING_FLAG=""
10+
if [[ "$STREAMING" == "true" ]]; then
11+
STREAMING_FLAG="--streaming "
12+
fi
13+
814
# Run wyoming-piper server
915
/app/bin/python3 -m wyoming_piper \
1016
--piper '/app/piper/piper' \
@@ -18,4 +24,4 @@ fi
1824
--max-piper-procs "${PIPER_PROCS:-1}" \
1925
--data-dir "${DATA_DIR:-/data}" \
2026
--download-dir "${DOWNLOAD_DIR:-/data}" \
21-
--use-cuda ${LOGGING}"$@"
27+
--use-cuda ${LOGGING}${STREAMING_FLAG}"$@"

0 commit comments

Comments
 (0)