Skip to content

fix(ca): install phoonnx instead of the archived matxa plugin - #181

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

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

Conversation

@openvoiceos-bot

Copy link
Copy Markdown
Contributor

The failure

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
pins ovos-plugin-manager>=2.1.0,<2.2.0, while the constraints file requires
ovos-plugin-manager>=2.12.5a1. Catalan was the only language whose build
step failed (run 36138056055).

Reproduced, resolution only, for the aarch64 target:

uv pip install --dry-run --python-platform aarch64-manylinux_2_28 \
    --python-version 3.11 "ovos-plugin-manager>=2.1.0,<2.2.0" -c constraints-alpha.txt
error: No solution found when resolving dependencies
  cause: Because you require ovos-plugin-manager>=2.1.0,<2.2.0 and
  ovos-plugin-manager>=2.12.5a1, we can conclude that your requirements
  are unsatisfiable.

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

The change

The archived plugin's own README is a migration guide to phoonnx, which
serves the same matxa acoustic model and vocoder. phoonnx also declares the
entry point ovos-tts-plugin-phoonnx, and that is the module
ovos-config writes for this tier: recommends/offline_male/ca-es.conf names
ovos-tts-plugin-phoonnx with the voice
OpenVoiceOS/matxa-cat-multiaccent-wavenext and speaker_id 2. The image
installed a plugin its own configuration did not name; it now installs the one
it does.

The same command for the new install resolves:

uv pip install --dry-run --python-platform aarch64-manylinux_2_28 \
    --python-version 3.11 phoonnx -c constraints-alpha.txt
Resolved 60 packages ... + onnxruntime==1.30.0 + phoonnx==1.93.0a1

onnxruntime 1.30.0 publishes
onnxruntime-1.30.0-cp311-cp311-manylinux_2_28_aarch64.whl.

The build now also pre-downloads the voice into the ovos user's HuggingFace
cache, so the image speaks without a network, and then loads the voice and
speaks one sentence. That step is needed because phoonnx-voices download
prints a network failure and exits 0: the download alone is not proof. The
check fails the build if a file is missing, if onnxruntime cannot load the
graph on arm64, or if espeak phonemization is broken.

The espeak-ng compile stays. The voice index gives this voice
phoneme_type: espeak.

The offline Catalan image runs the hybrid script first, so this repairs both
variants.

What is not proven here

A resolution is not an installation. The two uv values above were measured
on x86_64 with --python-platform aarch64-manylinux_2_28, which reads wheel
tags and installs nothing. The proof this change needs is a green Catalan
image build, which runs on a push to dev or a manual dispatch; neither is
this branch. The voice load and the synthesis run for the first time in that
build.

Other language images have the same disagreement between the tier
configuration and the installed packages: offline_male/pt-pt.conf,
de-de.conf, en-us.conf and nl-nl.conf all name
ovos-tts-plugin-phoonnx, while their hybrid builds install
ovos-tts-plugin-piper. Those builds do not fail, so they are not in this
pull request. They are filed separately.

🤖 Generated with Claude Code

The Catalan build 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.2.0 while the
constraints file requires >=2.12.5a1, so uv reported "No solution found" and
Catalan was the only language whose build failed.

The plugin's README is a migration guide to phoonnx, which serves the same
matxa acoustic model and vocoder. phoonnx also declares the entry point
ovos-tts-plugin-phoonnx, which is the module that
ovos-config recommends/offline_male/ca-es.conf selects: the image now installs
the plugin its own configuration names.

The build pre-downloads OpenVoiceOS/matxa-cat-multiaccent-wavenext into the
ovos user's HuggingFace cache, so the image speaks without a network. The
download command prints a network error and exits 0, so the build then loads
the voice and speaks one sentence with speaker_id 2. That step fails the build
if a file is missing, if onnxruntime cannot load the graph on arm64, or if
espeak phonemization is broken.

The espeak-ng compile stays: the voice index gives this voice
phoneme_type "espeak".

The offline Catalan image builds on the hybrid one, so the same fix repairs
both.

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

coderabbitai Bot commented Sep 26, 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

Copy link
Copy Markdown
Member

Closing as a duplicate: #180 carries the same fix with the espeak and matcha extras, the voice-path check script, and a dispatch run that proves it on a built image.

@JarbasAl JarbasAl closed this Sep 26, 2026
@JarbasAl
JarbasAl deleted the fix/ca-tts-phoonnx branch September 26, 2026 00:11
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