diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-10-30 16:21:58 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-10-30 16:21:58 +0100 |
commit | 0d34502fe3c62ae1d61a11f573ea637c4d537170 (patch) | |
tree | 0065df4ee05472f937e36f7f51507101376c6c14 /nixos/modules/services/audio | |
parent | 1c92b1f03bd4c8c98f355554592e21a9d3e8a6da (diff) | |
download | nixlib-0d34502fe3c62ae1d61a11f573ea637c4d537170.tar nixlib-0d34502fe3c62ae1d61a11f573ea637c4d537170.tar.gz nixlib-0d34502fe3c62ae1d61a11f573ea637c4d537170.tar.bz2 nixlib-0d34502fe3c62ae1d61a11f573ea637c4d537170.tar.lz nixlib-0d34502fe3c62ae1d61a11f573ea637c4d537170.tar.xz nixlib-0d34502fe3c62ae1d61a11f573ea637c4d537170.tar.zst nixlib-0d34502fe3c62ae1d61a11f573ea637c4d537170.zip |
nixos/wyoming/openwakeword: relax model selection
The wyoming-openwakeword supports a custom model directory, which cannot be used when the the model list is constrained to the builtin ones.
Diffstat (limited to 'nixos/modules/services/audio')
-rw-r--r-- | nixos/modules/services/audio/wyoming/openwakeword.nix | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/nixos/modules/services/audio/wyoming/openwakeword.nix b/nixos/modules/services/audio/wyoming/openwakeword.nix index 06b7dd585fda..713945c1df62 100644 --- a/nixos/modules/services/audio/wyoming/openwakeword.nix +++ b/nixos/modules/services/audio/wyoming/openwakeword.nix @@ -22,15 +22,6 @@ let toString ; - models = [ - # wyoming_openwakeword/models/*.tflite - "alexa" - "hey_jarvis" - "hey_mycroft" - "hey_rhasspy" - "ok_nabu" - ]; - in { @@ -51,15 +42,22 @@ in }; models = mkOption { - type = listOf (enum models); - default = models; + type = listOf str; + default = [ + # wyoming_openwakeword/models/*.tflite + "alexa" + "hey_jarvis" + "hey_mycroft" + "hey_rhasspy" + "ok_nabu" + ]; description = mdDoc '' List of wake word models that should be made available. ''; }; preloadModels = mkOption { - type = listOf (enum models); + type = listOf str; default = [ "ok_nabu" ]; |