Skip to main content
Version: 2026.11.0

Adjustments

This section describes various configuration use cases for the Speech Platform virtual appliance.

Configuration file

Unless stated otherwise, all configuration changes in this section are made in the file /data/speech-platform/speech-platform-values.yaml. You can edit it directly from inside the virtual appliance or via File Browser.

After saving changes, the application automatically recognizes the update and redeploys with the new configuration. Always validate the YAML after making changes.

Technology overview​

The Speech Platform consists of multiple technology components. Each technology runs as an independent service and can be individually enabled, configured, and scaled.

Technologies are divided into two categories:

Microservices​

Each microservice runs a single model and is configured directly at the technology level:

  • age-estimation
  • audio-manipulation-detection
  • audio-quality-estimation
  • deepfake-detection
  • denoiser
  • emotion-recognition
  • gender-identification
  • language-identification
  • replay-attack-detection
  • speaker-diarization
  • speaker-identification
  • time-analysis
  • voice-activity-detection

Instance-based microservices​

Instance-based microservices can run multiple instances, typically one per language or model variant. Each instance is configured separately under config.instances:

  • enhanced-speech-to-text-built-on-whisper
  • grapheme-to-phoneme-conversion
  • keyword-spotting
  • phoneme-recognition
  • speech-to-text
  • text-translation
note

enhanced-speech-to-text-built-on-whisper is the one that splits by model rather than by language: every model you are licensed for gets its own instance and they all run at once, each with its own licence key. See Models in a technology.

note

grapheme-to-phoneme-conversion and phoneme-recognition reuse the keyword-spotting models and do not require a licence of their own. They appear in the technology list reported by /api/system/info like any other technology.

Enable or disable technologies​

By default, all technologies are disabled (enabled: false). To enable a technology, set the enabled flag to true in the configuration file.

  1. Open text file /data/speech-platform/speech-platform-values.yaml either directly from inside virtual appliance or via File Browser.
  2. Locate the technology section .spec.valuesContent.<technology>.
  3. Set enabled to true:
    apiVersion: helm.cattle.io/v1
    kind: HelmChartConfig
    metadata:
    name: speech-platform
    namespace: kube-system
    spec:
    valuesContent: |-
    <Not significant lines omitted>
    <technology>:
    enabled: true
  4. Save the file.
  5. The application automatically recognizes when the file is updated and redeploys itself with the updated configuration.
  6. Check that the configuration is valid and successfully applied (Configuration file checks).

Configuration of technology models and licenses​

Changing technology models​

The configuration script does this for you. It reads what is in /data/, pairs every model with its licence and writes /data/speech-platform/speech-platform-values.yaml accordingly, so there is normally nothing to edit by hand:

Terminal
./configure-speech-platform.sh -a

For a technology that has a single model, the result looks like this — the licence key names the model and its major version, and the two have to agree or the service refuses to start with Model is not valid:

speaker-diarization:
config:
model:
file: "xl-5.4.0.model"
license:
key: "xl-5"

Enhanced Speech to Text Built on Whisper is configured differently, because every model it is licensed for runs at the same time. See Models in a technology.

Speech to Text, Keyword Spotting and Text Translation are also configured as instances, one per language, again by the script.

Inspect technologies models​

Models are stored inside the /data/models folder, where path to each model is constructed as:

/data/models/<technology_name>/<model_name>-<model_version>.model

Where:

  • technology_name - is name of the technology, e.g. speaker_identification
  • model_name - is name of the model, e.g. xl
  • model_version - is version of a model, e.g. 5.4.0

To see what has been uploaded, open the models folder in File Browser:

http://<virtual-appliance-ip>/filebrowser/files/models

Each subfolder is one technology, and holds a .model file with the matching -license.txt beside it. Appending the technology name opens that folder directly, for example http://<virtual-appliance-ip>/filebrowser/files/models/speaker_identification.

A fully populated appliance looks like this:

models/
├── enhanced_speech_to_text_built_on_whisper/
│ ├── large_v2-1.3.0.model
│ └── large_v2-1.3.0-license.txt
├── speaker_identification/
│ ├── xl-5.4.0.model
│ └── xl-5.4.0-license.txt
├── speech_to_text/
│ ├── en_us-6.2.0.model
│ └── en_us-6.2.0-license.txt
└── time_analysis/
├── generic-1.2.0.model
└── generic-1.2.0-license.txt

Inspect technologies licenses​

Licenses are stored in path /data/speech-platform/speech-platform-licenses.yaml. File contains the Kubernetes secrets definition of a licenses which ensures the simple loading of licenses to the application.

To check which licences were imported, open the file in File Browser, which displays and edits it in place:

http://<virtual-appliance-ip>/filebrowser/files/speech-platform/speech-platform-licenses.yaml

Kubernetes secret definitions in a file are separated by ---. Each secret contains the contents of the file on the .stringData.license path corresponding to the technology for which the license is meant. For example:

  • For model of technology speaker_identification with name xl and version 5.4.0, the secret will look like this:
---
apiVersion: v1
kind: Secret
metadata:
name: speaker-identification-license
namespace: speech-platform
stringData:
license: |
<content of "/data/models/speaker_identification/xl-5.4.0-license.txt" file>
type: Opaque

The whole file holds one such secret per licensed technology:

---
apiVersion: v1
kind: Secret
metadata:
name: speaker-identification-license
namespace: speech-platform
stringData:
license: |
<content of "/data/models/speaker_identification/xl-5.4.0-license.txt" file>
type: Opaque
---
apiVersion: v1
kind: Secret
metadata:
name: enhanced-speech-to-text-built-on-whisper-license
namespace: speech-platform
stringData:
license: |
<content of "/data/models/enhanced_speech_to_text_built_on_whisper/large_v2-1.3.0-license.txt" file>
type: Opaque
.
.
.

Set DNS name for speech platform virtual appliance​

Speech platform is accessible on http://<virtual-appliance-ip>. We recommend to create DNS record to make access more comfortable for users. Consult your DNS provider to get more information how to add corresponding DNS record.

Use HTTPS certificate​

Speech platform is also accessible via HTTPS on https://<virtual-appliance-ip>. By default, it serves a self-signed certificate generated on first startup, so browsers warn that the connection is not trusted until you install your own certificate.

HTTPS needs no enabling: the gateway defines listeners on both port 80 (HTTP) and port 443 (HTTPS), and the self-signed certificate is generated by the default-tls-cert service before Kubernetes starts. If port 443 refuses connections, that service did not complete — check it with systemctl status default-tls-cert and journalctl -u default-tls-cert.

If your certificate is issued for a hostname rather than an IP address, use that hostname in place of <virtual-appliance-ip> in the commands below.

Prepare certificate files​

Prepare the two certificate files:

FileContents
cert.crtThe certificate, PEM encoded
cert.keyThe matching private key, PEM encoded, without a passphrase
The file names matter

Do not change the file names — the appliance looks for exactly these two.

If your certificate authority issued intermediate certificates, put the full chain into cert.crt with the server certificate first.

Install the certificate​

Put both files to the /data/certificate/ directory on the appliance, either using GUI, or using a terminal.

  1. Open http://<virtual-appliance-ip>/filebrowser.
  2. Open the certificate folder.
  3. Upload cert.crt and cert.key into it.

The appliance detects the new files within a few seconds and begins serving the new certificate — no restart of the appliance is required.

Verify​

Open https://<virtual-appliance-ip> in a browser. The warning about an untrusted connection should be gone.

To check from a terminal:

openssl s_client -connect <virtual-appliance-ip>:443 </dev/null 2>/dev/null | openssl x509 -noout -subject -issuer -dates

The subject and issuer must match your certificate. If they still read CN=Phonexia Speech Platform Virtual Appliance, the appliance is serving its built-in self-signed certificate and yours has not been picked up — see the troubleshooting note below.

Replace an expiring certificate​

Overwrite existing cert.crt and cert.key files in /data/certificate directory with new ones (see above for details). The appliance detects the change and starts using the new certificate automatically.

Troubleshooting​

If the new certificate does not take effect, check the service that picks it up. Run this on the appliance:

systemctl status default-tls-cert.service
journalctl -u default-tls-cert.service -n 20

Common causes:

SymptomCause
cert.crt is not a valid PEM certificateThe file is not PEM encoded, or is a DER/PFX export
Service succeeded, browser still warnsThe private key does not match the certificate. See below for more info.
Nothing happened at allFiles are named differently than cert.crt and cert.key, or not present in /data/certificate/ directory

Check that the key matches the certificate — both commands must print the same hash:

openssl x509 -noout -modulus -in cert.crt | openssl md5
openssl rsa -noout -modulus -in cert.key | openssl md5

If the key is passphrase protected, openssl rsa asks for it. Remove the passphrase with openssl rsa -in cert.key -out cert-nopass.key, then upload cert-nopass.key as cert.key.

Disable administration endpoints​

Next to the Speech Platform itself, the appliance exposes administration endpoints: File Browser, Grafana, Prometheus and the administration landing page. Deployments that want the Speech Platform reachable while these are not can switch them off.

Run on the appliance console:

/home/phonexia/scripts/disable-admin-endpoints.sh

The blocked paths then answer with HTTP 403 instead of the application. With no target named, the script acts on all of them:

TargetEndpoints
filebrowserFile Browser (/filebrowser)
monitoringGrafana (/grafana) and Prometheus (/prometheus)
landing-pageAdministration landing page (/admin)

Grafana and Prometheus share one route, so they are always switched together as monitoring.

# Block Grafana and Prometheus only
/home/phonexia/scripts/disable-admin-endpoints.sh monitoring

# Restore access to File Browser
/home/phonexia/scripts/disable-admin-endpoints.sh --restore filebrowser

# Show which endpoints are currently blocked
/home/phonexia/scripts/disable-admin-endpoints.sh --status

The last command prints the state of each endpoint:

ENDPOINT STATE
filebrowser blocked
monitoring accessible
landing-page accessible
Upgrading the appliance restores access

Blocking survives a restart of the appliance, but not an upgrade of the appliance image — the endpoints answer again afterwards. Run the script again after every upgrade.

System configuration page

Blocking File Browser also disables the System configuration page in the web application, because that page reads and writes the configuration files through File Browser. While File Browser is blocked, configure technologies with the configuration script instead.

Extend disks​

Disks are extended automatically on VM startup by growfs systemd service when you extend the backing volume/disk in the hypervisor.

Instance-based microservices configuration​

This section describes configuration specific to instance-based microservices (speech-to-text, keyword-spotting, and text-translation). Each instance typically corresponds to a single language or model variant.

info

The examples in this section use speech-to-text technology, but the same principles apply to keyword-spotting and text-translation.

Permanent vs on-demand instances​

A permanent instance is started and running (consuming resources) all the time. An on-demand instance is started only when a corresponding task is queued and stopped when all tasks have been processed.

FeaturePermanentOn-demand
Resource usageConstantOnly when processing
Startup latencyNoneCold start delay
Best forHigh-throughput workloadsOccasional usage

All instances are on-demand by default. To reconfigure an instance from on-demand to permanent:

  1. Open text file /data/speech-platform/speech-platform-values.yaml either directly from inside virtual appliance or via File Browser.
  2. Locate key .spec.valuesContent.speech-to-text.config.instances.
  3. Corresponding section looks like:
    apiVersion: helm.cattle.io/v1
    kind: HelmChartConfig
    metadata:
    name: speech-platform
    namespace: kube-system
    spec:
    valuesContent: |-
    <Not significant lines omitted>
    speech-to-text:
    <Not significant lines omitted>
    config:
    <Not significant lines omitted>
    instances:
    .
    .
    .
    - name: cs
    imageTag: 6.6.0-cs_cz
    onDemand:
    enabled: true
    cooldownPeriod: 600
    .
    .
    .
  4. Delete the onDemand key and its subkeys for the desired instance.
  5. Updated file should look like:
    apiVersion: helm.cattle.io/v1
    kind: HelmChartConfig
    metadata:
    name: speech-platform
    namespace: kube-system
    spec:
    valuesContent: |-
    <Not significant lines omitted>
    speech-to-text:
    <Not significant lines omitted>
    config:
    <Not significant lines omitted>
    instances:
    .
    .
    .
    - name: cs
    imageTag: 6.6.0-cs_cz
    .
    .
    .
  6. Save the file.
  7. The application automatically recognizes when the file is updated and redeploys itself with the updated configuration.
  8. Check that the configuration is valid and successfully applied (Configuration file checks).

Configure languages in Speech to Text technology​

This technology consists of multiple instances. Each instance corresponds to a single language. All instances are listed in the configuration file.

By default all languages/instances are enabled in on-demand mode. List of languages:

  • ar_kw
  • ar_xl
  • bn
  • cs_cz
  • de_de
  • en_us
  • es
  • fa
  • fr_fr
  • hr_hr
  • hu_hu
  • it_it
  • ka_ge
  • kk_kz
  • nl
  • pl_pl
  • ps
  • ru_ru
  • sk_sk
  • sr_rs
  • sv_se
  • tr_tr
  • uk_ua
  • vi_vn
  • zh_cn

How to disable all language instances except cs_cz and en_us:

  1. Open text file /data/speech-platform/speech-platform-values.yaml either directly from inside virtual appliance or via File Browser.

  2. Locate key .spec.valuesContent.speech-to-text.config.instances.

  3. Corresponding section looks like:

    apiVersion: helm.cattle.io/v1
    kind: HelmChartConfig
    metadata:
    name: speech-platform
    namespace: kube-system
    spec:
    valuesContent: |-
    <Not significant lines omitted>
    speech-to-text:
    <Not significant lines omitted>
    config:
    <Not significant lines omitted>
    instances:
    - name: ar-kw
    imageTag: <version>-ar_kw
    onDemand:
    enabled: true
    cooldownPeriod: 600
    - name: ar-xl
    imageTag: <version>-ar_xl
    onDemand:
    enabled: true
    cooldownPeriod: 600
    - name: bn
    imageTag: 6.1.0-bn
    onDemand:
    enabled: true
    cooldownPeriod: 600
    - name: cs
    imageTag: 6.6.0-cs_cz
    onDemand:
    enabled: true
    cooldownPeriod: 600
    - name: de
    imageTag: 6.1.0-de_de
    onDemand:
    enabled: true
    cooldownPeriod: 600
    - name: en
    imageTag: 6.2.0-en_us
    onDemand:
    enabled: true
    cooldownPeriod: 600
    .
    .
    .
    - name: vi
    imageTag: 6.2.0-vi_vn
    onDemand:
    enabled: true
    cooldownPeriod: 600
    - name: zh
    imageTag: 6.1.0-zh_cn
    onDemand:
    enabled: true
    cooldownPeriod: 600
  4. Comment out or delete all instances except the ones you need.

    Option A — Comment out unwanted instances:

    apiVersion: helm.cattle.io/v1
    kind: HelmChartConfig
    metadata:
    name: speech-platform
    namespace: kube-system
    spec:
    valuesContent: |-
    <Not significant lines omitted>
    speech-to-text:
    <Not significant lines omitted>
    config:
    <Not significant lines omitted>
    instances:
    #- name: ar-kw
    # imageTag: <version>-ar_kw
    # onDemand:
    # enabled: true
    # cooldownPeriod: 600
    #- name: bn
    # imageTag: 6.1.0-bn
    # onDemand:
    # enabled: true
    # cooldownPeriod: 600
    - name: cs
    imageTag: 6.6.0-cs_cz
    onDemand:
    enabled: true
    cooldownPeriod: 600
    #- name: de
    # imageTag: 6.1.0-de_de
    # onDemand:
    # enabled: true
    # cooldownPeriod: 600
    - name: en
    imageTag: 6.2.0-en_us
    onDemand:
    enabled: true
    cooldownPeriod: 600
    .
    .
    .

    Option B — Delete unwanted instances entirely (cleaner):

    apiVersion: helm.cattle.io/v1
    kind: HelmChartConfig
    metadata:
    name: speech-platform
    namespace: kube-system
    spec:
    valuesContent: |-
    <Not significant lines omitted>
    speech-to-text:
    <Not significant lines omitted>
    config:
    <Not significant lines omitted>
    instances:
    - name: cs
    imageTag: 6.6.0-cs_cz
    onDemand:
    enabled: true
    cooldownPeriod: 600
    - name: en
    imageTag: 6.2.0-en_us
    onDemand:
    enabled: true
    cooldownPeriod: 600
  5. Save the file.

  6. The application automatically recognizes when the file is updated and redeploys itself with the updated configuration.

  7. Check that the configuration is valid and successfully applied (Configuration file checks).

Modify replicas for permanent language instances​

Each language instance has only one replica by default. This means that only one request/audiofile can be processed at once. To process multiple requests/audiofiles in parallel you have to increase replicas for corresponding language instance.

caution

We do not recommend increasing replicas for any technology when virtual appliance is running with default resources (4 CPU, 32 GB memory)! On-demand instances always have only one replica.

  1. Find out which language instance you want to configure replicas for.
  2. Open text file /data/speech-platform/speech-platform-values.yaml either directly from inside virtual appliance or via File Browser.
  3. Locate key .spec.valuesContent.speech-to-text.config.instances.<language instance>.replicaCount.
  4. Change the value to desired amount of replicas.
  5. Corresponding section looks like:
    apiVersion: helm.cattle.io/v1
    kind: HelmChartConfig
    metadata:
    name: speech-platform
    namespace: kube-system
    spec:
    valuesContent: |-
    <Not significant lines omitted>
    speech-to-text:
    <Not significant lines omitted>
    config:
    <Not significant lines omitted>
    instances:
    - name: cs
    imageTag: 6.6.0-cs_cz
    replicaCount: 2
  6. Save the file.
  7. The application automatically recognizes when the file is updated and redeploys itself with the updated configuration.
  8. Check that the configuration is valid and successfully applied (Configuration file checks).

Modify technology replicas​

Each technology has only one replica by default. This means that only one request/audiofile can be processed at once. To process multiple requests/audiofiles in parallel, you have to increase replicas for corresponding technologies.

caution

We do not recommend increasing replicas for any technology when virtual appliance is running with default resources (4CPU, 32GB memory)!

  1. Find out which technologies you want to modify replicas — age-estimation, audio-manipulation-detection, audio-quality-estimation, deepfake-detection, denoiser, emotion-recognition, enhanced-speech-to-text-built-on-whisper, gender-identification, keyword-spotting, language-identification, replay-attack-detection, speaker-diarization, speaker-identification, speech-to-text, text-translation, time-analysis, or voice-activity-detection.
  2. Open text file /data/speech-platform/speech-platform-values.yaml either directly from inside virtual appliance or via File Browser.
  3. Locate key .spec.valuesContent.<technology>.replicaCount
  4. Change the value to desired amount of replicas.
  5. Updated file should look like:
    apiVersion: helm.cattle.io/v1
    kind: HelmChartConfig
    metadata:
    name: speech-platform
    namespace: kube-system
    spec:
    valuesContent: |-
    <Not significant lines omitted>
    <technology>:
    <Not significant lines omitted>
    replicaCount: 2
  6. Save the file.
  7. The application automatically recognizes when the file is updated and redeploys itself with the updated configuration.
  8. Check that the configuration is valid and successfully applied (Configuration file checks).

Run technology on GPU​

Some of the technologies can run on GPU which increases the processing speed. Technologies that support GPU acceleration are: age-estimation, audio-manipulation-detection, audio-quality-estimation, deepfake-detection, emotion-recognition, enhanced-speech-to-text-built-on-whisper, gender-identification, keyword-spotting, language-identification, replay-attack-detection, speaker-diarization, speaker-identification, speech-to-text, text-translation, and voice-activity-detection.

note

Technologies denoiser and time-analysis do not support GPU acceleration.

First, make sure the virtual appliance can see the GPU device(s). Use nvidia-smi to list all the devices. If a device is present and visible to the system, the output should look like:

Terminal
nvidia-smi -L

Example output:

GPU 0: NVIDIA GeForce GTX 980 (UUID: GPU-1fb957fa-a6fc-55db-e76c-394e9a67b7f5)

If the GPU is visible, you can reconfigure the technology to use GPU for processing.

tip

CPU resources are still used alongside GPU. We recommend allocating at least 1 CPU core per concurrent processing task.

  1. Open text file /data/speech-platform/speech-platform-values.yaml either directly from inside virtual appliance or via File Browser.

  2. Locate technology section .spec.valuesContent.<technology>.

  3. Locate key .spec.valuesContent.<technology>.config.device.

  4. Change the value from cpu to cuda:

    apiVersion: helm.cattle.io/v1
    kind: HelmChartConfig
    metadata:
    name: speech-platform
    namespace: kube-system
    spec:
    valuesContent: |-
    <Not significant lines omitted>
    <technology>:
    <Not significant lines omitted>
    config:
    <Not significant lines omitted>
    device: cuda
  5. Locate key .spec.valuesContent.<technology>.resources.

  6. Request GPU resources for the processing so that it looks like:

    apiVersion: helm.cattle.io/v1
    kind: HelmChartConfig
    metadata:
    name: speech-platform
    namespace: kube-system
    spec:
    valuesContent: |-
    <Not significant lines omitted>
    <technology>:
    <Not significant lines omitted>
    resources:
    limits:
    nvidia.com/gpu: "1"
note

You do not need to set runtimeClassName or updateStrategy yourself. The appliance already applies runtimeClassName: "nvidia" and updateStrategy.type: Recreate to every GPU-capable technology through its internal configuration, which is separate from the file you edit here. Setting config.device and the nvidia.com/gpu resource limit is all that is needed to move a technology onto the GPU.

  1. Example: Updated file for enhanced-speech-to-text-built-on-whisper should look like:

    apiVersion: helm.cattle.io/v1
    kind: HelmChartConfig
    metadata:
    name: speech-platform
    namespace: kube-system
    spec:
    valuesContent: |-
    <Not significant lines omitted>
    enhanced-speech-to-text-built-on-whisper:
    <Not significant lines omitted>
    config:
    <Not significant lines omitted>
    device: cuda

    <Not significant lines omitted>
    resources:
    limits:
    nvidia.com/gpu: "1"
  2. Save the file.

  3. The application automatically recognizes when the file is updated and redeploys itself with the updated configuration.

  4. Check that the configuration is valid and successfully applied (Configuration file checks).

How the GPU is shared between technologies​

The appliance shares one physical GPU between several technologies using the NVIDIA device plugin's time slicing. Each physical GPU is advertised to Kubernetes as a number of interchangeable units called slices, and a technology that requests nvidia.com/gpu: "1" receives one slice rather than a whole card.

The appliance ships with 128 slices per GPU, so a machine with a single GPU reports 128 allocatable units:

Terminal
kubectl get node -o jsonpath='{.items[0].status.allocatable.nvidia\.com/gpu}'
Example output
128

That number does not mean the appliance has 128 graphics cards, and it is not a recommendation to run 128 technologies. It is deliberately generous so that enabling or disabling technologies never requires a matching change to the slice count — unused slices cost nothing and do not affect performance.

Slices do not reserve GPU memory

Time slicing shares processing time, not memory. All technologies sharing a GPU allocate from the same video memory, and Kubernetes does not track it. The scheduler therefore only counts slices, and with 128 of them it will effectively never refuse a GPU technology on capacity grounds — it will place the pod, and the technology will then fail at runtime with an out-of-memory error if the card is already full.

The practical limit on how many technologies can share a GPU is its memory, not the slice count. Enable GPU technologies one at a time and watch GPU memory use (nvidia-smi, or the NVIDIA DCGM Exporter Dashboard in Grafana) before adding the next one.

Lower the slice count if you want the scheduler to enforce a ceiling — for example to allow at most six GPU technologies:

Terminal
/home/phonexia/scripts/configure-speech-platform.sh --set-gpu-slices 6
note

If technologies are rejected with a message about no healthy devices being available while the node still advertises allocatable GPU units, the device plugin has lost access to the driver rather than run out of capacity. Check that the driver responds with nvidia-smi, and inspect the device plugin with kubectl -n nvidia-device-plugin logs -l app.kubernetes.io/name=nvidia-device-plugin.

Processing parallelism settings​

This section describes how to control processing parallelism for technologies. These settings apply to both CPU and GPU modes.

instancesPerDevice​

Controls how many tasks can be processed concurrently by a single technology replica. A higher value means higher utilization (both processor- and memory-wise). This setting is available for most technologies.

<technology>:
config:
instancesPerDevice: 1

threadsPerInstance​

Controls the number of CPU threads used per instance for processing. This applies to CPU processing only. Set to 0 to automatically detect the optimal number of threads.

<technology>:
config:
threadsPerInstance: 1
note

Not all technologies support threadsPerInstance. Technologies denoiser and time-analysis do not have this setting.

deviceIndex / deviceIndices​

Controls which GPU card(s) to use when multiple GPU cards are present. We generally discourage changing this unless you have a specific multi-GPU setup.

<technology>:
config:
deviceIndex: 0

Models in a technology​

Some technologies come in several model variants. Enhanced Speech to Text Built on Whisper is the one where it matters: Phonexia ships it as large_v2 and large_v3, the newer one being the more accurate.

You do not choose one. The appliance deploys every model your licence covers, each as its own instance, and they run side by side. There is no model to swap and no licence to exchange when you want a different one.

warning

Every model runs at the same time and keeps its own copy loaded, so two models need roughly twice the memory of one — system memory on a processor-only appliance, graphics card memory where the technology runs on a GPU. Size the virtual machine for the models you intend to use, and ask for a licence only for the models you need.

Which models you have​

Models and their licence keys live on the data disk, one directory per technology. Open the Whisper folder in File Browser to see which variants you have:

http://<virtual-appliance-ip>/filebrowser/files/models/enhanced_speech_to_text_built_on_whisper

models/
├── enhanced_speech_to_text_built_on_whisper/
│ ├── large_v2-1.3.0.model
│ ├── enhanced_speech_to_text_built_on_whisper-large_v2-1.3.0-license.key.txt
│ ├── large_v3-1.3.0.model
│ └── enhanced_speech_to_text_built_on_whisper-large_v3-1.3.0-license.key.txt
└── speaker_identification/
├── xl-5.4.0.model
└── speaker_identification-xl-5.4.0-license.key.txt

Every Whisper model carries its own licence, because a Whisper licence is signed with the key of that model. A licence issued for large_v2 is rejected by large_v3, which is why they cannot share one.

Which model is used by default​

Requests that do not name a model are served by the default instance, which is the first one listed under config.instances for the technology in /data/speech-platform/speech-platform-values.yaml.

The configuration script fills that list by sorting the model file names, highest version first, so an appliance licensed for large_v2 and large_v3 defaults to large_v3. The order follows the file names rather than the accuracy of the models, so check which instance ended up first instead of assuming — Changing the default model sets it explicitly.

Adding a model​

Ask Phonexia for the model and its licence. You will receive a link to a zip archive. Uploading it through File Browser is the whole procedure — it unpacks the archive and runs the configuration script for you.

  1. Open http://<virtual-appliance-ip>/filebrowser.
  2. Upload the licensed-models*.zip archive.
  3. Wait for it to finish. File Browser extracts the archive and then runs the configuration script by itself. The upload pop-up stays at 100% while that happens and disappears when it is done.

The application then notices the changed configuration and redeploys itself. Check that it applied (Configuration file checks).

Either route ends in the same place: the configuration script writes /data/speech-platform/speech-platform-values.yaml, pairing each model with the right licence key — see Configuration script for its other options.

Changing the default model​

warning

Only do this if you need a different default. The models you are licensed for are all running either way.

The default is the first entry under config.instances for the technology in /data/speech-platform/speech-platform-values.yaml. Reordering that list changes which model serves unnamed requests.

One thing has to move with it. Besides the key each instance carries, the appliance records a licence key for the technology as a whole, and that one must name the same model as the first instance. Leave the two disagreeing and the technology refuses to start with Model is not valid.

Rather than edit both by hand, re-run the configuration script and restrict it to the model you want first:

Terminal
./configure-speech-platform.sh -t enhanced-speech-to-text-built-on-whisper \
--model-names large_v2 --model-versions 1.3.0
note

Do not add -a to that command. Autoconfiguration ignores --model-names and configures every licensed model again, so the choice would be discarded without a warning.

Load Speech to Text, Time Analysis and Audio Quality Estimation model from data disk​

To keep up with the latest version of the application, it is possible to load models from the virtual appliance data volume. To use the image without a bundled model and load existing models from the data volume, configure the instance as follows:

apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: speech-platform
namespace: kube-system
spec:
valuesContent: |-
<Not significant lines omitted>
speech-to-text:
<Not significant lines omitted>
config:
<Not significant lines omitted>
instances:
. . .
- name: en
imageTag: 6.2.0-en_us
. . .
<Not significant lines omitted>
time-analysis:
<Not significant lines omitted>
config:
model:
file: "generic-1.2.0.model"
<Not significant lines omitted>
audio-quality-estimation:
<Not significant lines omitted>
config:
model:
file: "generic-1.3.0.model"

By default, models are expected at the path /data/models/speech_to_text/<language>-<version>.model. This folder structure is ensured by unzipping the provided licensed-models.zip archive in the /data/models/ path. If the path to the model is different, or the version of the model does not match the image, it can be specified in the instance config:

apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: speech-platform
namespace: kube-system
spec:
valuesContent: |-
<Not significant lines omitted>
speech-to-text:
<Not significant lines omitted>
config:
<Not significant lines omitted>
instances:
. . .
- name: cs
imageTag: 6.6.0-cs_cz
model:
hostPath: /data/models/speech_to_text/cs_cz-6.6.0.model
. . .
<Not significant lines omitted>
time-analysis:
<Not significant lines omitted>
config:
model:
file: "generic-1.2.0.model"
<Not significant lines omitted>
audio-quality-estimation:
<Not significant lines omitted>
config:
model:
file: "generic-1.3.0.model"

Process patented audio codecs with media-processing​

By default media processing can work only with patent-free audio codecs.

We cannot include and distribute patented codecs with virtual appliance, so the appliance ships only the patent-free build of the media-processing service. Both builds are published on Docker Hub:

TagCodecsShipped on the appliance
2.0.0-freepatent-free onlyyes
2.0.0including patented codecsno

To process audiofiles encoded with patented codecs, load the 2.0.0 image onto the appliance and point the configuration at it. Use the tag that matches the -free image already on the appliance, so that the two builds stay on the same version.

note

Earlier appliance versions used a separate media-conversion service. It has been replaced by media-processing; the repository, the tag scheme and the configuration key have all changed.

Pull the image directly from the Virtual Appliance​

This works only if internet (Docker Hub) is accessible from the Virtual Appliance.

  1. [Virtual Appliance] Pull the image to the Virtual Appliance:
    k3s ctr image pull docker.io/phonexia/media-processing:2.0.0
  2. [Virtual Appliance] Export image to data disk to load it automatically:
    k3s ctr image export /data/images/media-processing-2.0.0.tar docker.io/phonexia/media-processing:2.0.0
  3. Reconfigure media-processing to use the downloaded image as mentioned below.

Push the image to the Virtual Appliance from a workstation​

This approach is needed if your deployment is completely offline and access to internet from virtual appliance is forbidden.

  1. [PC] Pull the image locally to your workstation:
    docker pull phonexia/media-processing:2.0.0
  2. [PC] Save the image to a tar archive:
    docker save --output media-processing-2.0.0.tar phonexia/media-processing:2.0.0
  3. [PC] Copy media-processing-2.0.0.tar file into virtual appliance via ssh or filebrowser to /data/images.
    scp media-processing-2.0.0.tar phonexia@<virtual-appliance-ip>:/data/images/
  4. [Virtual appliance] Restart virtual appliance to load the image or load it manually with:
    k3s ctr image import /data/images/media-processing-2.0.0.tar
  5. Reconfigure media-processing to use the downloaded image as mentioned below.

Configure media-processing to use pre-downloaded image​

Last step is to configure media-processing to use the image downloaded in the previous step.

  1. Open text file /data/speech-platform/speech-platform-values.yaml either directly from inside virtual appliance or via file browser.
  2. Locate key .spec.valuesContent.media-processing.image
  3. Change registry, repository and tag to:
    media-processing:
    image:
    registry: docker.io
    repository: phonexia/media-processing
    tag: "2.0.0"
  4. Updated file should look like:
    apiVersion: helm.cattle.io/v1
    kind: HelmChartConfig
    metadata:
    name: speech-platform
    namespace: kube-system
    spec:
    valuesContent: |-
    <Not significant lines omitted>
    media-processing:
    <Not significant lines omitted>
    image:
    registry: docker.io
    repository: phonexia/media-processing
    tag: "2.0.0"
  5. Save the file.
  6. The application automatically recognizes when the file is updated and redeploys itself with the updated configuration.
  7. Check that the configuration is valid and successfully applied (Configuration file checks).
note

The appliance normally selects the patent-free build with media-processing.image.useFreeFFmpeg: true, which appends the -free suffix to the tag. Setting image.tag explicitly, as above, overrides that flag entirely — useFreeFFmpeg is ignored whenever a tag is given, so there is no need to change it as well.

Custom configuration with cloud-init​

Cloud-init is a widely used tool for configuring cloud instances at boot time. And we support it in Virtual Appliance.

It can be used for customizing the Virtual Appliance - to create a user with specific SSH key, install extra packages and so on.

How to Pass Cloud-Init User Configuration to Virtual Appliance​

This guide will walk you through the steps required to pass a cloud-init user configuration to a Virtual Appliance.

  1. The first step is to create a user-data file that contains the configuration information you want to pass to the VM. This file is typically written in YAML and may include various configurations, such as creating users, setting up SSH keys, or running commands. Here is an example of a basic user-data file:

    user-data.yaml
    #cloud-config
    users:
    - name: phonexia
    ssh_authorized_keys:
    - ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAr... your_public_key_here

    packages:
    - htop

    Save this file as user-data.yaml.

  2. Since non-cloud hypervisors like VirtualBox and VMWare does not have a native method to pass cloud-init data, you need to create a "seed" ISO image that contains your user-data.yaml file. Cloud-init will read this data during the virtual machine boot process.

    You can create an ISO image using the cloud-localds command:

    cloud-localds seed.iso user-data.yaml

    This command generates an ISO file named seed.iso containing your user-data.yaml and generated meta-data file.

  3. Attach the ISO Image to the Virtual Appliance VM

    Next, attach the seed.iso file to the VM as a CD-ROM/DVD-ROM. You can do this via the VirtualBox GUI or VMWare vSphere or ESXi Host Client:

  4. Boot the VM

    Cloud-init will automatically detect the attached ISO image and apply the configurations specified in your user-data.yaml file.

  5. Verify Cloud-Init Execution

    Once the VM has booted, you can verify that cloud-init has applied the configuration correctly. Connect to your VM via SSH or the console and check the following:

    1. Check Cloud-Init Status:

      cloud-init status
    2. Check that htop package is installed:

      htop

      This should open htop application.

    3. Check that you can login as phonexia user with ssh key:

      ssh -i <path_to_ssh_private_key> user@<ip of virtual appliance>
    4. Check Cloud-Init Logs: Cloud-init logs its activities in /var/log/cloud-init.log and /var/log/cloud-init-output.log. You can inspect these logs to troubleshoot any issues:

      less /var/log/cloud-init.log
  6. (Optional) Detach the ISO Image

    Usually you no longer need the seed.iso file attached to your VM, you can detach it in a similar way as you attached it.

Uninstall NVIDIA Drivers​

Virtual Appliance contains NVIDIA drivers needed for GPU processing. In some cases it might be handy to use different version of the drivers or use different kind of drivers (vGPU) instead. As a first step, current drivers must be uninstalled.

The drivers are installed as ordinary packages, not as a DNF module stream, and the driver branch differs between appliance versions. Find what is installed before removing anything:

Terminal
sudo dnf list --installed 'nvidia*'
Example output
nvidia-open-590.x86_64 590.65.06-1.el10 @cuda-rhel10-x86_64
nvidia-container-toolkit.x86_64 1.18.0-1 @nvidia-container-toolkit

Remove the driver meta-package reported above — substitute the name and branch from your own output:

Terminal
sudo dnf remove nvidia-open-590

DNF lists every package it will remove and asks for confirmation. Leave nvidia-container-toolkit in place: it is the container runtime integration, not a driver, and the replacement drivers need it.

Verify that the driver is gone — nvidia-smi should now fail rather than list devices:

Terminal
nvidia-smi
Example output
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver.

A reboot is required before installing a different driver, so that the running kernel module is unloaded.

Note that GPU processing won't work until new drivers are installed. Installation of the new drivers is out of the scope of this document.