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

无法播放MDD语音? #7

Open
JohnWang1023 opened this issue Jun 8, 2018 · 5 comments
Open

无法播放MDD语音? #7

JohnWang1023 opened this issue Jun 8, 2018 · 5 comments

Comments

@JohnWang1023
Copy link

语音显示的链接是 sound://us_pron/test__us_1.spx

@ninja33
Copy link
Owner

ninja33 commented Jun 8, 2018

mdx server主要用于mdx词典内容解析,网页发音需要另外的js脚本。这个版本里没有实现这个js,但是预留了js文件入口,就是那个inject.js,你可以自己实现。

@JohnWang1023
Copy link
Author

好吧。 我发现 chrome 没法播放 spx 文件。 我需要下载 http://localhost:8000/us_pron/test__us_1.spx 后用第三方软件播放。。。

@ninja33
Copy link
Owner

ninja33 commented Jun 8, 2018

是的,spx是一种比较老的speech audio格式,不如mp3那么普遍获得各类浏览器和播放器的支持。

然后我看了一下当前的代码,针对发音的injection.js已经包含了。你看看含mp3发音的词典是否可行。如果可行,那就不是脚本的问题,而是浏览器支持的问题了。

最后,在网页点击发音其实不是mdx server的本意。其本意是开放给其他程序用的。所以即使不能点击发音也不是什么大问题

@chendonghp
Copy link

我用的是oxford的10版,mp3音频,好像也不行

@baiyuxiong
Copy link

试了下ogg的,需要自己拼链接可以播放。http://localhost:8000/abortion__gb_1.ogg
mp4的不行

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

4 participants