offline/hybrid builds autoconfigure before installing the plugins they select

Aperta
#169 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

  • #170 di @JarbasAl — chiusa senza merge

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
shell

Direzione di ricerca

Inizia con gli script di build offline e ibrido e con l’entry point ovos-config autoconfigure; confronta le relative righe di installazione con le selezioni STT/TTS generate. Controlla il pyproject.toml di ovos-core solo per confermare che i plugin non siano forniti indirettamente. Il lavoro è completo quando la configurazione generata di ogni livello indica plugin che l’immagine installa effettivamente, dopo aver deciso se aggiungere pacchetti o sovrascrivere le selezioni.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

🤖 Auto-generated by Claude Sonnet 5 (claude-sonnet-5) via Claude Code — NOT human-reviewed. Verify before acting.

Found while auditing the OVOS technical manual against current source.

The offline and hybrid build tiers call ovos-config autoconfigure --offline
(or --hybrid) before the recommends layer's selected plugins are installed.
--offline autoconfigure now selects onnx-asr and phoonnx, and --hybrid
merges offline_male into phoonnx, but the build step that installs
onnx-asr/phoonnx packages runs after autoconfigure, and the offline tier
never installs them at all — only citrinet/piper land on disk. The
generated mycroft.conf on both tiers names STT/TTS plugins the image does
not actually have installed.

Verified against the build scripts and ovos-config autoconfigure defaults
on origin/dev; not verified against a booted image.

Suggested fix: install the recommends-layer packages before running
autoconfigure, or run autoconfigure after the install step completes, on
both the offline and hybrid tiers.


Confirmed on dev, and reordering does not fix it

🤖 This section auto-generated by Claude Opus 5 (claude-opus-5) via Claude Code — NOT human-reviewed. The autoconfigure runs below were executed; the install lines were read from origin/dev.

ovos-config 3.5.0a1 (c9baca5), run per tier in a throwaway venv with HOME and XDG_CONFIG_HOME pointed at a sandbox:

autoconfigure --lang en-US --offline --male --platform rpi5
  stt.module = ovos-stt-plugin-onnx-asr
  tts.module = ovos-tts-plugin-phoonnx

autoconfigure --lang en-US --hybrid --male --platform rpi5
  stt.module = ovos-stt-plugin-server
  tts.module = ovos-tts-plugin-phoonnx

Against raspOVOS 374f5f5:

Tier autoconfigure installs selected plugin present
offline line 20 ovos-stt-plugin-citrinet, line 23 no, for both STT and TTS
hybrid line 22 ovos-tts-plugin-piper, line 32 no, for TTS

The offline tier is worse than the report above states: it selects onnx-asr and phoonnx, installs neither, and the one plugin it does install, citrinet, is named nowhere in the generated config.

The suggested reorder does not close it. git grep for phoonnx, onnx-asr and onnx_asr across every shell script in the repo returns nothing, so those packages are never installed at any point in any tier. ovos-core's pyproject.toml names none of phoonnx, onnx-asr or citrinet in any extra, so ovos-core[skills-en] on the lite base cannot supply them either. Running autoconfigure last would write the same config against the same missing packages.

What the fix has to choose between, since this is about what the image ships rather than step order:

  1. Install what the tier selects: add ovos-stt-plugin-onnx-asr and ovos-tts-plugin-phoonnx to the offline script, ovos-tts-plugin-phoonnx to hybrid. Honours the recommends layer, grows the image.
  2. Select what the tier installs: pass explicit STT/TTS overrides so the config names citrinet and piper. Keeps image size, diverges from the shared recommends.
  3. Change the recommends layer in ovos-config, which moves the decision to every consumer of that layer, not just raspOVOS.

Only the first leaves the recommends layer meaning what it says everywhere. The call belongs to whoever owns the image size budget.

Lingua principale
Shell
Stelle
58
Fork
7
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenVoiceOS/raspOVOS

Tutte le issue di OpenVoiceOS/raspOVOS

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.