diff --git a/charts/incubator/wyoming-openwakeword/.helmignore b/charts/incubator/wyoming-openwakeword/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/incubator/wyoming-openwakeword/.helmignore @@ -0,0 +1,30 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ +# OWNERS file for Kubernetes +OWNERS +# helm-docs templates +*.gotmpl +# docs folder +/docs +# icon +icon.png diff --git a/charts/incubator/wyoming-openwakeword/CHANGELOG.md b/charts/incubator/wyoming-openwakeword/CHANGELOG.md new file mode 100644 index 00000000000..6afbcc5f802 --- /dev/null +++ b/charts/incubator/wyoming-openwakeword/CHANGELOG.md @@ -0,0 +1,3 @@ +--- +title: Changelog +--- diff --git a/charts/incubator/wyoming-openwakeword/Chart.yaml b/charts/incubator/wyoming-openwakeword/Chart.yaml new file mode 100644 index 00000000000..75cedcf72fa --- /dev/null +++ b/charts/incubator/wyoming-openwakeword/Chart.yaml @@ -0,0 +1,37 @@ +annotations: + max_scale_version: 23.10.2 + min_scale_version: 23.10.0 + truecharts.org/SCALE-support: "true" + truecharts.org/category: home-automation + truecharts.org/max_helm_version: "3.14" + truecharts.org/min_helm_version: "3.12" + truecharts.org/train: incubator +apiVersion: v2 +appVersion: 1.10.0 +dependencies: + - name: common + version: 18.1.2 + repository: oci://tccr.io/truecharts + condition: "" + alias: "" + tags: [] + import-values: [] +deprecated: false +description: The Wyoming integration of openWakeWord +home: https://truecharts.org/charts/incubator/wyoming-openwakeword +icon: https://truecharts.org/img/hotlink-ok/chart-icons/wyoming-openwakeword.png +keywords: + - wyoming-openwakeword +kubeVersion: ">=1.24.0-0" +maintainers: + - name: TrueCharts + email: info@truecharts.org + url: https://truecharts.org +name: wyoming-openwakeword +sources: + - https://github.com/home-assistant/addons/tree/master/openwakeword + - https://github.com/rhasspy/wyoming-openwakeword/ + - https://github.com/truecharts/charts/tree/master/charts/incubator/wyoming-openwakeword + - https://hub.docker.com/r/rhasspy/wyoming-openwakeword +type: application +version: 0.0.1 diff --git a/charts/incubator/wyoming-openwakeword/README.md b/charts/incubator/wyoming-openwakeword/README.md new file mode 100644 index 00000000000..2b8cc49d247 --- /dev/null +++ b/charts/incubator/wyoming-openwakeword/README.md @@ -0,0 +1,3 @@ +--- +title: README +--- diff --git a/charts/incubator/wyoming-openwakeword/icon.png b/charts/incubator/wyoming-openwakeword/icon.png new file mode 100644 index 00000000000..3e9a13c45af Binary files /dev/null and b/charts/incubator/wyoming-openwakeword/icon.png differ diff --git a/charts/incubator/wyoming-openwakeword/questions.yaml b/charts/incubator/wyoming-openwakeword/questions.yaml new file mode 100644 index 00000000000..9cbce9ea5b4 --- /dev/null +++ b/charts/incubator/wyoming-openwakeword/questions.yaml @@ -0,0 +1,162 @@ +# Include{groups} +portals: {} +questions: +# Include{global} +# Include{workload} +# Include{workloadDeployment} +# Include{replicas1} +# Include{podSpec} +# Include{containerMain} +# Include{containerBasic} +# Include{containerAdvanced} + - variable: wyoming_openwakeword + group: App Configuration + label: OpenWakeWord Configuration + schema: + additional_attrs: true + type: dict + attrs: + - variable: model + label: Model + description: OpenWakeWord model that will be used for voice detection. + schema: + type: string + required: true + default: ok_nabu + enum: + - value: alexa + description: alexa + - value: hey_jarvis + description: hey jarvis + - value: hey_mycroft + description: hey mycroft + - value: hey_rhasspy + description: hey rhasspy + - value: ok_nabu + description: ok nabu + - value: melspectrogram + description: melspectrogram + - value: embedding_model + description: embedding model + - variable: preload_model + label: Preload model + schema: + additional_attrs: true + type: dict + attrs: + - variable: enabled + label: Enabled + description: "A preloaded model argument will ensure the model is loaded into memory at start-up instead of when first requested." + schema: + type: boolean + default: true + - variable: debug + label: Debug + schema: + additional_attrs: true + type: dict + attrs: + - variable: enabled + label: Enabled + description: "Enable debug logging. Useful for seeing satellite connections and each wake word detection in the logs." + schema: + type: boolean + default: false + - variable: custom_model + label: Custom model + schema: + additional_attrs: true + type: dict + attrs: + - variable: enabled + label: Enabled + description: | + By enabling this feature, you can specify the path to your own custom model.
+ To access this custom model from the app, you should mount a host path volume. + schema: + type: boolean + default: true + show_subquestions_if: true + subquestions: + - variable: path + label: Path to custom model in app + description: | + The path to the custom model location in the container. + schema: + type: string + required: true + default: "/custom" + - variable: threshold + label: Threshold + description: "Wake word model threshold (0.0-1.0, default: 0.5)" + schema: + type: string + required: true + default: "0.5" + - variable: trigger_level + label: Trigger level + description: "Number of activations before detection (default: 1)" + schema: + type: int + required: true + default: 1 +# Include{containerConfig} +# Include{serviceRoot} +# Include{serviceMain} +# Include{serviceSelectorLoadBalancer} +# Include{serviceSelectorExtras} + - variable: main + label: "Main Service Port Configuration" + schema: + additional_attrs: true + type: dict + attrs: + - variable: port + label: "Port" + description: "This port exposes the container port on the service" + schema: + type: int + default: 10400 + required: true +# Include{serviceExpertRoot} +# Include{serviceExpert} +# Include{serviceList} +# Include{ingressRoot} + - variable: main + label: "Main Ingress" + schema: + additional_attrs: true + type: dict + attrs: +# Include{ingressDefault} +# Include{ingressAdvanced} +# Include{ingressList} +# Include{securityContextRoot} + - variable: runAsUser + label: "runAsUser" + description: "The UserID of the user running the application" + schema: + type: int + default: 568 + - variable: runAsGroup + label: "runAsGroup" + description: "The groupID of the user running the application" + schema: + type: int + default: 568 +# Include{securityContextContainer} +# Include{securityContextAdvanced} +# Include{securityContextPod} + - variable: fsGroup + label: "fsGroup" + description: "The group that should own ALL storage." + schema: + type: int + default: 568 +# Include{resources} +# Include{advanced} +# Include{addons} +# Include{codeserver} +# Include{netshoot} +# Include{vpn} +# Include{documentation} diff --git a/charts/incubator/wyoming-openwakeword/templates/NOTES.txt b/charts/incubator/wyoming-openwakeword/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/wyoming-openwakeword/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/wyoming-openwakeword/templates/_args.tpl b/charts/incubator/wyoming-openwakeword/templates/_args.tpl new file mode 100644 index 00000000000..a1452174215 --- /dev/null +++ b/charts/incubator/wyoming-openwakeword/templates/_args.tpl @@ -0,0 +1,21 @@ +{{- define "wyoming-openwakeword.args" -}} +{{- $openwakeword := .Values.wyoming_openwakeword -}} +args: + - --model + - {{ $openwakeword.model | quote }} + {{- if $openwakeword.preload_model }} + - --preload-model + - {{ $openwakeword.model | quote }} + {{- end }} + {{- if $openwakeword.custom_model.path }} + - --custom-model-dir + - {{ $openwakeword.custom_model.path | quote }} + {{- end }} + {{- if $openwakeword.debug }} + - --debug + {{- end }} + - --threshold + - {{ $openwakeword.threshold | quote }} + - --trigger-level + - {{ $openwakeword.trigger_level | quote }} +{{- end -}} diff --git a/charts/incubator/wyoming-openwakeword/templates/common.yaml b/charts/incubator/wyoming-openwakeword/templates/common.yaml new file mode 100644 index 00000000000..530c82ae47c --- /dev/null +++ b/charts/incubator/wyoming-openwakeword/templates/common.yaml @@ -0,0 +1,8 @@ +{{/* Make sure all variables are set properly */}} +{{- include "tc.v1.common.loader.init" . }} + +{{- $newArgs := (include "wyoming-openwakeword.args" . | fromYaml) }} +{{- $_ := set .Values.workload.main.podSpec.containers.main "args" $newArgs.args -}} + +{{/* Render the templates */}} +{{ include "tc.v1.common.loader.apply" . }} diff --git a/charts/incubator/wyoming-openwakeword/values.yaml b/charts/incubator/wyoming-openwakeword/values.yaml new file mode 100644 index 00000000000..bb56526ab4d --- /dev/null +++ b/charts/incubator/wyoming-openwakeword/values.yaml @@ -0,0 +1,25 @@ +image: + repository: rhasspy/wyoming-openwakeword + pullPolicy: IfNotPresent + tag: 1.10.0@sha256:951b823c38403a9f10445a370d3dace3da4c38f64c6579dfbc5af0c10098f1b8 + +wyoming_openwakeword: + model: ok_nabu + preload_model: true + custom_model: + path: "" + threshold: "0.5" + trigger_level: 1 + debug: false + +service: + main: + ports: + main: + port: 10400 + protocol: tcp + targetPort: 10400 + +portal: + open: + enabled: false