gpt4 book ai didi

javascript - Office 365 Javascript 插件 - 语音合成

转载 作者:行者123 更新时间:2023-11-28 04:34:03 27 4
gpt4 key购买 nike

我目前正在使用 Visual Studio Office 工具开发 Word 插件,我想在其中实现 TTS。由于它是一个 Web 应用程序,是否可以使用 SpeechSynthesis 等 Web 语音 API,而不是第三方解决方案?

我想这适用于 Word Online 等平台,但也适用于桌面应用程序吗?

最佳答案

您将在 Windows 版本的 Word 上遇到问题。在幕后,新的应用程序平台使用 Internet Explorer 作为引擎(在 Windows 上,在 mac/ipad 上使用 safari)。根据 mozilla 文档,Internet Explorer 中不支持语音合成 API。

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

关于javascript - Office 365 Javascript 插件 - 语音合成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44389477/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com