简体   繁体   English

Office 365 Javascript加载项-语音合成

[英]Office 365 Javascript Add-In - Speech Synthesis

I'm currently working on a Word Add-In using the Office Tools for Visual Studio, which I want to implement TTS into. 我目前正在使用要在其中实现TTS的Office工具(用于Visual Studio)来开发Word加载项。 As it is a web app, is it possible to use a Web speech API such as SpeechSynthesis, rather than a thirdparty solution? 由于它是一个Web应用程序,是否可以使用诸如SpeechSynthesis之类的Web语音API,而不是第三方解决方案?

I imagine this would work for platforms such as Word Online, but would it be possible for the desktop app? 我想这将适用于Word Online等平台,但桌面应用程序是否可能?

You'll run into issues on the Windows versions of Word. 您将在Windows版本的Word上遇到问题。 Under the covers the new app platform use Internet Explorer as their engine (on windows, safari for mac/ipad). 在新的应用程序平台的幕后,使用Internet Explorer作为引擎(在Windows上,适用于Mac / ipad的safari)。 Per the mozilla documentation there is no support for the speech synth api in internet explorer. 根据mozilla文档,Internet Explorer中不支持语音合成api。

https://developer.mozilla.org/en-US/docs/Web/API/Window/speechSynthesis https://developer.mozilla.org/zh-CN/docs/Web/API/Window/speechSynthesis

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM