Files
gnome-jarvis/scripts/smoke-settings-runtime.js
T
snxraven a4073b9020
Rolling release / release (push) Successful in 6m36s
Check Point
2026-09-12 09:07:09 -04:00

9 lines
660 B
JavaScript

import { SETTINGS_FIELDS, voiceSettings } from '../daemon/voice-settings.js';
import { ttsConfiguration } from '../daemon/tts-config.js';
import { QvacVoiceAdapter } from '../daemon/voice-adapters.js';
const settings = voiceSettings({ voiceId: 'M2', ttsSpeed: 1.2 });
const adapter = new QvacVoiceAdapter({ role: 'tts', settings });
if (adapter.ttsConfig.config.voice !== 'M2') throw new Error('Voice setting was not propagated');
if (ttsConfiguration(settings).config.ttsSpeed !== 1.2) throw new Error('Speech speed was not propagated');
console.log(`Settings runtime smoke passed: ${SETTINGS_FIELDS.length} fields, voice ${adapter.ttsConfig.config.voice}`);