WhiteMagic2014 / tts-edge-java

java sdk for Edge Read Aloud
https://server.whitemagic2014.com/tts/
MIT License
41 stars 14 forks source link

经常会连接失败 #6

Open wuyu-zyong opened 2 months ago

wuyu-zyong commented 2 months ago

加入程序以后,运行一两分钟就会出现导致失败。 java.net.ConnectException: Connection timed out: connect at java.base/sun.nio.ch.Net.connect0(Native Method) at java.base/sun.nio.ch.Net.connect(Net.java:579) at java.base/sun.nio.ch.Net.connect(Net.java:568) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588) at java.base/java.net.Socket.connect(Socket.java:633) at org.java_websocket.client.WebSocketClient.run(WebSocketClient.java:461) at java.base/java.lang.Thread.run(Thread.java:833)

wuyu-zyong commented 2 months ago

主要是卡住了,是不是忘记设置超时了

WhiteMagic2014 commented 2 months ago

主要是卡住了,是不是忘记设置超时了

更新了一个版本 1.2.2 现在可以给 TTS 设置 超时时间,看看能否解决