Skip to content

fix(ca): install phoonnx for Catalan TTS, not the archived matxa plugin - #180

Draft
openvoiceos-bot wants to merge 1 commit into
devfrom
fix/ca-image-phoonnx-tts
Draft

openvoiceos-bot wants to merge 1 commit into
devfrom
fix/ca-image-phoonnx-tts

Conversation

@openvoiceos-bot

@openvoiceos-bot openvoiceos-bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Auto-generated by GLM 5.3 (glm-5.3) via opencode — NOT human-reviewed. Verify before acting.

What is wrong

lang_builds/hybrid/build_raspOVOS_ca.sh cloned
OpenVoiceOS/ovos-tts-plugin-matxa-multispeaker-cat and installed it editable
under constraints-alpha.txt. That repository is archived, and its dev head
caps ovos-plugin-manager>=2.1.0,<2.2.0, which the constraints file cannot
satisfy. uv found no solution, so ca was the only language whose build step
failed (run 36138056055):

× No solution found when resolving dependencies:
╰─▶ Because ovos-tts-plugin-matxa-multispeaker-cat==0.0.7a2 depends on
    ovos-plugin-manager>=2.1.0,<2.2.0 and ovos-plugin-manager>=2.12.4a1 ...

No lane can widen that cap, because GitHub refuses pull requests to an archived
repository.

The image also installed one plugin and configured another.
ovos-config autoconfigure --lang ca-ES writes:

"tts": {"module": "ovos-tts-plugin-phoonnx",
        "ovos-tts-plugin-phoonnx": {
          "voice": "OpenVoiceOS/matxa-cat-multiaccent-wavenext",
          "speaker_id": 0}}

What this changes

The build installs phoonnx[espeak,matcha], which declares the
ovos-tts-plugin-phoonnx entry point and ships the models. That answers the
TODO above the old clone, which waited for a PyPI artifact with a model.

  • matcha is the engine of the Catalan voice, espeak is the espyak
    phonemizer that runs when the espeak-ng binary is absent.
  • The espeak-ng compile stays, because this voice phonemizes through
    espeak-ng when the binary is there.
  • phoonnx-voices download prints a network failure and exits 0, and the hub
    repository is not named after the voice id
    (models--OpenVoiceOS--phoonnx-matcha, not
    models--OpenVoiceOS--matxa-cat-multiaccent-wavenext), so
    scripts/check_phoonnx_voice.py asks phoonnx for the model path and fails
    the build when the file is absent.
  • The ca row of the plugin table in README.md and
    docs/reference/variants.md now names the plugin the image installs.

Evidence

Resolution under the real constraints file, Python 3.11 as on the image:

uv pip install --dry-run "phoonnx[espeak,matcha]" \
  -c .../constraints-alpha.txt
Resolved 62 packages
 + espyak==0.0.3a2
 + onnxruntime==1.30.0
 + ovos-plugin-manager==2.12.5a1
 + phoonnx==1.93.0a1

The voice downloads and speaks Catalan, with no espeak-ng binary present, so
the espeak extra is load-bearing:

phoonnx-voices download OpenVoiceOS/matxa-cat-multiaccent-wavenext
voice model: .../models--OpenVoiceOS--phoonnx-matcha/snapshots/
  65bf71e4/cat-multiaccent-wavenext/model.onnx (140975037 bytes)
PhoonnxTTSPlugin(...).get_tts("Bon dia, quina hora es?", ...) -> 59436 bytes

The checker fails on a voice id that is not in the index (exit 1), which is the
control for the check itself.

A virtual environment is not proof of an image. The image build runs on
platform/validate-ca-phoonnx, which is this commit on top of #178 so the
publish jobs stay off: run 36200872556. The result is recorded in
knowledge/wiki/audits/raspovos/T-5136-ca-phoonnx.md.

The other twelve languages still fail Tier 2 on the padacioso conflict of
T-5125, which is not this change.

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Sep 25, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@JarbasAl
JarbasAl force-pushed the fix/ca-image-phoonnx-tts branch from 638f0a6 to 35c22cc Compare September 25, 2026 23:35
The Catalan hybrid build cloned
OpenVoiceOS/ovos-tts-plugin-matxa-multispeaker-cat and installed it editable
under the alpha constraints file. That repository is archived, and its head
caps ovos-plugin-manager below 2.2.0, which the constraints file cannot
satisfy. So uv found no solution and `ca` was the only language whose build
step failed.

`ovos-config autoconfigure --lang ca-ES` already writes the module
`ovos-tts-plugin-phoonnx` with the voice
`OpenVoiceOS/matxa-cat-multiaccent-wavenext`, so the image installed one
plugin and configured another. The entry point comes from the `phoonnx`
distribution, which also ships the models, which is what the TODO above the
clone waited for.

Three things the first build of this change taught, in run 36200872556:

The base image already carries phoonnx, so a plain
`uv pip install "phoonnx[espeak,matcha]"` reports "Checked 1 package" and adds
neither extra. `--reinstall-package phoonnx` is what makes them arrive, and the
build now imports espyak and scipy to prove it. matcha is the engine of the
Catalan voice; espeak is the espyak phonemizer that runs when the espeak-ng
binary is absent, so the espeak-ng compile stays.

`phoonnx-voices download` raises DatabaseNotCommitted on an image that never
ran phoonnx, because it reloads a voice cache that does not exist yet. The
build no longer calls it.

The hub repository is not named after the voice id, and the download path also
exits 0 on a network failure, so scripts/check_phoonnx_voice.py reads the
bundled voice index, downloads the voice and then proves the model file is
there.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants