GithubHelp home page GithubHelp logo

Comments (5)

fifthmail avatar fifthmail commented on July 22, 2024

这个代码有效,注册语音服务的时候把地区改成东亚,先填入自己的key,复制下面的代码在粘贴板,在阅读里新建阅读引擎然后按右上角的三点,然后选粘贴源就可以了。
{
"concurrentRate": "0",
"contentType": "audio/ogg; codecs=opus; rate=16000",
"enabledCookieJar": false,
"header": "{\n "Ocp-Apim-Subscription-Key": "自己的key",\n "Content-Type": "application/ssml+xml",\n "X-Microsoft-OutputFormat": "ogg-16khz-16bit-mono-opus",\n "User-Agent": "legado"\n}",
"id": 1664240429185,
"lastUpdateTime": 1664241405278,
"loginCheckJs": "",
"loginUi": "",
"loginUrl": "",
"name": "Azure",
"url": "https://eastasia.tts.speech.microsoft.com/cognitiveservices/v1,{\n "method": "POST",\n "body": "<speak version=\"1.0\" xml:lang=\"zh-CN\"><voice name=\"zh-CN-XiaoqiuNeural\"><prosody rate=\"25%\" pitch=\"0%\">{{speakText}}"\n}"
}

from ms-ra-forwarder.

wxxxcxx avatar wxxxcxx commented on July 22, 2024

这个接口我之前测试过,“阅读”是可以直接调用的。但是由于这个接口有调用频率限制,所以没有办法稳定使用(阅读会在章节开始的时候一次发起许多请求,导致接口报错)。
参考:gedoor/legado#1469

这里有人提供了一个折中的解决办法 gedoor/legado#1472 (comment) ,但是我希望服务端尽可能的做到无状态。所以这个方案也不是很适合这个项目。

另外一定想用这个方案的话,我记得之前酷安有人实现过一个替换系统TTS的APP可以使用Azure的Key,可以去找找。

from ms-ra-forwarder.

fifthmail avatar fifthmail commented on July 22, 2024

from ms-ra-forwarder.

kettly1260 avatar kettly1260 commented on July 22, 2024

这个代码有效,注册语音服务的时候把地区改成东亚,先填入自己的key,复制下面的代码在粘贴板,在阅读里新建阅读引擎然后按右上角的三点,然后选粘贴源就可以了。 { "concurrentRate": "0", "contentType": "audio/ogg; codecs=opus; rate=16000", "enabledCookieJar": false, "header": "{\n "Ocp-Apim-Subscription-Key": "自己的key",\n "Content-Type": "application/ssml+xml",\n "X-Microsoft-OutputFormat": "ogg-16khz-16bit-mono-opus",\n "User-Agent": "legado"\n}", "id": 1664240429185, "lastUpdateTime": 1664241405278, "loginCheckJs": "", "loginUi": "", "loginUrl": "", "name": "Azure", "url": "https://eastasia.tts.speech.microsoft.com/cognitiveservices/v1,{\n "method": "POST",\n "body": "<speak version="1.0" xml:lang="zh-CN"><voice name="zh-CN-XiaoqiuNeural"><prosody rate="25%" pitch="0%">{{speakText}}"\n}" }

你这个我没办法粘贴欸,总是出错。所 token O 120 啥的错误

from ms-ra-forwarder.

wxxxcxx avatar wxxxcxx commented on July 22, 2024

应该可以在阅读里面直接调用这个接口的。另外根据 #41 的描述 concurrentRate 表示的是调用频率,可能设置一个非0的合适的值比较好。

from ms-ra-forwarder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.