You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
如题,我用了自己的tts,封装了一个api,前端的请求都正常,控制台也能收到tts请求,问题出在请求格式上。
我收到的请求格式如下: GET /api/tts.mp3?speaker=mytts+text=你好
(音色名和内容是示例)
但是根据文档get请求头有两个部分,speaker和text,用加号连接两个部分text请求就没了。我根据文档说明写的api,接收到mi-gpt的请求会报错。我试过把+改成&就好了: GET /api/tts.mp3?speaker=mytts&text=你好
请问这个问题怎么解决。。
The text was updated successfully, but these errors were encountered:
如题,我用了自己的tts,封装了一个api,前端的请求都正常,控制台也能收到tts请求,问题出在请求格式上。
我收到的请求格式如下:
GET /api/tts.mp3?speaker=mytts+text=你好
(音色名和内容是示例)
但是根据文档get请求头有两个部分,speaker和text,用加号连接两个部分text请求就没了。我根据文档说明写的api,接收到mi-gpt的请求会报错。我试过把+改成&就好了:
GET /api/tts.mp3?speaker=mytts&text=你好
请问这个问题怎么解决。。
The text was updated successfully, but these errors were encountered: