Skip to content

TTSService ts做close()后都会有抛出这个异常:TTSService - onFailurenull #6

@yzygenuine

Description

@yzygenuine

`SSML ssml3 = SSML.builder().outputFormat(OutputFormat.audio_24khz_48kbitrate_mono_mp3)
.rate("-10%")
.synthesisText(content)
.outputFileName(fileName+"_3")
.voice(voice)
.build();
ts.sendText(ssml3);
//TODO 是否是每次都关,然后才会触发落地文件

	ts.close();
`

每次执行完TTS,TTSService ts做close()后都会有抛出这个异常,请问是什么原因导致,还是使用方式问题?

17:44:15.650 [OkHttp https://speech.platform.bing.com/...] DEBUG io.ikfly.service.TTSService - onFailurenull
java.io.EOFException: null
at okio.RealBufferedSource.require(RealBufferedSource.kt:202)
at okio.RealBufferedSource.readByte(RealBufferedSource.kt:212)
at okhttp3.internal.ws.WebSocketReader.readHeader(WebSocketReader.kt:119)
at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.kt:102)
at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.kt:293)
at okhttp3.internal.ws.RealWebSocket$connect$1.onResponse(RealWebSocket.kt:195)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
finish......

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions