title: Female voice in google chrome speechSynthesis
body: <p>Im using this exact code in both the scenarios.</p>
  
  <pre><code>        var msg = new SpeechSynthesisUtterance();
          var voices = window.speechSynthesis.getVoices();
          msg.voice = voices[1];
          msg.text = "hello world";
          msg.lang = 'en-US';
          speechSynthesis.speak(msg);
  </code></pre>
  
  <p>If I run this in the chrome console I get a female voice. But if I put the exact code in an index.html and run it, it plays a male voice. Could any one please clarify why this difference occurs. Thanks in advance.</p>