-
Notifications
You must be signed in to change notification settings - Fork 30
main 6336 ERROR - 为了启用 subscribe api 最起码得添加一个有用的数据吧 #19
Comments
请添加该参数禁用订阅api --close-official-subscribe-api |
好的,谢谢! |
2022-09-24 10:05:06.060132800 [tts_server::web] main 6612 INFO - 启动 Api 服务成功 接口地址已监听至: 192.168.0.110:20222 自行修改 ip 以及 port |
恩,怎么啦? |
这样是正常的吗?阅读这边不工作呀 |
使正常的哦 这个文件夹里面有三个api 然后每个json里面的api_url 是接口url params 是可以传递的参数 |
好了,谢谢 |
手机里用http://localhost:20222/api/tts-ms-official-preview 出现failed to lookup address 。用edge好用 |
错误日志有没有呢,感觉像是dns解析错误的原因 |
错误日志在哪? |
就是你运行程序的控制台里面呀 |
手机里用的Termux |
那就在Termux里面看 |
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 |
在往下复制一点点 |
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" } |
晓北的声音是不是没有,那个听小说也挺好听的。 |
得看你用的哪个接口,只要官方接口支持,那这个就支持 |
我用晓北结果是晓晓的声音 |
可能你参数传错了呢,告诉我你的参数,还有使用的接口 |
tts-ms-official-preview这个 |
发音人参数呢 |
没用参数啊 |
还有你这个调用好像是调用的/api/tts-ms-subscribe-api这个接口,如果你关闭订阅key接口的话,这个接口不能调用! |
我现在用电脑,其它发音人是好用的呀 |
http://xxxxx.vicp.net:20222/api/tts-ms-official-preview,{ |
参数明显错了,仔细看我上面发的图,红框里面的内容,和你传递的informant是否一致 |
加上laoning好用了 |
手机用Termux 在用tts-ms-official-preview这个接口时还是failed to lookup address |
你确定没用错接口的话,可能是dns解析问题,这个错误我这边复现不了 |
我直接更改地址连接电脑就可以,应该不是接口的问题,我再试试吧 |
Termux 中启动命令:./tts-server --listen-address localhost --listen-port 20222 --close-official-subscribe-api --server-area china 不知道有没有错误 |
--server-area china 这个参数现在没有作用了,后续会删掉或者重新修复,根据错误日志,应该是你手机上dns有问题,解析地址解析错误,所以报错了,建议手机开vpn再试试。不行的话我也没有办法了,复现不出来错误 |
2022-09-24 05:13:16.917640877 [tts_server::web::controller] actix-server worker 0 525811009368 INFO - 解析 post 请求 /api/tts-ms-subscribe-api Ok(MsTtsMsgRequest { text: "第837章 王佐断臂, 亦为救国", request_id: "1718f854461c6193316438bae84db657", informant: "zh-CN-liaoning-XiaobeiNeural", style: "general", rate: "0", pitch: "0", quality: "audio-24khz-48kbitrate-mono-mp3", subscribe_key: None, region: None }) 2022-09-24 05:13:16.917976294 [event_bus::core] actix-server worker 0 525811009368 DEBUG - 向 EventBus request 发送消息 2022-09-24 05:13:18.903937699 [tts_server::utils::azure_api] event-bus-thread 525820495704 ERROR - Custom { kind: Uncategorized, error: "failed to lookup address information: Try again" } ^C2022-09-24 05:13:19.834102282 [actix_server::server] main 525829206016 INFO - SIGINT received; starting forced shutdown 2022-09-24 05:13:19.834303064 [actix_server::accept] actix-server acceptor 525808899928 DEBUG - Paused accepting connections on 127.0.0.1:20222 2022-09-24 05:13:19.834415616 [actix_server::accept] actix-server acceptor 525808899928 INFO - Accept thread stopped 2022-09-24 05:13:19.834457178 [actix_server::worker] actix-server worker 0 525811009368 INFO - Force shutdown worker, closing 2 connections 2022-09-24 05:13:20.136922230 [tts_server] main 525829206016 INFO - 谢谢使用,希望能收到您对软件的看法和建议! |
vpn 是肯定打开的,要不然没法正常朗读的。 |
--server-area china 这个参数,这个以前版本不加这个没办法用 |
这就很奇怪了,开启调试模式试试 --log-level Trace --log-to-file --log-path ./tts.log, 复现一下问题 然后当前目录下的tts.log文件上传上来 |
根目录下没有生成tts.log文件啊 |
emmm,可能这也是个bug |
手机上tts-ms-edge这个是好用的 |
@yaoxin1588 你可以用最新版本再试一下,日志的bug修好了,不然实在定位不了问题 |
换了新版本0.3.3 用./tts-server --version 显示还是0.3.1 。另外这次显示连接到微软服务器发生异常,tcp握手失败,请检查网络。vpn还有正常连接都试了 |
哦,那就是网络问题没错了,版本号的话我忘记改了哈哈哈,小问题,忽略他 |
我在Termux 用的localhost 在阅读中也用的localhost 和这个有关系吗 |
用edge接口是好用的 ,只有用预览这个不好用 |
应该只是网络问题吧,window 上以及linux 上无法复现 |
2022-09-25 17:31:14.902990400 [tts_server] main 12276 INFO - 准备启动,程序参数: AppArgs { server_area: Default, listen_address: "192.168.0.110", listen_port: "20222", show_informant_list: false, show_quality_list: false, close_edge_free_api: false, close_official_preview_api: false, close_official_subscribe_api: true, subscribe_api_auth_token: None, do_not_update_speakers_list: false, subscribe_key: [], web_ui: false, log_level: Info, log_to_file: false, log_path: "C:\Users\yao\AppData\Local\Temp\/local_ocr/ocr.log" } 电脑在这个地方卡好长时间 |
电脑上不用代理还是用不了,卡的不行 |
那基本没啥问题了,确定了,就是网络问题导致的报错,用edge吧 |
好的,你用预览接口卡吗?用代理吗 |
一点都不卡 |
手机Termux 上 用ms-ra-forwarder和tts-server-go这两个可以用预览接口的 ,但是也得用代理。以前不用的,后来就不行了,不知道为什么。 |
win10 cmd 运行 tts-server.exe --listen-address 192.168.0.110 --listen-port 20222
main 6336 ERROR - 为了启用 subscribe api 最起码得添加一个有用的数据吧
The text was updated successfully, but these errors were encountered: