Git Product home page Git Product logo

Comments (7)

wxxxcxx avatar wxxxcxx commented on June 28, 2024

可以看看部署后加TOKEN的执行日志,是不是没有收到TOKEN。

from ms-ra-forwarder.

wutaijieing avatar wutaijieing commented on June 28, 2024

可以看看部署后加TOKEN的执行日志,是不是没有收到TOKEN。

vercel.com下部署的,因为国内环境问题无法访问,在自己的域名xx.xx.xxx下设置了CNAME记录指向cname.vercel-dns.com
项目的Domains域指向域名xx.xx.xxx

刚试了。好像项目不加TOKEN也显示:获取朗读音频数据为空。。。
这需要如何设置?
项目日志只有,没有其他输出:
[POST] /api/ra

from ms-ra-forwarder.

wxxxcxx avatar wxxxcxx commented on June 28, 2024

image

看看有没有报错的日志?

from ms-ra-forwarder.

wutaijieing avatar wutaijieing commented on June 28, 2024
image

看看有没有报错的日志?

没有,只显示
[POST] /api/ra

from ms-ra-forwarder.

wxxxcxx avatar wxxxcxx commented on June 28, 2024

理论上正确的设置了请求头和body,服务端不会区分请求是由什么程序发起的。关于源阅读的格式可能需要咨询下源阅读的开发者。或者如果会抓包的话不妨抓包看看源阅读发起的请求是否符合预期。

我手头没有ios的设备,实在是没法测试。

from ms-ra-forwarder.

wutaijieing avatar wutaijieing commented on June 28, 2024

理论上正确的设置了请求头和body,服务端不会区分请求是由什么程序发起的。关于源阅读的格式可能需要咨询下源阅读的开发者。或者如果会抓包的话不妨抓包看看源阅读发起的请求是否符合预期。

我手头没有ios的设备,实在是没法测试。

我电脑可以真机远程控制我的ipad,方便的话加我qq?帮看下有办法不,爱阅书香支持get和post,但是我尝试了设置post方式蛮多次的,均无法成功,如果方便的话帮看看,真的很感谢,有抓包软件
853254613

from ms-ra-forwarder.

weigeshen avatar weigeshen commented on June 28, 2024

我就是源阅读,正常使用。你可以参考我的配置:
另外你的一处可能错误:“Bearer XXXXXX>”,

http://www.xxxxxxx.com:3000/api/ra,{"method":"POST","headers": {"Content-Type":"text/plain","Authorization":"Bearer TOKEN","Format":"audio-24khz-48kbitrate-mono-mp3"}
,"body":"<speak xmlns="http://www.w3.org/2001/10/synthesis\" xmlns:mstts="http://www.w3.org/2001/mstts\" xmlns:emo="http://www.w3.org/2009/10/emotionml\" version="1.0" xml:lang="en-US"><voice name="zh-CN-shaanxi-XiaoniNeural"><prosody rate="{{(speakSpeed - 10) * 2}}%" pitch="+0Hz">{{String(speakText).replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, ''').replace(/</g, '<').replace(/>/g, '>')}}"}

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.