updated voice, avatar and frontend to reflect changes
Some checks failed
Deploy FluentGerman.ai / deploy (push) Failing after 51s
Some checks failed
Deploy FluentGerman.ai / deploy (push) Failing after 51s
This commit is contained in:
@@ -81,6 +81,14 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||
const voice = new VoiceManager();
|
||||
await voice.init();
|
||||
|
||||
// Disable mic button if no STT method is available
|
||||
if (voice.isDisabled) {
|
||||
voiceBtn.disabled = true;
|
||||
voiceBtn.title = 'Voice input requires Chrome or Edge (with HTTPS)';
|
||||
voiceBtn.style.opacity = '0.35';
|
||||
voiceBtn.style.cursor = 'not-allowed';
|
||||
}
|
||||
|
||||
voice.onResult = (text) => {
|
||||
inputEl.value = text;
|
||||
voice.lastInputWasVoice = true;
|
||||
|
||||
Reference in New Issue
Block a user