From a20a3534d2f965740691bc8ee38e202ad2f98989 Mon Sep 17 00:00:00 2001 From: nold Date: Sat, 20 May 2023 09:04:27 +0200 Subject: [PATCH] feat(speech): add whisper stt & pipe tts --- projects/mqtt/values/mosquitto.yaml | 2 +- projects/speech/project.yaml | 13 +++++++ projects/speech/values/piper.yaml | 54 ++++++++++++++++++++++++++++ projects/speech/values/whisper.yaml | 55 +++++++++++++++++++++++++++++ 4 files changed, 123 insertions(+), 1 deletion(-) create mode 100644 projects/speech/project.yaml create mode 100644 projects/speech/values/piper.yaml create mode 100644 projects/speech/values/whisper.yaml diff --git a/projects/mqtt/values/mosquitto.yaml b/projects/mqtt/values/mosquitto.yaml index 79a75bd5..5ebf54f6 100644 --- a/projects/mqtt/values/mosquitto.yaml +++ b/projects/mqtt/values/mosquitto.yaml @@ -7,7 +7,7 @@ service: type: LoadBalancer externalTrafficPolicy: Local annotations: - #metallb.universe.tf/allow-shared-ip: adguard + metallb.universe.tf/allow-shared-ip: iot metallb.universe.tf/address-pool: iot ports: http: diff --git a/projects/speech/project.yaml b/projects/speech/project.yaml new file mode 100644 index 00000000..26210829 --- /dev/null +++ b/projects/speech/project.yaml @@ -0,0 +1,13 @@ +config: + description: STT & TTS Services + +apps: +- name: whisper + repo: bjw-s + chart: app-template + targetRevision: 1.5.0 + +- name: piper + repo: bjw-s + chart: app-template + targetRevision: 1.5.0 diff --git a/projects/speech/values/piper.yaml b/projects/speech/values/piper.yaml new file mode 100644 index 00000000..b3fa4877 --- /dev/null +++ b/projects/speech/values/piper.yaml @@ -0,0 +1,54 @@ +image: + repository: rhasspy/wyoming-piper + tag: latest + pullPolicy: Always + +args: + - --voice + - en-us-danny-low + +service: + main: + type: ClusterIP + # externalTrafficPolicy: Local + # annotations: + # metallb.universe.tf/allow-shared-ip: iot + # metallb.universe.tf/address-pool: iot + ports: + http: + enabled: false + tcp: + enabled: true + port: 10200 + protocol: TCP + primary: true + +persistence: + data: + enabled: true + type: pvc + mountPath: /data + accessMode: ReadWriteOnce + storageClass: ssd + size: 10Gi + + tmp: + enabled: true + type: emptyDir + mountPath: /tmp + +podSecurityContext: + runAsUser: 1001 + runAsGroup: 10000 + fsGroup: 10000 + +securityContext: + runAsUser: 1001 + runAsGroup: 10000 + runAsNonRoot: true + privileged: false + readOnlyRootFilesystem: true + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL diff --git a/projects/speech/values/whisper.yaml b/projects/speech/values/whisper.yaml new file mode 100644 index 00000000..a73b855e --- /dev/null +++ b/projects/speech/values/whisper.yaml @@ -0,0 +1,55 @@ +image: + repository: rhasspy/wyoming-whisper + tag: latest + pullPolicy: Always + +args: + - --model +# - medium-int8 + - small-int8 + - --language + - en + +env: + OMP_NUM_THREADS: "8" + +service: + main: + type: ClusterIP + #externalTrafficPolicy: Local + # annotations: + # metallb.universe.tf/allow-shared-ip: iot + # metallb.universe.tf/address-pool: iot + ports: + http: + enabled: false + tcp: + enabled: true + port: 10300 + protocol: TCP + primary: true + +persistence: + data: + enabled: true + type: pvc + mountPath: /data + accessMode: ReadWriteOnce + storageClass: ssd + size: 10Gi + +podSecurityContext: + runAsUser: 1001 + runAsGroup: 10000 + fsGroup: 10000 + +securityContext: + runAsUser: 1001 + runAsGroup: 10000 + runAsNonRoot: true + privileged: false + readOnlyRootFilesystem: true + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL