-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[BUG] 自定义朗读引擎,无法修改请求的 Content-Type ? #1469
Comments
好的,我看下 |
提交了一个测试版本,下载试试 |
@SinoAHpx url 下面的 Content-Type 根据内置阅读引擎推测设置的应该是Response的Content-Type。即应该为 audio/mpeg。 |
@meetcw 谢谢老哥!我发现我传的url和header都有一点json语法问题,修正之后就可以用了 |
阅读3.0朗读引擎配置 将下方代码中的 API-KEY 替换为 Azure 的 API-KEY
Azure 参数是 |
感谢!成功解决了我遇到的问题 顺便提示如果有使用eastasia以外服务器的用户,需要把eastasia换到你所在地对应的server |
建议使用@meetcw 的https://github.com/meetcw/ms-ra-forwarder 体验更佳 |
好像只有晓晓可用,我替换了voice name,但是没办法正常连接。 |
微软的认知服务TTS提供每月500万字的免费限额,对于个人用户足够了。
所以我想添加一个自定义朗读引擎,调用它提供的API。
API格式如下:
我编写的规则:
这个API需要设置Content-Type 为
application/ssml+xml
,我使用抓包工具发现请求的 Content-Type 被阅读修改为了application/x-www-form-urlencoded
,而且 body中的xml内容被截断并编码为了看了下源代码,阅读现在似乎只能处理 Form 和 Json 两种 Content-Type 的 post 请求?
对 Kotlin 不太熟悉,也可能是我规则写的不对,请大佬们指教以下应该怎么修改?
The text was updated successfully, but these errors were encountered: