语音合成功能昨天还是好使的,今天就不行了
guoheng1997 发布于2019-08 浏览:2839 回复:10
0
收藏

2019-08-21 11:04:02.141 18459-18459/com.bigcat.edulearnaid W/AudioTrack: Use of stream types is deprecated for operations other than volume control
2019-08-21 11:04:02.141 18459-18459/com.bigcat.edulearnaid W/AudioTrack: See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
2019-08-21 11:04:02.578 18459-18459/com.bigcat.edulearnaid W/AutoCheckMessage: 【请手动检查】【检查包名】 如果您集成过程中遇见离线合成初始化问题,请检查网页上appId:17009790 应用是否开通了合成服务,并且网页上的应用填写了Android包名:com.bigcat.edulearnaid
集成自动排查工具: 恭喜没有检测到任何问题
2019-08-21 11:04:27.594 18459-18459/com.bigcat.edulearnaid E/ASREngine: VAD Model=dnn
2019-08-21 11:04:29.029 18459-18567/com.bigcat.edulearnaid W/System.err: java.util.concurrent.ExecutionException: java.io.IOException: Broken pipe
2019-08-21 11:04:29.029 18459-18567/com.bigcat.edulearnaid W/System.err: at java.util.concurrent.FutureTask.report(FutureTask.java:123)
2019-08-21 11:04:29.029 18459-18567/com.bigcat.edulearnaid W/System.err: at java.util.concurrent.FutureTask.get(FutureTask.java:207)
2019-08-21 11:04:29.029 18459-18567/com.bigcat.edulearnaid W/System.err: at com.baidu.speech.audio.MicrophoneServer.run(Unknown Source:93)
2019-08-21 11:04:29.029 18459-18567/com.bigcat.edulearnaid W/System.err: at java.lang.Thread.run(Thread.java:764)
2019-08-21 11:04:29.029 18459-18567/com.bigcat.edulearnaid W/System.err: Caused by: java.io.IOException: Broken pipe
2019-08-21 11:04:29.029 18459-18567/com.bigcat.edulearnaid W/System.err: at android.net.LocalSocketImpl.writeba_native(Native Method)
2019-08-21 11:04:29.029 18459-18567/com.bigcat.edulearnaid W/System.err: at android.net.LocalSocketImpl.access$500(LocalSocketImpl.java:36)
2019-08-21 11:04:29.029 18459-18567/com.bigcat.edulearnaid W/System.err: at android.net.LocalSocketImpl$SocketOutputStream.write(LocalSocketImpl.java:144)
2019-08-21 11:04:29.030 18459-18567/com.bigcat.edulearnaid W/System.err: at com.baidu.speech.audio.MicrophoneServer$2.call(Unknown Source:17)
2019-08-21 11:04:29.030 18459-18567/com.bigcat.edulearnaid W/System.err: at com.baidu.speech.audio.MicrophoneServer$2.call(Unknown Source:0)
2019-08-21 11:04:29.030 18459-18567/com.bigcat.edulearnaid W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2019-08-21 11:04:29.030 18459-18567/com.bigcat.edulearnaid W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
2019-08-21 11:04:29.030 18459-18567/com.bigcat.edulearnaid W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
2019-08-21 11:04:29.030 18459-18567/com.bigcat.edulearnaid W/System.err: ... 1 more
2019-08-21 11:04:29.182 18459-18570/com.bigcat.edulearnaid W/BDSHttpRequestMaker: Download connection stauts has already been closed. &3144bb7,

收藏
点赞
0
个赞
共10条回复 最后由用户已被禁言回复于2022-04
#11liguanghui2588回复于2019-08

是暂时出问题还是一直是这样

0
#10尼基塔007不错回复于2019-08
#5 guoheng1997回复
token 我该怎样检查?因为这个是网络请求是您sdk里面做的,所以我该怎么检查呢?
展开

这个SDK可以做到?

0
#9果断叫小黑回复于2019-08

我这边都是重新请求token的。。

0
#8rose20135188回复于2019-08

很好的学习案例。

0
#7何必固執回复于2019-08

这一堆码的

0
#6guoheng1997回复于2019-08

问题解决:https://blog.csdn.net/qq_35317752/article/details/88618403

然后一定在在最开始设置监听,这样,onError才能收到错误的回调。

       instance = SpeechSynthesizer.getInstance();

        instance.setSpeechSynthesizerListener(new SpeechSynthesizerListener() {
            @Override
            public void onSynthesizeStart(String s) {
                Log.d("aa", "" + s);
            }

            @Override
            public void onSynthesizeDataArrived(String s, byte[] bytes, int i) {
                Log.d("aa", "" + s);
            }

            @Override
            public void onSynthesizeFinish(String s) {
                Log.d("aa", "" + s);
            }

            @Override
            public void onSpeechStart(String s) {
                Log.d("aa", "" + s);
            }

            @Override
            public void onSpeechProgressChanged(String s, int i) {
                Log.d("aa", "" + s);
            }

            @Override
            public void onSpeechFinish(String s) {
                Log.d("aa", "" + s);
            }

            @Override
            public void onError(String s, SpeechError speechError) {
                Log.d("aa", "" + s + speechError.description + speechError.code);
            }
        });

        instance.setContext(this);
        instance.setAppId(appId);
        instance.setApiKey(appKey, secretKey);
        instance.auth(TtsMode.ONLINE);
        instance.setParam(SpeechSynthesizer.PARAM_SPEAKER, "0");
        instance.initTts(TtsMode.ONLINE);
0
#5guoheng1997回复于2019-08
#4 用户已被禁言回复
那么请检查token或者重新集成,另外可以反馈一下这种情况的频率是如何的。
展开

token 我该怎样检查?因为这个是网络请求是您sdk里面做的,所以我该怎么检查呢?

0
#4用户已被禁言回复于2019-08
#3 guoheng1997回复
demo是没有问题的,可以正常工作。

那么请检查token或者重新集成,另外可以反馈一下这种情况的频率是如何的。

0
#3guoheng1997回复于2019-08
#2 用户已被禁言回复
您好,这里看不出具体的报错。可以测试demo看有无此问题。

demo是没有问题的,可以正常工作。

0
#2用户已被禁言回复于2019-08

您好,这里看不出具体的报错。可以测试demo看有无此问题。

0
TOP
切换版块