Skip to main content

Command Palette

Search for a command to run...

Sound from browser

Published
•1 min read•View as Markdown
const speak = (msg) => {
    const sp = new SpeechSynthesisUtterance(msg);
    [sp.voice] = speechSynthesis.getVoices();
    speechSynthesis.speak(sp);
  };

  speak("Hellow world");