Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions git_pull/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 9.0.3

- Fix `git-clone`'s restore-after-clone step copying a stale/corrupt `.git`
directory from the pre-clone backup into the freshly cloned repository,
which could corrupt the new clone's git metadata. `.git` is now excluded
from that restore step, same as `*.yaml`/`*.yml`.

## 9.0.2

- Fix `.storage/` and other hidden files/directories being silently dropped from
the pre-clone backup (they were never restored after the initial clone into
an existing `/config`, because `cp -rf /config/*` does **not** match dotfiles).
Use `cp -rf /config/.` instead, which copies directory contents including
hidden entries.

## 9.0.1

- Replace eval+extglob with find for restoring non-YAML files after clone
Expand Down
2 changes: 1 addition & 1 deletion git_pull/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 9.0.1
version: 9.0.3
slug: git_pull
name: Git pull
description: Simple git pull to update the local configuration
Expand Down
6 changes: 3 additions & 3 deletions git_pull/data/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function git-clone {
bashio::log.info "[Info] Backup configuration to $BACKUP_LOCATION"

mkdir "${BACKUP_LOCATION}" || bashio::exit.nok "[Error] Creation of backup directory failed"
cp -rf /config/* "${BACKUP_LOCATION}" || bashio::exit.nok "[Error] Copy files to backup directory failed"
cp -rf /config/. "${BACKUP_LOCATION}/" || bashio::exit.nok "[Error] Copy files to backup directory failed"

# remove config folder content
rm -rf /config/{,.[!.],..?}* || bashio::exit.nok "[Error] Clearing /config failed"
Expand All @@ -56,8 +56,8 @@ function git-clone {
bashio::log.info "[Info] Start git clone"
git clone "$REPOSITORY" /config || bashio::exit.nok "[Error] Git clone failed"

# try to copy non-yaml files back
find "${BACKUP_LOCATION}" -maxdepth 1 -mindepth 1 ! -name "*.yaml" ! -name "*.yml" -exec cp -r {} /config/ \; 2>/dev/null || true
# try to copy non-yaml files back (also excluding '.git' as it can corrupt the new repository)
find "${BACKUP_LOCATION}" -maxdepth 1 -mindepth 1 ! -name "*.yaml" ! -name "*.yml" ! -name ".git" -exec cp -r {} /config/ \; 2>/dev/null || true

# try to copy secrets file back
cp "${BACKUP_LOCATION}/secrets.yaml" /config 2>/dev/null || true
Expand Down
7 changes: 7 additions & 0 deletions speech_to_phrase/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 1.4.4

- Upgrade base image to trixie
- Update speech recognition components to their latest versions
- Disable ONNX Runtime telemetry: newer versions send usage data to a
Microsoft server by default, this app keeps it turned off

## 1.4.3

- Fix for empty names in HA 2026.4
Expand Down
9 changes: 8 additions & 1 deletion speech_to_phrase/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ ARG BUILD_ARCH
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# Install speech-to-phrase
ARG SPEECH_TO_PHRASE_VERSION
ARG \
SPEECH_TO_PHRASE_VERSION \
ONNXRUNTIME_VERSION \
PYSILERO_VAD_VERSION
WORKDIR /usr/src

RUN mkdir -p ./tools
Expand All @@ -31,11 +34,15 @@ RUN \
&& python3 -m venv .venv \
&& .venv/bin/pip3 install --no-cache-dir \
"speech-to-phrase @ https://github.com/OHF-Voice/speech-to-phrase/archive/refs/tags/v${SPEECH_TO_PHRASE_VERSION}.tar.gz" \
"onnxruntime==${ONNXRUNTIME_VERSION}" \
"pysilero-vad==${PYSILERO_VAD_VERSION}" \
&& apt-get remove --yes build-essential \
&& apt-get autoclean \
&& apt-get purge \
&& rm -rf /var/lib/apt/lists/*

ENV ORT_DISABLE_TELEMETRY=1

WORKDIR /
COPY rootfs /

Expand Down
6 changes: 4 additions & 2 deletions speech_to_phrase/build.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
build_from:
amd64: ghcr.io/home-assistant/amd64-base-debian:bookworm
aarch64: ghcr.io/home-assistant/aarch64-base-debian:bookworm
amd64: ghcr.io/home-assistant/amd64-base-debian:trixie
aarch64: ghcr.io/home-assistant/aarch64-base-debian:trixie
args:
SPEECH_TO_PHRASE_VERSION: 1.4.3
ONNXRUNTIME_VERSION: 1.29.0
PYSILERO_VAD_VERSION: 2.1.1
2 changes: 1 addition & 1 deletion speech_to_phrase/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.4.3
version: 1.4.4
slug: speech-to-phrase
name: Speech-to-Phrase
description: Fast and personalized local speech-to-text
Expand Down
6 changes: 6 additions & 0 deletions whisper/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 3.5.2

- Update speech recognition components to their latest versions
- Disable ONNX Runtime telemetry: newer versions send usage data to a
Microsoft server by default, this app keeps it turned off

## 3.5.1.

- Upgrade base image to trixie
Expand Down
30 changes: 23 additions & 7 deletions whisper/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ FROM ${BUILD_FROM}

# Install Whisper
WORKDIR /usr/src
ARG WYOMING_WHISPER_VERSION
ARG \
WYOMING_WHISPER_VERSION \
WYOMING_VERSION \
TRANSFORMERS_VERSION \
ONNX_ASR_VERSION \
FUNASR_VERSION \
ONNXRUNTIME_VERSION \
FASTER_WHISPER_VERSION \
CTRANSLATE2_VERSION \
SHERPA_ONNX_VERSION \
TORCH_VERSION

RUN \
apt-get update \
Expand All @@ -21,23 +31,29 @@ RUN \
setuptools \
wheel \
&& .venv/bin/pip3 install --no-cache-dir \
"wyoming[zeroconf]==1.9.0" \
"wyoming[zeroconf]==${WYOMING_VERSION}" \
"wyoming-faster-whisper[sherpa] @ https://github.com/rhasspy/wyoming-faster-whisper/archive/refs/tags/v${WYOMING_WHISPER_VERSION}.tar.gz" \
'transformers==4.52.4' \
'onnx-asr[cpu,hub]==0.11.0' \
'funasr>=1.1.0,<2' \
"transformers==${TRANSFORMERS_VERSION}" \
"onnx-asr[cpu,hub]==${ONNX_ASR_VERSION}" \
"funasr==${FUNASR_VERSION}" \
"onnxruntime==${ONNXRUNTIME_VERSION}" \
"faster-whisper==${FASTER_WHISPER_VERSION}" \
"ctranslate2==${CTRANSLATE2_VERSION}" \
"sherpa-onnx==${SHERPA_ONNX_VERSION}" \
\
&& .venv/bin/pip3 install --no-cache-dir \
--index-url 'https://download.pytorch.org/whl/cpu' \
'torch==2.7.1' \
'torchaudio==2.7.1' \
"torch==${TORCH_VERSION}" \
"torchaudio==${TORCH_VERSION}" \
\
&& apt-get purge -y --auto-remove \
build-essential \
python3-dev \
&& rm -rf /var/lib/apt/lists/*

ENV PATH="/usr/src/.venv/bin:$PATH"

ENV ORT_DISABLE_TELEMETRY=1
WORKDIR /
COPY rootfs /

Expand Down
10 changes: 10 additions & 0 deletions whisper/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,13 @@ build_from:
aarch64: ghcr.io/home-assistant/aarch64-base-debian:trixie
args:
WYOMING_WHISPER_VERSION: 3.5.0
WYOMING_VERSION: 1.9.0
# Must match the exact pins of wyoming-faster-whisper
TRANSFORMERS_VERSION: 4.52.4
ONNX_ASR_VERSION: 0.11.0
FUNASR_VERSION: 1.4.3
ONNXRUNTIME_VERSION: 1.29.0
FASTER_WHISPER_VERSION: 1.2.1
CTRANSLATE2_VERSION: 4.8.1
SHERPA_ONNX_VERSION: 1.13.6
TORCH_VERSION: 2.7.1
2 changes: 1 addition & 1 deletion whisper/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 3.5.1
version: 3.5.2
slug: whisper
name: Whisper
description: Speech-to-text with Whisper
Expand Down
Loading