Javascript 标点符号被称为单词

Javascript 标点符号被称为单词,javascript,text-to-speech,speech-synthesis,Javascript,Text To Speech,Speech Synthesis,我已经在我的网站上使用JavaScript语言合成语句实现了文本到语音转换器 var obj = new SpeechSynthesisUtterance(); 这很好,但是所有的标点符号也可以作为一个单词来读。 例如(.)读作点。 有什么办法可以克服这个问题吗 这是完整的代码 HTML: <div class="article-abstract"> <p>Enterprise service management is all about having

我已经在我的网站上使用JavaScript语言合成语句实现了文本到语音转换器

var obj = new SpeechSynthesisUtterance();
这很好,但是所有的标点符号也可以作为一个单词来读。 例如(.)读作点。 有什么办法可以克服这个问题吗

这是完整的代码

HTML:

      <div class="article-abstract">
<p>Enterprise service management is all about having all departments in the company define their service delivery processes around a common standard and use the same technology and tool set to deliver those services. This really is the USP of ESM where a company is able to take operational excellence from one department and apply it to achieve greater results in other departments too. This is becoming a trend of late because of the consumerisation of technology and business functions like sales, marketing, HR, facilities management, legal etc looking to deploy technology to deliver their services to their users. </p>
<p>The market size of IT service management itself stands anywhere between $5 bn and $6 bn. And that ESM applies to functions beyond the IT department, it is safe to assume the ESM market size to anywhere between $18 bn and $20 bn. ManageEngine, a division of Zoho Corp, has been a leader in the ITSM space over the last decade with more than 100,000 customers around the world. The flagship ServiceDesk Plus product is available both from the Cloud and as installable on-premises software and this is purpose built for IT service management. ManageEngine’s ITSM product suite also includes products for MSPs, customer support, asset management etc. </p>
  </div>

<button id="speakButton">Speak</button>
HTML:
企业服务管理就是让公司的所有部门围绕一个通用标准定义他们的服务交付流程,并使用相同的技术和工具集来交付这些服务。这确实是ESM的USP,公司可以从一个部门获得卓越运营,并将其应用于其他部门,从而取得更大的成果。由于技术和业务职能(如销售、营销、人力资源、设施管理、法律等)的消费主义,这种趋势正在成为一种趋势,这些职能部门希望部署技术来向用户提供服务

IT服务管理本身的市场规模在50亿至60亿美元之间。由于ESM适用于IT部门以外的职能部门,因此可以安全地假设ESM市场规模在180亿至200亿美元之间。Zoho Corp旗下的ManageEngine部门在过去十年中一直是ITSM领域的领导者,在全球拥有超过100000名客户。旗舰ServiceDesk Plus产品可从云端获得,也可作为可安装的本地软件获得,这是专门为IT服务管理而构建的。ManageEngine的ITSM产品套件还包括MSP、客户支持、资产管理等产品

通话
JavaScript

<script>
    var text= $('.article-abstract').text();
    var u = new SpeechSynthesisUtterance();
    u.text = text;
    u.lang = 'en-US';

    $('#speakButton').click(function () {
                speak(text);
        });

    function speak(text, callback) {
           speechSynthesis.speak(u);
    }
</script>

var text=$('.article abstract').text();
var u=新的SpeechSynthesistTerance();
u、 文本=文本;
u、 lang='en-US';
$(“#speakButton”)。单击(函数(){
发言(文本);
});
函数speak(文本、回调){
演讲综合。说(u);
}

您需要提供更完整的代码,以便其他人重现您的问题。请查找更新的代码您使用什么浏览器,您使用什么操作系统?您的系统中有哪些语音可用?我使用的是chrome和windows 10,您的系统中有哪些语音可用?