summarylogtreecommitdiffstats
path: root/wyoming-faster-whisper.service
blob: 76d4c3096fb3c62e029926e2a6a17511a5c18f07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[Unit]
Description=Wyoming Server for Faster Whisper
Wants=network.target

[Service]
Restart=on-failure
User=wyoming-faster-whisper
Group=wyoming-faster-whisper
DynamicUser=true
CacheDirectory=wyoming-faster-whisper
Environment="HF_HOME=/var/cache/wyoming-faster-whisper/huggingface"
StateDirectory=wyoming-faster-whisper
WorkingDirectory=/var/lib/wyoming-faster-whisper

EnvironmentFile=/etc/conf.d/wyoming-faster-whisper
ExecStart=wyoming-faster-whisper \
    --device $DEVICE \
    --model $MODEL \
    --uri $URI \
    --beam-size $BEAM_SIZE \
    --language $LANGUAGE \
    --data-dir /var/lib/wyoming-faster-whisper/data \
    --download-dir /var/lib/wyoming-faster-whisper/data

[Install]
WantedBy=multi-user.target