Closed witold-gren closed 1 month ago
To use your own model, simply provide its link to HuggingFace in the WHISPER_MODEL
variable. An example of how to set this in docker compose can be seen below:
x-shared-properties: &shared-properties
runtime: nvidia # Use NVIDIA runtime
init: false # Do not use init process
restart: unless-stopped # Restart policy
network_mode: host # Use host network mode, to auto-detect devices in network
devices:
- /dev/snd:/dev/snd # to share audio devices
- /dev/bus/usb # to share usb devices
name: whisper-jetson
version: "3.9"
services:
whisper:
image: dustynv/wyoming-whisper:latest-r36.2.0
<<: *shared-properties
container_name: whisper
hostname: whisper
ports:
- "10300:10300/tcp"
volumes:
- ./whisper/models/:/share/whisper
- ./whisper/data/:/data
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
WHISPER_LANGUAGE: "pl"
WHISPER_MODEL: "WitoldG/distil-whisper-large-v3-pl-ct2"
In original
wyoming-whisper
add-on in HA we have an ability to set custom model. We need just set model tocustom
and then in other fieldCustom model
I can set custom model (likedistil-whisper-large-v3-pl
). I try to do it in few ways into this configuration but it don't work. I try to set two env params:but then I see this error:
Example how it works in original add-on:
How to correctly indicate my own model? In docs we can see that value
custom
is correct for model name: https://github.com/home-assistant/addons/blob/master/whisper/config.yaml#L22 Also we can find configuration for custom model https://github.com/home-assistant/addons/blob/master/whisper/config.yaml#L23