nixos/wyoming/faster-whisper: pass device config to executable

The device could previously be configured but wasn't wired up to do
anything meaningful and as such always defaulted to CPU.
This commit is contained in:
Martin Weinelt 2023-10-29 19:32:15 +01:00
parent b27bf82fba
commit 4f971ebf3c
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -138,6 +138,7 @@ in
--data-dir $STATE_DIRECTORY \ --data-dir $STATE_DIRECTORY \
--download-dir $STATE_DIRECTORY \ --download-dir $STATE_DIRECTORY \
--uri ${options.uri} \ --uri ${options.uri} \
--device ${options.device} \
--model ${options.model} \ --model ${options.model} \
--language ${options.language} \ --language ${options.language} \
--beam-size ${options.beamSize} ${options.extraArgs} --beam-size ${options.beamSize} ${options.extraArgs}