【置顶】语音合成Android版本问题及答案汇总贴
0半君0 发布于2016-01 浏览:61101 回复:39
0
收藏

语音合成Android版本问题及答案汇总贴

收藏
点赞
0
个赞
共39条回复 最后由用户已被禁言回复于2022-04
#41mryeze回复于2017-10

碘嚼涩讥:

报onError error=(-111)(-111)offline engine synthesize result not 0[(11)]--utteranceId=0怎么办

回复碘嚼涩讥:请问你们解决了这个问题了吗?我也碰到这样的问题

0
#40379366152回复于2017-10

真的百了个度:

public void onSynthesizeDataArrived(String utteranceId, byte[] data, int progress) {
toPrint("onSynthesizeDataArrived  "+"utteranceId=="+utteranceId+" progress=="+progress);


}

怎么播放合成后的byte[ ] data 数据  ,

mSpeechSynthesizer.synthesize(text);

该方法的作用是合成语音,合成后怎么操作合成后的东西

回复真的百了个度:换用系统媒体操作

0
#39狮子aini1回复于2017-09

水寒319:android studio运行的时候也报这个错误,请问是什么原因?

问题:

sample工程无法正常运行,一启动就crash了,报ClassNotFoundException。


答案:

出现此问题,可能原因是因为开发者使用的adt是22的版本,而最好应该使用23的adt版本,google在升级adt的时候某些编译打包的选项发生了变动。


回复水寒319:

0
#38舍神无敌回复于2017-09

499019364:

报onError error=(-111)(-111)offline engine synthesize result not 0[(11)]   求怎么解决啊,包名什么都是一致的

回复499019364:如果你是在androidstudio上运行项目的话,请将语音资源文件(Demo文件中的data内文件)放在main包下的assets包下(没有就新建此包)

0
#37499019364回复于2017-08

报onError error=(-111)(-111)offline engine synthesize result not 0[(11)]   求怎么解决啊,包名什么都是一致的

0
#36suncohey16回复于2017-06
0回答

我使用的服务是:百度语音合成

调用的接口是:

参数设置情况:

开发平台和机型:Android开发-华为P8

SDK版本号:2.3.0

代码或日志截图(上传截图能帮助您更快解决问题):

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: JNI FindClass called with pending exception java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo()' on a null object reference

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at android.content.pm.ApplicationInfo android.content.ContextWrapper.getApplicationInfo() (ContextWrapper.java:150)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at int com.baidu.tts.jni.EmbeddedSynthesizerEngine.bdTTSVerifyLicense(android.content.Context, java.lang.String, java.lang.String, java.lang.String, byte[]) (EmbeddedSynthesizerEngine.java:-2)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at boolean com.baidu.tts.auth.b$a.g() (OfflineAuth.java:259)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.b$a com.baidu.tts.auth.b.c() (OfflineAuth.java:83)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at java.lang.Object com.baidu.tts.auth.b.call() (OfflineAuth.java:25)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at void java.util.concurrent.FutureTask.run() (FutureTask.java:237)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.k.a com.baidu.tts.k.c.a(com.baidu.tts.k.b) (Memorizer.java:51)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.b$a com.baidu.tts.auth.a$a.a() (AuthClient.java:184)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at java.lang.Object com.baidu.tts.auth.a$a.call() (AuthClient.java:148)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at void java.util.concurrent.FutureTask.run() (FutureTask.java:237)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at void java.lang.Thread.run() (Thread.java:833)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410] 

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]     in call to FindClass

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]     from int com.baidu.tts.jni.EmbeddedSynthesizerEngine.bdTTSVerifyLicense(android.content.Context, java.lang.String, java.lang.String, java.lang.String, byte[])

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410] "Thread-9616" prio=5 tid=41 Runnable

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   | group="main" sCount=0 dsCount=0 obj=0x131f40a0 self=0x7f2c4b9600

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   | sysTid=2259 nice=0 cgrp=top_visible sched=0/0 handle=0x7f2a7f4440

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   | state=R schedstat=( 9770280 60840 54 ) utm=0 stm=0 core=6 HZ=100

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   | stack=0x7f2a6f2000-0x7f2a6f4000 stackSize=1037KB

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   | held mutexes= "mutator lock"(shared held)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #00 pc 000000000049063c  /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_9ArtMethodEPv+236)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #01 pc 000000000045f630  /system/lib64/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+220)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #02 pc 0000000000310eec  /system/lib64/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1000)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #03 pc 00000000003117a4  /system/lib64/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+116)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #04 pc 0000000000144ddc  /system/lib64/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+144)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #05 pc 000000000014bc8c  /system/lib64/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE.constprop.116+6088)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #06 pc 000000000014eed4  /system/lib64/libart.so (_ZN3art8CheckJNI9FindClassEP7_JNIEnvPKc+468)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #07 pc 00000000000b4618  /data/app/com.ybzc.rider-1/lib/arm64/libbd_etts.so (???)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #08 pc 00000000000b7a94  /data/app/com.ybzc.rider-1/lib/arm64/libbd_etts.so (VerifyLicense+144)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #09 pc 0000000000001c54  /data/app/com.ybzc.rider-1/lib/arm64/libbdtts.so (Java_com_baidu_tts_jni_EmbeddedSynthesizerEngine_bdTTSVerifyLicense+228)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #10 pc 0000000000a115a0  /data/app/com.ybzc.rider-1/oat/arm64/base.odex (int com.baidu.tts.jni.EmbeddedSynthesizerEngine.bdTTSVerifyLicense(android.content.Context, java.lang.String, java.lang.String, java.lang.String, byte[])+276)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #11 pc 00000000009abe8c  /data/app/com.ybzc.rider-1/oat/arm64/base.odex (boolean com.baidu.tts.auth.b$a.g()+544)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #12 pc 00000000009acbc0  /data/app/com.ybzc.rider-1/oat/arm64/base.odex (com.baidu.tts.auth.b$a com.baidu.tts.auth.b.c()+228)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #13 pc 00000000009ad2c4  /data/app/com.ybzc.rider-1/oat/arm64/base.odex (java.lang.Object com.baidu.tts.auth.b.call()+56)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #14 pc 0000000000546c80  /data/dalvik-cache/arm64/system@framework@boot.oat (???)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.jni.EmbeddedSynthesizerEngine.bdTTSVerifyLicense(Native method)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   - locked <0x035f1598> (a java.lang.Class)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.b$a.g(OfflineAuth.java:259)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.b.c(OfflineAuth.java:83)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.b.call(OfflineAuth.java:25)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at java.util.concurrent.FutureTask.run(FutureTask.java:237)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.k.c.a(Memorizer.java:51)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.a$a.a(AuthClient.java:184)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.a$a.call(AuthClient.java:148)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at java.util.concurrent.FutureTask.run(FutureTask.java:237)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at java.lang.Thread.run(Thread.java:833)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410] 

06-24 14:36:12.119 1187-2259/com.ybzc.rider A/art: art/runtime/runtime.cc:368] Runtime aborting...


0
#35碘嚼涩讥回复于2017-05

报onError error=(-111)(-111)offline engine synthesize result not 0[(11)]--utteranceId=0怎么办

0
#34夜色澄明回复于2017-04

你椰椰:

-106 离线授权执行时异常

在[应用管理]中开通了正式离线授权,应该不用再设置临时授权文件,

但是跑时报-106,

加了临时license文件还是报-106.

回复你椰椰:

.so文件和.jar文件版本不一样。

临时授权文件只是验证APP的授权是否开通,实际上是不用的。

0
#33sunnywwwwc回复于2017-03

请问如何设置可以让离线和在线的声音是相同的?离线和在线的声音差很多,如果突然联网断网,两种声音会很奇怪,求解答!!!!!

0
#32胡仟250回复于2017-02

470886354:

离在线语音合成 Android SDK,为什么第一次使用APP时不能离线语音,必须要连一次网过后才能离线语音?

回复470886354:因为你的应用第一次没有lisence文件,当第一次联网的时候,lisence文件会被生成或者下载到你的sdcard中,这样的话就不需要联网播报语音了。但是这个lisence有时间限制或者相应的应用的相应限制,如版本号等。。。

0
#31avztvflkk回复于2017-02

语音合成安卓的sdk下载不了,有谁下载了提供个网盘什么的?2.3.0版本的

0
#30能濑斯狠回复于2017-01

渔舟小调:

回复470886354:朋友有解决方案吗?

回复渔舟小调为什么我下载的SDK里Assets下缺少temp_license文件,而DEMO里是有这个的,你下载的有没有这个文件

0
#29渔舟小调回复于2017-01

470886354:

离在线语音合成 Android SDK,为什么第一次使用APP时不能离线语音,必须要连一次网过后才能离线语音?

回复470886354:朋友有解决方案吗?

0
#28你椰椰回复于2016-12
-106 离线授权执行时异常

在[应用管理]中开通了正式离线授权,应该不用再设置临时授权文件,

但是跑时报-106,

加了临时license文件还是报-106.

0
#27470886354回复于2016-11

离在线语音合成 Android SDK,为什么第一次使用APP时不能离线语音,必须要连一次网过后才能离线语音?

0
#26synzht回复于2016-11

6.0的机子报错process stopped due to unexpected signal 13

0
#25飞线JAVA回复于2016-10

如何播放缓存起来的合成数据,在

onSynthesizeDataArrived(String s, byte[] bytes, int i)

中获取到的bytes,缓存起来之后,如果以后需要播放缓存起来的合成数据bytes,如何播放,在文档里没看到相关的API额?

0
#24响亮的名字九八回复于2016-08

能不能把生命周期图给一下 啊

0
#23沉默601回复于2016-07

手机没有网络时,不可以语音播放?

0
#22_凹凸首长回复于2016-07

申请离线合成授权的入口关闭了吗?没找到..

0
TOP
切换版块