帖子

sdk在线合成语音,批量生成时怎么判断是否已经完成

[复制链接]

该用户从未签到

4773 155****9955 发表于 2019-5-21 11:26:25 1#
linux中合成pcm并转化为mp3

批量生成文件时,linux中onSynthesizeCompleted 接口会提示错误代码10132

未结束 进行下一次,
想知道哪里有文件生成结束的回调或者什么,

onBufferProgress中判断的合成进度没作用
155****9955 发表于 2019-5-21 11:58:11
2#

11:48:29.481 [http-nio-55535-exec-1] INFO  c.alibaba.druid.pool.DruidDataSource - {dataSource-1} inited
11:48:30.264 [http-nio-55535-exec-1] INFO  c.i.icourt.common.util.ResourceUtil - 728ad55f-88c1-424f-98a0-727e18469364.pcm时间:100
11:48:30.365 [http-nio-55535-exec-1] INFO  c.i.icourt.common.util.ResourceUtil - 728ad55f-88c1-424f-98a0-727e18469364.pcm时间:201
11:48:30.465 [http-nio-55535-exec-1] INFO  c.i.icourt.common.util.ResourceUtil - 728ad55f-88c1-424f-98a0-727e18469364.pcm时间:301
11:48:30.565 [http-nio-55535-exec-1] INFO  c.i.icourt.common.util.ResourceUtil - 728ad55f-88c1-424f-98a0-727e18469364.pcm时间:401
11:48:30.666 [http-nio-55535-exec-1] INFO  c.i.icourt.common.util.ResourceUtil - 728ad55f-88c1-424f-98a0-727e18469364.pcm时间:502
11:48:30.727 [Thread-5] INFO  c.i.icourt.common.util.ResourceUtil - ===========================================================================编译完成 100%
11:48:30.736 [Thread-5] INFO  i.s.jave.DefaultFFMPEGLocator - ffmpeg.home: /usr/bin
11:48:30.738 [Thread-5] INFO  i.sauronsoftware.jave.FFMPEGExecutor - exec cmd: [/usr/bin/ffmpeg, -i, /home/exam/lincoln/mp3/155****510153.wav, -vn, -acodec, libmp3lame, -ab, 36000, -ac, 2, -ar, 44100, -f, mp3, -y, /home/exam/Demo/mp3/66.mp3]
11:48:30.766 [http-nio-55535-exec-1] INFO  c.i.icourt.common.util.ResourceUtil - 728ad55f-88c1-424f-98a0-727e18469364.pcm时间:602
11:48:30.767 [http-nio-55535-exec-1] INFO  c.i.icourt.common.util.ResourceUtil - 是否已经销毁:true
11:48:30.808 [Thread-7] INFO  c.i.icourt.common.util.ResourceUtil - -----------------------------------------------------------------uri-------------------------------------------/home/exam/lincoln//mp3/39b64985-c1ff-45f4-9ab3-b501904c987d.pcm
11:48:30.808 [Thread-7] INFO  c.i.icourt.common.util.ResourceUtil - -----------------------------------------------------------------error-------------------------------------------错误代码:10132
错误原因:发生未知错误.
11:48:30.856 [Thread-5] INFO  c.i.icourt.common.util.ResourceUtil - 生成MP3成功
11:48:30.857 [Thread-5] INFO  c.i.icourt.common.util.ResourceUtil - PCM删除成功
11:48:30.857 [Thread-5] INFO  c.i.icourt.common.util.ResourceUtil - WAV删除成功
11:48:30.905 [http-nio-55535-exec-1] INFO  c.i.icourt.common.util.ResourceUtil - 39b64985-c1ff-45f4-9ab3-b501904c987d.pcm时间:101
11:48:31.005 [http-nio-55535-exec-1] INFO  c.i.icourt.common.util.ResourceUtil - 39b64985-c1ff-45f4-9ab3-b501904c987d.pcm时间:201
11:48:31.105 [http-nio-55535-exec-1] INFO  c.i.icourt.common.util.ResourceUtil - 39b64985-c1ff-45f4-9ab3-b501904c987d.pcm时间:301
11:48:31.205 [http-nio-55535-exec-1] INFO  c.i.icourt.common.util.ResourceUtil - 39b64985-c1ff-45f4-9ab3-b501904c987d.pcm时间:401
11:48:31.306 [http-nio-55535-exec-1] INFO  c.i.icourt.common.util.ResourceUtil - 39b64985-c1ff-45f4-9ab3-b501904c987d.pcm时间:502
11:48:31.406 [http-nio-55535-exec-1] INFO  c.i.icourt.common.util.ResourceUtil - 39b64985-c1ff-45f4-9ab3-b501904c987d.pcm时间:602
11:48:31.506 [http-nio-55535-exec-1] INFO  c.i.icourt.common.util.ResourceUtil - 39b64985-c1ff-45f4-9ab3-b501904c987d.pcm时间:702
11:48:31.607 [http-nio-55535-exec-1] INFO  c.i.icourt.common.util.ResourceUtil - 39b64985-c1ff-45f4-9ab3-b501904c987d.pcm时间:803













第一次的回调里面会有第二次的pcm位置,导致出错

使用道具 举报 回复
讯飞2017hj 发表于 2019-5-21 14:00:43
3#
建议使用webapi的合成,sdk不支持并发,单次只能那个进行一路回话。

楼内回复

好的,了解了  详情 发表于 2019-5-21 14:05
使用道具 举报 回复
155****9955 发表于 2019-5-21 14:05:21
4#
讯飞2017hj 发表于 2019-5-21 14:00
建议使用webapi的合成,sdk不支持并发,单次只能那个进行一路回话。

好的,了解了
使用道具 举报 回复