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
5 changes: 5 additions & 0 deletions whisper/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 3.4.1

- Add `vad_clip` option to enable VAD clipping of audio before processing (faster processing for many backends, may not work on Pi 4)
- Bump `pysilero-vad` to use GGML version (with `GGML_NATIVE=OFF`)

## 3.3.2

- Add `libgomp1` so `torch`/`torchaudio` can load again, fixing the startup crash loop introduced in 3.3.1
Expand Down
6 changes: 6 additions & 0 deletions whisper/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ Use streaming model with `sherpa` backend.

This overrides the default English model (parakeet) with a faster but less accurate streaming model (sherpa-onnx-streaming-zipformer-en-2023-06-26).

### Option: `vad_clip`

Use voice activity detection (VAD) to clip silence from audio before transcription. This is disabled by default.

This is mainly a latency win for silence-heavy audio with length-proportional batch backends like `sherpa` and `funasr`; streaming backends are unaffected.

### Option: `local_files_only`

Only use models that have already been downloaded, and never check online for
Expand Down
2 changes: 1 addition & 1 deletion whisper/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ build_from:
amd64: ghcr.io/home-assistant/amd64-base-debian:bookworm
aarch64: ghcr.io/home-assistant/aarch64-base-debian:bookworm
args:
WYOMING_WHISPER_VERSION: 3.3.1
WYOMING_WHISPER_VERSION: 3.4.1
4 changes: 3 additions & 1 deletion whisper/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 3.3.2
version: 3.4.1
slug: whisper
name: Whisper
description: Speech-to-text with Whisper
Expand All @@ -22,6 +22,7 @@ options:
stt_library: "auto"
whisper_task: "transcribe"
sherpa_streaming: false
vad_clip: false
local_files_only: false
debug_logging: false
schema:
Expand All @@ -39,6 +40,7 @@ schema:
whisper_task: |
list(transcribe|translate)
sherpa_streaming: bool
vad_clip: bool
local_files_only: bool
debug_logging: bool
ports:
Expand Down
4 changes: 4 additions & 0 deletions whisper/rootfs/etc/s6-overlay/s6-rc.d/whisper/run
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ if bashio::config.true 'sherpa_streaming'; then
flags+=('--sherpa-streaming')
fi

if bashio::config.true 'vad_clip'; then
flags+=('--vad-clip')
fi

if bashio::config.true 'local_files_only'; then
flags+=('--local-files-only')
fi
Expand Down
8 changes: 8 additions & 0 deletions whisper/translations/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ configuration:

This overrides the default English model with a faster but less accurate
streaming model.
vad_clip:
name: VAD clip
description: >-
Use voice activity detection (VAD) to clip silence from audio before
transcription.

This is a latency win for silence-heavy audio, especially with batch
backends like sherpa and funasr. Streaming backends are unaffected.
local_files_only:
name: Local files only
description: >-
Expand Down
Loading