tts-server icon indicating copy to clipboard operation
tts-server copied to clipboard

main 6336 ERROR - 为了启用 subscribe api 最起码得添加一个有用的数据吧

Open yaoxin1588 opened this issue 3 years ago • 53 comments

win10 cmd 运行 tts-server.exe --listen-address 192.168.0.110 --listen-port 20222

main 6336 ERROR - 为了启用 subscribe api 最起码得添加一个有用的数据吧

yaoxin1588 avatar Sep 24 '22 00:09 yaoxin1588

请添加该参数禁用订阅api

--close-official-subscribe-api

litcc avatar Sep 24 '22 01:09 litcc

好的,谢谢!

yaoxin1588 avatar Sep 24 '22 01:09 yaoxin1588

2022-09-24 10:05:06.060132800 [tts_server::web] main 6612 INFO - 启动 Api 服务成功 接口地址已监听至: 192.168.0.110:20222 自行修改 ip 以及 port 2022-09-24 10:05:06.060608600 [tts_server::web] main 6612 INFO - 您当前局域网ip可能为: 198.18.0.1 请自行替换上面的监听地址 2022-09-24 10:05:06.061594600 [actix_server::builder] main 6612 INFO - Starting 1 workers 2022-09-24 10:05:06.062404100 [actix_server::server] main 6612 INFO - Tokio runtime found; starting in existing Tokio runtime

yaoxin1588 avatar Sep 24 '22 02:09 yaoxin1588

恩,怎么啦?

litcc avatar Sep 24 '22 02:09 litcc

这样是正常的吗?阅读这边不工作呀

yaoxin1588 avatar Sep 24 '22 02:09 yaoxin1588

使正常的哦 对了,接口url变动了,需要调整一下

这个文件夹里面有三个api https://github.com/litcc/tts-server/tree/main/src/resource/api

然后每个json里面的api_url 是接口url

params 是可以传递的参数

litcc avatar Sep 24 '22 02:09 litcc

好了,谢谢

yaoxin1588 avatar Sep 24 '22 02:09 yaoxin1588

手机里用http://localhost:20222/api/tts-ms-official-preview 出现failed to lookup address 。用edge好用

yaoxin1588 avatar Sep 24 '22 03:09 yaoxin1588

错误日志有没有呢,感觉像是dns解析错误的原因

litcc avatar Sep 24 '22 03:09 litcc

错误日志在哪?

yaoxin1588 avatar Sep 24 '22 03:09 yaoxin1588

就是你运行程序的控制台里面呀

litcc avatar Sep 24 '22 03:09 litcc

手机里用的Termux

yaoxin1588 avatar Sep 24 '22 03:09 yaoxin1588

那就在Termux里面看

litcc avatar Sep 24 '22 03:09 litcc

2022-09-24 03:35:00.303507352 [tts_server::utils::azure_api] event-bus-thread 486488975192 ERROR - Custom { kind: Uncategorized, error: "failed to lookup address information: Try again" } 2022-09-24 03:35:01.695129226 [tts_server::web::controller] actix-server worker 0 486481598296 DEBUG - 收到 post 请求 /api/tts-ms-subscribe-api Json(MsTtsMsgRequestJson { text: "%E3%80%80%E3%80%80%E9%9B%B7%E4%B9%A6%E8%AE%B0%E9%81%93%EF%BC%8C%E2%80%9D%E8%BF%99%E6%A0%B7%E4%B8%8D%E5%A4%AA%E5%A5%BD%E5%90%A7%EF%BC%81%E5%AE%81%E9%9B%AA%E8%99%B9%E5%90%8C%E5%BF%97%E3%80%82%E4%BB%96%E6%AF%95%E7%AB%9F%E6%98%AF%E7%A7%98%E4%B9%A6%E9%95%BF%E7%9A%84%E4%BA%BA%E3%80%82%E2%80%9C%E5%AE%81%E9%9B%AA%E8%99%B9%E7%9B%AF%E7%9D%80%E4%BB%96%EF%BC%8C%E2%80%9C%E8%B0%88%E8%B0%88%E4%BD%A0%E7%9A%84%E9%97%AE%E9%A2%98%E5%90%A7%EF%BC%81%E2%80%9D", informant: Some("zh-CN-YunzeNeural"), style: Some("general"), rate: Some(1.0), pitch: None, quality: None, token: None }) 2022-09-24 03:35:01.699156257 [tts_server::web::controller] actix-server worker 0 486481598296 INFO - 解析 post 请求 /api/tts-ms-subscribe-api Ok(MsTtsMsgRequest { text: "\u{3000}\u{3000}雷书记道, ”这样不太好吧! 宁雪虹同志. 他毕竟是秘书长的人. “宁雪虹盯着他, “谈谈你的问题吧! ”", request_id: "3b2dc5da371bbb811a99dfde4be4e196", informant: "zh-CN-YunzeNeural", style: "general", rate: "0", pitch: "0", quality: "audio-24khz-48kbitrate-mono-mp3", subscribe_key: None, region: None }) 2022-09-24 03:35:01.699425164 [event_bus::core] actix-server worker 0 486481598296 DEBUG - 向 EventBus request 发送消息 2022-09-24 03:35:06.370300631 [tts_server::utils::azure_api] event-bus-thread 486488975192 ERROR - Custom { kind: Uncategorized, error: "failed to lookup address information: Try again" } 2022-09-24 03:35:12.435801774 [tts_server::utils::azure_api] event-bus-thread 486486865752 ERROR - Custom { kind: Uncategorized, error: "failed to lookup address information: Try again" } 2022-09-24 03:35:16.710320106 [tts_server::web::controller] actix-server worker 0 486481598296 DEBUG - 收到 post 请求 /api/tts-ms-subscribe-api Json(MsTtsMsgRequestJson { text: "%E3%80%80%E3%80%80%E2%80%9C%E6%88%91%EF%BC%9F%E5%BC%80%E4%BB%80%E4%B9%88%E7%8E%A9%E7%AC%91%EF%BC%9F%E5%AE%81%E9%9B%AA%E8%99%B9%EF%BC%8C%E4%BD%A0%E4%B8%8D%E8%A6%81%E6%8A%8A%E4%BA%8B%E6%83%85%E6%89%AF%E5%88%B0%E6%88%91%E8%BA%AB%E4%B8%8A%E3%80%82%E6%88%91%E5%8F%AF%E4%BB%80%E4%B9%88%E9%83%BD%E4%B8%8D%E7%9F%A5%E9%81%93%E3%80%82%E2%80%9D", informant: Some("zh-CN-YunzeNeural"), style: Some("general"), rate: Some(1.0), pitch: None, quality: None, token: None }) 2022-09-24 03:35:16.713950158 [tts_server::web::controller] actix-server worker 0 486481598296 INFO - 解析 post 请求 /api/tts-ms-subscribe-api Ok(MsTtsMsgRequest { text: "\u{3000}\u{3000}“我? 开什么玩笑? 宁雪虹, 你不要把事情扯到我身上. 我可什么都不知道. ”", request_id: "76b4dbd7ce2876f8621576f577da589a", informant: "zh-CN-YunzeNeural", style: "general", rate: "0", pitch: "0", quality: "audio-24khz-48kbitrate-mono-mp3", subscribe_key: None, region: None }) 2022-09-24 03:35:16.714373023 [event_bus::core] actix-server worker 0 486481598296 DEBUG - 向 EventBus request 发送消息 2022-09-24 03:35:18.504199741 [tts_server::utils::azure_api] event-bus-thread 486488975192 ERROR - Custom { kind: Uncategorized, error: "failed to lookup address information: Try again" } 2022-09-24 03:35:24.545525676 [tts_server

yaoxin1588 avatar Sep 24 '22 03:09 yaoxin1588

在往下复制一点点

litcc avatar Sep 24 '22 03:09 litcc

api] event-bus-thread 486486865752 ERROR - Custom { kind: Uncategorized, error: "failed to lookup address information: Try again" } 2022-09-24 03:40:47.325436751 [tts_server::web::controller] actix-server worker 0 486481598296 DEBUG - 收到 post 请求 /api/tts-ms-subscribe-api Json(MsTtsMsgRequestJson { text: "%E3%80%80%E3%80%80PS%EF%BC%9A%E5%9B%9B%E6%9B%B4%E5%88%B0%E4%BA%86%EF%BC%8C%E9%B2%9C%E8%8A%B1%E5%8F%88%E8%90%8E%E4%BA%86%EF%BC%8C%E6%B1%82%E4%B8%AA%E6%89%93%E8%B5%8F%E5%90%A7%EF%BC%81", informant: Some("zh-CN-YunzeNeural"), style: Some("general"), rate: Some(1.0), pitch: None, quality: None, token: None }) 2022-09-24 03:40:47.329249771 [tts_server::web::controller] actix-server worker 0 486481598296 INFO - 解析 post 请求 /api/tts-ms-subscribe-api Ok(MsTtsMsgRequest { text: "\u{3000}\u{3000}PS: 四更到了, 鲜花又萎了, 求个打赏吧! ", request_id: "2d3d47d36d5dd8f88ef3984b196966b5", informant: "zh-CN-YunzeNeural", style: "general", rate: "0", pitch: "0", quality: "audio-24khz-48kbitrate-mono-mp3", subscribe_key: None, region: None }) 2022-09-24 03:40:47.329418053 [event_bus::core] actix-server worker 0 486481598296 DEBUG - 向 EventBus request 发送消息 2022-09-24 03:40:51.590832062 [tts_server::utils::azure_api] event-bus-thread 486488975192 ERROR - Custom { kind: Uncategorized, error: "failed to lookup address information: Try again" } 2022-09-24 03:40:57.652851486 [tts_server::utils::azure_api] event-bus-thread 486488975192 ERROR - Custom { kind: Uncategorized, error: "failed to lookup address information: Try again" } 2022-09-24 03:41:03.719944869 [tts_server::utils::azure_api] event-bus-thread 486488975192 ERROR - Custom { kind: Uncategorized, error: "failed to lookup address information: Try again" } 2022-09-24 03:41:09.771451846 [tts_server::utils::azure_api] event-bus-thread 486497634136 ERROR - Custom { kind: Uncategorized, error: "failed to lookup address information: Try again" } 2022-09-24 03:41:15.839678094 [tts_server::utils::azure_api] event-bus-thread 486488975192 ERROR - Custom { kind: Uncategorized, error: "failed to lookup address information: Try again" } 2022-09-24 03:41:21.906222050 [tts_server::utils::azure_api] event-bus-thread 486488975192 ERROR - Custom { kind: Uncategorized, error: "failed to lookup address information: Try again" } 2022-09-24 03:41:27.958573714 [tts_server::utils::azure_api] event-bus-thread 486488975192 ERROR - Custom { kind: Uncategorized, error: "failed to lookup address information: Try again" } 2022-09-24 03:41:34.009383764 [tts_server::utils::azure_api] event-bus-thread 486497634136 ERROR - Custom { kind: Uncategorized, error: "failed to lookup address information: Try again" }

yaoxin1588 avatar Sep 24 '22 03:09 yaoxin1588

晓北的声音是不是没有,那个听小说也挺好听的。

yaoxin1588 avatar Sep 24 '22 03:09 yaoxin1588

得看你用的哪个接口,只要官方接口支持,那这个就支持

litcc avatar Sep 24 '22 03:09 litcc

我用晓北结果是晓晓的声音

yaoxin1588 avatar Sep 24 '22 03:09 yaoxin1588

可能你参数传错了呢,告诉我你的参数,还有使用的接口

litcc avatar Sep 24 '22 03:09 litcc

tts-ms-official-preview这个

yaoxin1588 avatar Sep 24 '22 03:09 yaoxin1588

发音人参数呢

litcc avatar Sep 24 '22 03:09 litcc

没用参数啊

yaoxin1588 avatar Sep 24 '22 03:09 yaoxin1588

image

你要用晓北需要传发音人参数为这个,不然默认情况全是晓晓

litcc avatar Sep 24 '22 04:09 litcc

还有你这个调用好像是调用的/api/tts-ms-subscribe-api这个接口,如果你关闭订阅key接口的话,这个接口不能调用!

litcc avatar Sep 24 '22 04:09 litcc

我现在用电脑,其它发音人是好用的呀

yaoxin1588 avatar Sep 24 '22 04:09 yaoxin1588

http://xxxxx.vicp.net:20222/api/tts-ms-official-preview,{ "method": "POST", "body": { "informant": "zh-CN-YunbeiNeural", "style": "general", "rate": {{ speakSpeed / 10}}, "text": "{{java.encodeURI(speakText).replace('+','%20')}}" } }

yaoxin1588 avatar Sep 24 '22 04:09 yaoxin1588

参数明显错了,仔细看我上面发的图,红框里面的内容,和你传递的informant是否一致

litcc avatar Sep 24 '22 04:09 litcc

加上laoning好用了

yaoxin1588 avatar Sep 24 '22 04:09 yaoxin1588

手机用Termux 在用tts-ms-official-preview这个接口时还是failed to lookup address

yaoxin1588 avatar Sep 24 '22 04:09 yaoxin1588