Comments (5)
这个代码有效,注册语音服务的时候把地区改成东亚,先填入自己的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.
这个接口我之前测试过,“阅读”是可以直接调用的。但是由于这个接口有调用频率限制,所以没有办法稳定使用(阅读会在章节开始的时候一次发起许多请求,导致接口报错)。
参考:gedoor/legado#1469
这里有人提供了一个折中的解决办法 gedoor/legado#1472 (comment) ,但是我希望服务端尽可能的做到无状态。所以这个方案也不是很适合这个项目。
另外一定想用这个方案的话,我记得之前酷安有人实现过一个替换系统TTS的APP可以使用Azure的Key,可以去找找。
from ms-ra-forwarder.
from ms-ra-forwarder.
这个代码有效,注册语音服务的时候把地区改成东亚,先填入自己的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.
应该可以在阅读里面直接调用这个接口的。另外根据 #41 的描述 concurrentRate
表示的是调用频率,可能设置一个非0的合适的值比较好。
from ms-ra-forwarder.
Related Issues (20)
- azure erros
- 求replit部署教程 HOT 7
- 可以在ios上使用吗 HOT 4
- TTS好像挂掉了 HOT 24
- ios源阅读下加token无效 HOT 7
- 安卓阅读下返回错误 HOT 4
- 请问这个项目是不是只能运行在浏览器里面? HOT 1
- 能否出一个cloudflare Pages的教程
- 大佬们,你们的还能用吗? HOT 1
- 新的接口
- Android 阅读 APP导入注意事项 HOT 2
- 请问能否增加GET方式? HOT 1
- 端口报错。 HOT 1
- 语音可以可以下载到本地吗 HOT 5
- 如果想用离线的文本转语音可以试试LocalAI HOT 1
- BUG: 请求文本中不能包含SSML的预定义字符
- 音频格式报错
- 问下作者,这个api要怎么用啊 谢谢 HOT 2
- token 好像无效
- 推荐部署服务到本地的termux HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ms-ra-forwarder.