feat(wyoming-piper) add custom voice option (#15585)

**Description**
Add custom voice option and moved args to a tpl, to support the custom
voice option.
⚒️ Fixes  #15570

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [X] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
Add the custom option in the main voice list; if custom is selected then
the custom voice option should be visible for the end user to add a
custom voice name to.

If a value is set to custom_voice and then it will be used instead of an
item from the voice list.

**✔️ Checklist:**

- [X] ⚖️ My code follows the style guidelines of this project
- [X] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [X] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
Signed-off-by: zierbeek <58994651+zierbeek@users.noreply.github.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
Co-authored-by: ZasX <ZasX@users.noreply.github.com>
Co-authored-by: kqmaverick <121722567+kqmaverick@users.noreply.github.com>
Co-authored-by: zierbeek <58994651+zierbeek@users.noreply.github.com>
This commit is contained in:
Xstar97TheNoob 2023-12-02 08:20:00 -05:00 committed by GitHub
parent 57a03f8731
commit 1bc7e18a80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 76 additions and 32 deletions

View File

@ -3,8 +3,8 @@ apiVersion: v2
name: emulatorjs
version: 6.0.21
appVersion: 1.7.3
description: Emulatorjs - In browser web based emulation portable to nearly any device
for many retro consoles.
description: Emulatorjs - In browser web based emulation portable to nearly any device for many retro consoles.
type: application
home: https://truecharts.org/charts/stable/emulatorjs
icon: https://truecharts.org/img/hotlink-ok/chart-icons/emulatorjs.png
deprecated: false
@ -29,7 +29,7 @@ annotations:
max_scale_version: 23.10.1
min_scale_version: 22.12.4
truecharts.org/SCALE-support: "true"
truecharts.org/category: incubator
truecharts.org/category: emulator
truecharts.org/max_helm_version: "3.13"
truecharts.org/min_helm_version: "3.12"
truecharts.org/train: stable

View File

@ -1,7 +1,7 @@
kubeVersion: '>=1.24.0'
apiVersion: v2
name: mealie
version: 18.0.2
version: 18.1.0
appVersion: 1.0.0
description: Mealie is a self hosted recipe manager and meal planner with a RestAPI
backend

View File

@ -1,6 +1,6 @@
image:
repository: ghcr.io/mealie-recipes/mealie
tag: v1.0.0-RC1.1@sha256:6df1e795f17af43f082146e471113315487b5f0882f2ee7553d469034d929af1
tag: v1.0.0-RC2@sha256:9881b16dda92272c6eeeb132697ad2379be1c562f0f53f86f20ce2654b57f455
pullPolicy: IfNotPresent
mealie:
frontend:

View File

@ -1,5 +0,0 @@
# Default Username/Password
**Username**: `admin`
**Password**: `adminadmin`

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -0,0 +1,17 @@
# Initial Password
As of qBittorrent 4.6.1 the default password of `adminadmin` is no longer used. If you previously used this password or are completing a new installation of qBittorent you will now have a randomly generated password. This guide will show you how to locate this randomly generated password.
1. With qBittorent selected in the application window select the logs button.
![qbittorrent-logs](./images/qbittorrent-logs.png)
2. In the `Choose Pod` windows ensure the qBittorent Pod and Container is selected and click `Choose`.
![qbittorent-logs2](./images/qbittorrent-logs2.png)
3. In the `Information` section of the logs take note of the randomly generated password.
![qbittorent-password](./images/qbittorrent-password.png)
4. Use the randomly generated password to login to the WebUI. You must change it in the qBittorent settings after you login as it will generate a new random password each time qBittorent is started until a password is set.

View File

@ -1,7 +1,7 @@
kubeVersion: '>=1.24.0'
apiVersion: v2
name: wyoming-piper
version: 1.0.7
version: 1.0.8
appVersion: 1.4.0
description: The Wyoming integration of piper
home: https://truecharts.org/charts/stable/wyoming-piper

View File

@ -0,0 +1,3 @@
wyoming_piper:
voice: custom
custom_voice: en_US-libritts_r-medium

View File

@ -25,6 +25,8 @@ questions:
required: true
default: en_US-lessac-medium
enum:
- value: custom
description: custom
- value: ca-upc_ona-x-low
description: ca-upc_ona-x-low
- value: ca-upc_pau-x-low
@ -309,6 +311,13 @@ questions:
description: zh_CN-huayan-medium
- value: zh_CN-huayan-x_low
description: zh_CN-huayan-x_low
- variable: custom_voice
label: Custom Voice
description: Add a valid custom voice found upstream https://huggingface.co/rhasspy/piper-voices/blob/main/voices.json
schema:
type: string
default: ""
show_if: [[voice, "=", "custom"]]
- variable: speaker
label: Speaker
description: Speaker number to use if the voice supports multiple speakers.

View File

@ -0,0 +1,20 @@
{{- define "wyoming-piper.args" -}}
{{- $piper := .Values.wyoming_piper -}}
args:
- --voice
{{- with $piper.custom_voice }}
- {{ . | quote }}
{{- else }}
- {{ $piper.voice | quote }}
{{- end }}
- --speaker
- {{ $piper.speaker | quote }}
- --length-scale
- {{ $piper.length_scale | quote }}
- --noise-scale
- {{ $piper.noise_scale | quote }}
- --noise-w
- {{ $piper.noise_w | quote }}
- --max-piper-procs
- {{ $piper.max_piper_procs | quote }}
{{- end -}}

View File

@ -1 +1,8 @@
{{ include "tc.v1.common.loader.all" . }}
{{/* Make sure all variables are set properly */}}
{{- include "tc.v1.common.loader.init" . }}
{{- $newArgs := (include "wyoming-piper.args" . | fromYaml) }}
{{- $_ := set .Values.workload.main.podSpec.containers.main "args" $newArgs.args -}}
{{/* Render the templates */}}
{{ include "tc.v1.common.loader.apply" . }}

View File

@ -2,13 +2,24 @@ image:
repository: rhasspy/wyoming-piper
pullPolicy: IfNotPresent
tag: 1.4.0@sha256:4c3c056e043aa15e85bbca1ba4b15b9a866b49d50d9c778475179a747e25f489
service:
main:
ports:
main:
port: 10200
protocol: tcp
targetPort: 10200
wyoming_piper:
voice: en_US-lessac-medium
# custom_voice: ""
speaker: 0
length_scale: "1.0"
noise_scale: "0.667"
noise_w: "0.333"
max_piper_procs: 1
workload:
main:
podSpec:
@ -24,30 +35,12 @@ workload:
startup:
port: 10200
type: tcp
args:
- --voice
- "{{ .Values.wyoming_piper.voice }}"
- --speaker
- "{{ .Values.wyoming_piper.speaker }}"
- --length-scale
- "{{ .Values.wyoming_piper.length_scale }}"
- --noise-scale
- "{{ .Values.wyoming_piper.noise_scale }}"
- --noise-w
- "{{ .Values.wyoming_piper.noise_w }}"
- --max-piper-procs
- "{{ .Values.wyoming_piper.max_piper_procs }}"
service:
main:
ports:
main:
port: 10200
protocol: tcp
targetPort: 10200
persistence:
config:
enabled: true
mountPath: /data
portal:
open:
enabled: false