ass="words" contenteditable></div>
  <script>
window.SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;

const recognition = new SpeechRecognition();
recognition.interimResults = true;
recognition.lang = '${lang}';

let p = document.createElement('p');
p.textContent = 'click me to start, then say something.';
const words = document.querySelector('.words');
words.appendChild(p);

let promise;
const cid = Math.random().toString(36).slice(2);

recognition.addEventListener('result',