Skip to content

Docker container support#82

Open
Hadlock wants to merge 15 commits into
OHF-Voice:mainfrom
Hadlock:docker
Open

Docker container support#82
Hadlock wants to merge 15 commits into
OHF-Voice:mainfrom
Hadlock:docker

Conversation

@Hadlock

@Hadlock Hadlock commented Nov 8, 2025

Copy link
Copy Markdown

No description provided.

Comment thread README.md

### TL;TL;DR

- dockebuild . -t wakeword && docker r run -it --rm -p 8080:8080 -e MICROWAKEWORD_TRAIN_BATCH=256 localhost/wakeword -c "hey eyeball"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be "docker build"

@gtjoseph gtjoseph left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! I tried it on my Core i7-6950X and training only took about 20 minutes. The model was just a bit too big to load on a Home Assistant Voice PE so I'm tweaking it a bit.

Comment thread Dockerfile
MICROWAKEWORD_VOICE_CONFIG_URL="https://huggingface.co/rhasspy/piper-voices/resolve/v1.0.0/en/en_US/lessac/medium/en_US-lessac-medium.onnx.json?download=true"

ENV MICROWAKEWORD_VOICE_MODEL="${MICROWAKEWORD_VOICE_DIR}/${MICROWAKEWORD_VOICE_MODEL_NAME}" \
MICROWAKEWORD_VOICE_CONFIG="${MICROWAKEWORD_VOICE_MODEL}.json"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can't use MICROWAKEWORD_VOICE_MODEL here because it's in the same ENV statement that created it. The result is .json and it gets fetched into /app.

It needs to be...

ENV MICROWAKEWORD_VOICE_MODEL="${MICROWAKEWORD_VOICE_DIR}/${MICROWAKEWORD_VOICE_MODEL_NAME}"
ENV MICROWAKEWORD_VOICE_CONFIG="${MICROWAKEWORD_VOICE_MODEL}.json"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants