import { qvacSdk } from '../daemon/qvac-master.js'; let sdk; try { sdk = await qvacSdk(); } catch (error) { throw new Error(`Voice runtime could not initialize native QVAC plugins. Install libvulkan1 and a Vulkan driver on the build host. ${error.message}`, { cause: error }); } for (const type of ['llamacpp-completion', 'whispercpp-transcription', 'tts-ggml']) { if (!sdk.hasPlugin(type)) throw new Error(`Release is missing registered plugin: ${type}`); } for (const model of ['WHISPER_TINY', 'VAD_SILERO_5_1_2', 'TTS_EN_SUPERTONIC_Q8_0']) { if (!sdk[model]) throw new Error(`Release is missing model asset: ${model}`); } console.log('Voice runtime: native ASR/TTS plugins and model registry verified'); await sdk.close();