diff --git a/havoice/compose.yaml b/havoice/compose.yaml new file mode 100644 index 0000000..c10fec2 --- /dev/null +++ b/havoice/compose.yaml @@ -0,0 +1,26 @@ +--- +services: + wyoming-whisper: + image: rhasspy/wyoming-whisper:latest + container_name: ha-whisper + ports: + - "10300:10300" + volumes: + - /opt/rhasspy/whisper:/data + # command: --model tiny-int8 --language en + command: --model tiny --language de + restart: unless-stopped + environment: + - TZ=Europe/Berlin + + wyoming-piper: + container_name: ha-piper + image: rhasspy/wyoming-piper:1.3.2 + command: '--voice de_DE-ramona-low' + volumes: + - /opt/rhasspy/piper-data:/data + environment: + - TZ=Europe/Berlin + restart: unless-stopped + ports: + - 10200:10200 diff --git a/havoice/wyoming-piper-claim0-persistentvolumeclaim.yaml b/havoice/wyoming-piper-claim0-persistentvolumeclaim.yaml new file mode 100644 index 0000000..ad30e82 --- /dev/null +++ b/havoice/wyoming-piper-claim0-persistentvolumeclaim.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + labels: + io.kompose.service: wyoming-piper-claim0 + name: wyoming-piper-claim0 +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 100Mi diff --git a/havoice/wyoming-piper-deployment.yaml b/havoice/wyoming-piper-deployment.yaml new file mode 100644 index 0000000..7450538 --- /dev/null +++ b/havoice/wyoming-piper-deployment.yaml @@ -0,0 +1,44 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + kompose.cmd: kompose convert -f compose.yaml + kompose.version: 1.34.0 (cbf2835db) + labels: + io.kompose.service: wyoming-piper + name: wyoming-piper +spec: + replicas: 1 + selector: + matchLabels: + io.kompose.service: wyoming-piper + strategy: + type: Recreate + template: + metadata: + annotations: + kompose.cmd: kompose convert -f compose.yaml + kompose.version: 1.34.0 (cbf2835db) + labels: + io.kompose.service: wyoming-piper + spec: + containers: + - args: + - --voice + - de_DE-ramona-low + env: + - name: TZ + value: Europe/Berlin + image: rhasspy/wyoming-piper:1.3.2 + name: ha-piper + ports: + - containerPort: 10200 + protocol: TCP + volumeMounts: + - mountPath: /data + name: wyoming-piper-claim0 + restartPolicy: Always + volumes: + - name: wyoming-piper-claim0 + persistentVolumeClaim: + claimName: wyoming-piper-claim0 diff --git a/havoice/wyoming-piper-service.yaml b/havoice/wyoming-piper-service.yaml new file mode 100644 index 0000000..e94d1f1 --- /dev/null +++ b/havoice/wyoming-piper-service.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + annotations: + kompose.cmd: kompose convert -f compose.yaml + kompose.version: 1.34.0 (cbf2835db) + labels: + io.kompose.service: wyoming-piper + name: wyoming-piper +spec: + ports: + - name: "10200" + port: 10200 + targetPort: 10200 + selector: + io.kompose.service: wyoming-piper diff --git a/havoice/wyoming-whisper-claim0-persistentvolumeclaim.yaml b/havoice/wyoming-whisper-claim0-persistentvolumeclaim.yaml new file mode 100644 index 0000000..da82390 --- /dev/null +++ b/havoice/wyoming-whisper-claim0-persistentvolumeclaim.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + labels: + io.kompose.service: wyoming-whisper-claim0 + name: wyoming-whisper-claim0 +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 100Mi diff --git a/havoice/wyoming-whisper-deployment.yaml b/havoice/wyoming-whisper-deployment.yaml new file mode 100644 index 0000000..7e396a7 --- /dev/null +++ b/havoice/wyoming-whisper-deployment.yaml @@ -0,0 +1,46 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + kompose.cmd: kompose convert -f compose.yaml + kompose.version: 1.34.0 (cbf2835db) + labels: + io.kompose.service: wyoming-whisper + name: wyoming-whisper +spec: + replicas: 1 + selector: + matchLabels: + io.kompose.service: wyoming-whisper + strategy: + type: Recreate + template: + metadata: + annotations: + kompose.cmd: kompose convert -f compose.yaml + kompose.version: 1.34.0 (cbf2835db) + labels: + io.kompose.service: wyoming-whisper + spec: + containers: + - args: + - --model + - tiny + - --language + - de + env: + - name: TZ + value: Europe/Berlin + image: rhasspy/wyoming-whisper:2.5.0 + name: ha-whisper + ports: + - containerPort: 10300 + protocol: TCP + volumeMounts: + - mountPath: /data + name: wyoming-whisper-claim0 + restartPolicy: Always + volumes: + - name: wyoming-whisper-claim0 + persistentVolumeClaim: + claimName: wyoming-whisper-claim0 diff --git a/havoice/wyoming-whisper-service.yaml b/havoice/wyoming-whisper-service.yaml new file mode 100644 index 0000000..d552ae7 --- /dev/null +++ b/havoice/wyoming-whisper-service.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + annotations: + kompose.cmd: kompose convert -f compose.yaml + kompose.version: 1.34.0 (cbf2835db) + labels: + io.kompose.service: wyoming-whisper + name: wyoming-whisper +spec: + ports: + - name: "10300" + port: 10300 + targetPort: 10300 + selector: + io.kompose.service: wyoming-whisper