Javascript speack功能,即铰接js,不起作用

Javascript speack功能,即铰接js,不起作用,javascript,html,text-to-speech,articulate-storyline,articulate,Javascript,Html,Text To Speech,Articulate Storyline,Articulate,我正在使用graphite.js将文本添加到网站的语音中。代码如下: <body> <div class="articulate-area"> <button onclick="speak('article')">Speak All</button> <button onclick="speak('div.intro')">Speak Intro</button> <button onclick="spea

我正在使用graphite.js将文本添加到网站的语音中。代码如下:

<body>
<div class="articulate-area">
  <button onclick="speak('article')">Speak All</button>
  <button onclick="speak('div.intro')">Speak Intro</button>
  <button onclick="speak('div.speech')">Speak Speech</button>
  <button onclick="pause()">Pause</button>
  <button onclick="resume()">Resume</button>
</div>

<article>
  <div class="intro">
    <h1>The Gettysburg Address</h1>
    <h2>Delivered by Abraham Lincoln on November 19, 1863</h2>
    <h3>Beginning with the iconic phrase <q>Four score and seven years ago,</q> this speech is generally regarded as the most famous in American history.</h3>
  </div>

  <div class="speech">
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/915932/lincoln.jpg" alt="A Portrait of the Sixteenth President">

    <p>Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.</p>    
    <p>Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this.</p>

  </div>
</article>
<body>
<script>
function speak(obj) {
  $(obj).articulate('speak');
};

function pause() {
  $().articulate('pause');
};

function resume() {
  $().articulate('resume');
};
</script>

全说
介绍
演讲
暂停
简历
葛底斯堡演說
由亚伯拉罕·林肯于1863年11月19日交付
从标志性短语四十七年前开始,这篇演讲被普遍认为是美国历史上最著名的。
八十七年前,我们的先辈在这块大陆上建立了一个新的国家,它孕育于自由之中,致力于人人生而平等的主张。

现在,我们正在进行一场伟大的内战,考验这个国家,或者任何一个如此构想和献身的国家,是否能够长久存在。我们在那场战争的一个伟大战场上相遇。我们来到这里是为了奉献这片土地的一部分,作为那些为这个国家的生存而献出生命的人们的最后安息之地。我们这样做是完全恰当的

功能发言(obj){ $(obj).发音清楚(‘说’); }; 函数暂停(){ $()清楚表达(‘暂停’); }; 功能恢复(){ $()清楚地表达(“简历”); };

以上是将tts添加到不工作的网页的代码,我是否需要向该网页添加任何其他脚本??js官方网站告诉我们,它与chrome兼容。但是我没有得到语音输出。

您应该在开头添加jquery