Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用edge JS无法调用本地语音 #36

Closed
syumi-1 opened this issue Jan 6, 2025 · 2 comments
Closed

使用edge JS无法调用本地语音 #36

syumi-1 opened this issue Jan 6, 2025 · 2 comments

Comments

@syumi-1
Copy link

syumi-1 commented Jan 6, 2025

调用window.speechSynthesis.getVoices()之后无法显示本语音,查不出是什么原因
不确定是不是edge的问题
edge能额外显示Microsoft Kangkang - Chinese (Simplified, PRC)
Microsoft Yaoyao - Chinese (Simplified, PRC) 但在sapi列表中实际没有

@gexgd0419
Copy link
Owner

Chrome 以及其他 Chromium 浏览器(如 Edge)及软件(包括使用 Electron 等制作的软件)只支持 OneCore 语音,不支持 SAPI5 语音。本引擎是 SAPI5 引擎,因此目前无法在这些软件中使用。

Microsoft Kangkang 和 Microsoft Yaoyao 是 OneCore 语音,所以 Edge 支持这些语音,但是这些语音并没有对应的 SAPI5 版本。Microsoft Huihui 则既有 OneCore 版本又有 SAPI5 版本(名称末尾是 Desktop)。

相关 issue:#4#5#24#27

与 SAPI5 不同,微软没有提供如何制作第三方 OneCore 语音的开发者文档。

@syumi-1
Copy link
Author

syumi-1 commented Jan 6, 2025

感谢解惑 这些知识别处完全找不到 谢谢了

@syumi-1 syumi-1 closed this as completed Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants