[JS30] -23) Speech Synthesis

1441 ワード


SpeechSynthesisUtterance

 const msg = new SpeechSynthesisUtterance();

SpeechSynthesisUtterance.text

 msg.text = "Hello";

speechSynthesis.getVoices

speechSynthesis.getVoices();

Reference

  • https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance
  • https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis