Productivity
Reimagined

Find your next big inspirations & tools.

function askForEmailAndSubmit() { const emailField = document.getElementById("emailInput"); const submitButton = document.getElementById("submitButton"); recognition.start(); // Start voice input recognition.onresult = (event) => { const spokenText = event.results[0][0].transcript; // Capture spoken email emailField.value = spokenText; // Populate email field // Optional: Automatically submit the form if (submitButton) { submitButton.click(); } }; recognition.onerror = (event) => { alert("Error capturing email: " + event.error); }; }