feat: add DECTalk voice selector to webui dashboard
This commit is contained in:
@@ -243,6 +243,25 @@ function populateVoiceSelect(mode, restoreVoice) {
|
||||
});
|
||||
const target = restoreVoice || settings.user_voice || '';
|
||||
if (target) sel.value = target;
|
||||
} else if (mode === 'dectalk') {
|
||||
group.style.display = '';
|
||||
const dectalkVoices = [
|
||||
{id: '[:np]', name: 'Paul (default)'},
|
||||
{id: '[:nb]', name: 'Betty'},
|
||||
{id: '[:nh]', name: 'Harry'},
|
||||
{id: '[:nf]', name: 'Frank'},
|
||||
{id: '[:nd]', name: 'Dennis'},
|
||||
{id: '[:nk]', name: 'Kit'},
|
||||
{id: '[:nu]', name: 'Ursula'},
|
||||
{id: '[:nr]', name: 'Rita'},
|
||||
{id: '[:nw]', name: 'Wendy'},
|
||||
];
|
||||
sel.innerHTML = '<option value="">— Paul (default) —</option>';
|
||||
dectalkVoices.forEach(v => {
|
||||
const opt = document.createElement('option');
|
||||
opt.value = v.id; opt.textContent = v.name;
|
||||
sel.appendChild(opt);
|
||||
});
|
||||
} else {
|
||||
group.style.display = 'none';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user