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

java-tts 文本转语音

Results 2 java-tts issues
Sort by recently updated
recently updated
newest added

`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...

是否需要TTSService对象 ts.close();mp3文件才会触发落地了? 我原来的使用是想多次调用合成TTS,但如果没有调用close方法的时候,发现mp3是没有落地。 当我检测文件的时候是不存在的! 所以想了解你设计的是每次TTS调用,都是需要主动调用close来结束当前tts合成语音这样吗?