Add voice control mode, OmniVoice worker and managed voice studios
This commit is contained in:
1 parent
260740994f
commit
5fa8e6de90
33 files changed
+411
-64
No files matched your search
+9
-3
@@ -1,7 +1,7 @@
|
||||
"""Read-only, conservative mapping to Deck's maintained execution adapters."""
|
||||
from catalog import file_role
|
||||
from stt import supported as stt_supported
|
||||
from profiles import image_recipe, image_adapter, video_recipe, voice_recipe
|
||||
from profiles import image_recipe, image_adapter, video_recipe, voice_recipe, omni_recipe
|
||||
from tts_runtime import REPO, REVISION
|
||||
|
||||
def _assess(model, installed, profile=None):
|
||||
@@ -28,6 +28,8 @@ def _assess(model, installed, profile=None):
|
||||
elif kind=='audio' and repo==REPO and filename=='model.safetensors' and model.get('revision')==REVISION:
|
||||
result['family']='Qwen3-TTS CustomVoice'
|
||||
result.update(runtime='Qwen3-TTS CustomVoice',route='#tts-runtime',components=['Vollständiges Modellpaket und Sprach-Tokenizer (im Einrichtungsassistenten enthalten)'])
|
||||
elif omni_recipe(model):
|
||||
result.update(family='OmniVoice',evidence='Offizielles k2-fsa-Modellpaket',state='setup',label='OmniVoice erkannt · Komponenten prüfen',runtime=None,route='#omnivoice-runtime',components=[x['label'] for x in omni_recipe(model).values()])
|
||||
elif voice_recipe(model):
|
||||
result.update(family='VoxCPM2',evidence='Offizielles OpenBMB-Modellpaket',state='setup',label='VoxCPM2 erkannt · Komponenten prüfen',runtime=None,route='#voxcpm-runtime',components=[x['label'] for x in voice_recipe(model).values()],message='Die heruntergeladenen Dateien bilden das Modellpaket. Für die Ausführung fehlt noch die VoxCPM-Python/PyTorch-Laufzeit samt Deck-Worker. audio.cpp und llama.cpp führen diese Safetensors-Datei nicht aus. Textencoder und Vision-Projektor sind nicht separat erforderlich. Unter Komponenten werden die tatsächlich benötigten Dateien angeboten.')
|
||||
elif kind=='chat' and filename.lower().endswith('.gguf'):
|
||||
@@ -65,7 +67,11 @@ def _assess_candidates(model, installed, profile=None):
|
||||
meta=model.get('runtime_metadata') or {};family=str(meta.get('architecture') or '').lower()
|
||||
def add(id,label,key,route,reason,maintained=True):
|
||||
result['candidates'].append(dict(id=id,label=label,installed=bool(installed.get(key)),route=route,installation_available=maintained,evidence=reason))
|
||||
if voice_recipe(model):
|
||||
if omni_recipe(model):
|
||||
result.update(family='OmniVoice',runtime='OmniVoice · Python/PyTorch',route='#omnivoice-runtime',installed=bool(installed.get('omnivoice')),state='setup',label='OmniVoice · Komponenten prüfen',message='Originale OmniVoice-Laufzeit mit Deck-Worker. Text- und Audio-Tokenizer derselben Modellversion zuordnen.')
|
||||
add('omnivoice','OmniVoice · Python/PyTorch','omnivoice','#omnivoice-runtime','Originale OmniVoice-Laufzeit mit Audio-Tokenizer',True)
|
||||
if profile:result.update(state='ready' if profile.get('runnable') else 'profile_incomplete',blockers=profile.get('blockers',[]),label='OmniVoice bereit' if profile.get('runnable') else 'OmniVoice einrichten')
|
||||
elif voice_recipe(model):
|
||||
result['installed']=bool(installed.get('voxcpm'));result['message']='VoxCPM-Laufzeit '+('bereits installiert' if result['installed'] else 'fehlt: unter Ausführung einrichten installieren')+'. Komponenten zuordnen, danach unter Stimmwerkzeuge → Testen Sprache erzeugen oder Stimme klonen.'
|
||||
add('voxcpm','VoxCPM · Python/PyTorch','voxcpm','#voxcpm-runtime','Originale VoxCPM-Laufzeit · Sprachausgabe und Stimmklonen',True)
|
||||
if profile:result.update(state='ready' if profile.get('runnable') else 'profile_incomplete',blockers=profile.get('blockers',[]),label='VoxCPM2 bereit' if profile.get('runnable') else 'VoxCPM2 einrichten')
|
||||
@@ -105,7 +111,7 @@ def assess(model, installed, profile=None):
|
||||
result=_assess_candidates(model,installed,profile)
|
||||
if result['state']=='component':return result
|
||||
verified=result['state'] not in ('unsupported','workflow_missing')
|
||||
runtime=(next((c for c in result['candidates'] if c['id'] in ('voxcpm','audio_cpp')),None) or next((c for c in result['candidates'] if c['id']!='category'),None)) if verified else None
|
||||
runtime=(next((c for c in result['candidates'] if c['id'] in ('voxcpm','omnivoice','audio_cpp')),None) or next((c for c in result['candidates'] if c['id']!='category'),None)) if verified else None
|
||||
worker_missing=result['state'] in ('adapter_missing','workflow_missing','unsupported')
|
||||
result['setup_steps']=[
|
||||
dict(label='Modell erkennen',state='complete' if verified else 'blocked',message='Modellfamilie erkannt' if verified else 'Noch kein geprüfter Einrichtungsweg'),
|
||||
|
||||
Reference in new issue
Block a user