gpt4 book ai didi

javascript - SpeechSynthesis 和 chrome.tts 有什么区别

转载 作者:行者123 更新时间:2023-11-29 10:56:55 25 4
gpt4 key购买 nike

用于扩展 (https://developer.chrome.com/extensions/tts) 和 SpeechSynthesis (https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis) API 的 chrome.tts 似乎能够做同样的事情。除了可用功能的一些差异外,我真的没有看到任何差异,但它们仍然可以做同样的事情。我应该注意哪些差异?

编辑:我需要将它专门用于 chrome 扩展程序,我知道 chrome.tts 仅适用于 chrome 扩展程序/应用程序。

最佳答案

Chrome 的 TTS 是 Chrome 专有的并且是预标准,而 SpeechSynthesis API 正在标准化过程中(即非专有并且可用于其他非基于 Chrome 的浏览器)。

关于javascript - SpeechSynthesis 和 chrome.tts 有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55291408/

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