title: How to make p5.speech work in electron application for speech to text?
body: <p>I have created a smaple <a href="https://www.electronjs.org/" rel="nofollow noreferrer">electron</a> application to try <a href="https://idmnyu.github.io/p5.js-speech/" rel="nofollow noreferrer">p5.speech</a>. But that is not working and I am not seeing any error in console.</p>
  <p><code>Index.html</code></p>
  <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;meta charset=&quot;UTF-8&quot;&gt;
      &lt;title&gt;Hello p5.js!&lt;/title&gt;
      &lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;libraries/p5.js&quot;&gt;&lt;/script&gt;
      &lt;script language=&quot;javascript&quot; src=&quot;libraries/p5.dom.js&quot;&gt;&lt;/script&gt;
      &lt;script language=&quot;javascript&quot; src=&quot;libraries/p5.sound.js&quot;&gt;&lt;/script&gt;
      &lt;script language=&quot;javascript&quot; src=&quot;libraries/p5.speech.js&quot;&gt;&lt;/script&gt;
      &lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;my_speech.js&quot;&gt;&lt;/script&gt;
      &lt;!-- this line removes any default padding and style. you might only need one of these values set. --&gt;
      &lt;style&gt; body {padding: 0; margin: 0; background: #000000; overflow-x:hidden; overflow-y: hidden} &lt;/style&gt;
    &lt;/head&gt;
    &lt;body&gt;
  
    &lt;/body&gt;
  
    &lt;script&gt;
      // You can also require other files to run in this process
      require('../renderer.js')
    &lt;/script&gt;
  &lt;/html&gt;
  </code></pre>
  <p><code>my_speech.js</code></p>
  <pre class="lang-js prettyprint-override"><code>function setup() {
    noCanvas();
    let lang = navigator.language || 'en-US';
    let speechRec = new p5.SpeechRec(lang, gotSpeech);
  
    let continuous = true;
    let interim = false;
    speechRec.start(continuous, interim);
    function gotSpeech() {
        console.log(speechRec);
      if (speechRec.resultValue) {
        createP(speechRec.resultString);
      }
    }
  }
  </code></pre>
  <p>This setup is working fine in browser. How can I make it work in electron application?</p>