首页 版块 访问AI主站 注册 发帖
ianpan119
23
积分 积分商城
0
获赞
在线合成授权失败
Ta的回复 :附上新申请的: appid:"22990623";apikey:"7xutyfLb3SBuV80z8TQ6sOVI";apiSecret:"MGhIavPQlW9BUoe1SyL9W8KpFEnk2U91"
8
在线合成授权失败
Ta的回复 :好的,我再重新创建应用产生新的鉴权信息,另外,免费额度如何在控制台领取呢??
8
在线合成授权失败
Ta的回复 :在控制台领取免费配额后还是有问题,附上日志: 11-17 10:34:09.362 5540-5581/ D/bdtts-Memorizer: + run f=java.util.concurrent.FutureTask@ed54583 11-17 10:34:09.362 5540-5581/ D/bdtts-OnlineAuth: enter online auth 11-17 10:34:09.372 5540-5581/ D/bdtts-OnlineAuth: url=https://openapi.baidu.com/oauth/2.0/token?grant_type=client_credentials&client_id=sgIdNqKN2fnmHZBWmpKftUD0&client_secret=lrgVlwLC94q762QsbdwGQ79reYTh9f5O 11-17 10:34:09.400 5540-5581/ E/AsyncHttpRequest: Unhandled exception origin cause java.lang.SecurityException: Permission denied (missing INTERNET permission?) at java.net.InetAddress.lookupHostByName(InetAddress.java:468) at java.net.InetAddress.getAllByNameImpl(InetAddress.java:252) at java.net.InetAddress.getAllByName(InetAddress.java:215) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:142) at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:169) at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:124) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:366) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:560) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:492) at com.baidu.tts.loopj.AsyncHttpRequest.makeRequest(AsyncHttpRequest.java:146) at com.baidu.tts.loopj.AsyncHttpRequest.makeRequestWithRetries(AsyncHttpRequest.java:177) at com.baidu.tts.loopj.AsyncHttpRequest.run(AsyncHttpRequest.java:107) at com.baidu.tts.loopj.SyncHttpClient.sendRequest(SyncHttpClient.java:93) at com.baidu.tts.loopj.AsyncHttpClient.post(AsyncHttpClient.java:1043) at com.baidu.tts.auth.e.d(OnlineAuth.java:156) at com.baidu.tts.auth.e.call(OnlineAuth.java:33) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at com.baidu.tts.k.c.a(Memorizer.java:51) at com.baidu.tts.auth.a$b.a(AuthClient.java:130) at com.baidu.tts.auth.a$b.call(AuthClient.java:98) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.lang.Thread.run(Thread.java:818) Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname) at libcore.io.Posix.android_getaddrinfo(Native Method) at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:55) at java.net.InetAddress.lookupHostByName(InetAddress.java:455) at java.net.InetAddress.getAllByNameImpl(InetAddress.java:252)  at java.net.InetAddress.getAllByName(InetAddress.java:215)  at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:142)  at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:169)  at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:124)  at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:366)  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:560)  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:492)  at com.baidu.tts.loopj.AsyncHttpRequest.makeRequest(AsyncHttpRequest.java:146)  at com.baidu.tts.loopj.AsyncHttpRequest.makeRequestWithRetries(AsyncHttpRequest.java:177)  at com.baidu.tts.loopj.AsyncHttpRequest.run(AsyncHttpRequest.java:107)  at com.baidu.tts.loopj.SyncHttpClient.sendRequest(SyncHttpClient.java:93)  at com.baidu.tts.loopj.AsyncHttpClient.post(AsyncHttpClient.java:1043)  at com.baidu.tts.auth.e.d(OnlineAuth.java:156)  at com.baidu.tts.auth.e.call(OnlineAuth.java:33)  at java.util.concurrent.FutureTask.run(FutureTask.java:237)  at com.baidu.tts.k.c.a(Memorizer.java:51)  at com.baidu.tts.auth.a$b.a(AuthClient.java:130)  at com.baidu.tts.auth.a$b.call(AuthClient.java:98)  at java.util.concurrent.FutureTask.run(FutureTask.java:237)  at java.lang.Thread.run(Thread.java:818)  Caused by: android.system.ErrnoException: android_getaddrinfo failed: EACCES (Permission denied) at libcore.io.Posix.android_getaddrinfo(Native Method)  at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:55)  at java.net.InetAddress.lookupHostByName(InetAddress.java:455)  at java.net.InetAddress.getAllByNameImpl(InetAddress.java:252)  at java.net.InetAddress.getAllByName(InetAddress.java:215)  at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:142)  at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:169)  at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:124)  at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:366)  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:560)  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:492)  at com.baidu.tts.loopj.AsyncHttpRequest.makeRequest(AsyncHttpRequest.java:146)  at com.baidu.tts.loopj.AsyncHttpRequest.makeRequestWithRetries(AsyncHttpRequest.java:177)  at com.baidu.tts.loopj.AsyncHttpRequest.run(AsyncHttpRequest.java:107)  at com.baidu.tts.loopj.SyncHttpClient.sendRequest(SyncHttpClient.java:93)  at com.baidu.tts.loopj.AsyncHttpClient.post(AsyncHttpClient.java:1043)  at com.baidu.tts.auth.e.d(OnlineAuth.java:156)  at com.baidu.tts.auth.e.call(OnlineAuth.java:33)  at java.util.concurrent.FutureTask.run(FutureTask.java:237)  at com.baidu.tts.k.c.a(Memorizer.java:51)  at com.baidu.tts.auth.a$b.a(AuthClient.java:130)  at com.baidu.tts.auth.a$b.call(AuthClient.java:98)  at java.util.concurrent.FutureTask.run(FutureTask.java:237)  at java.lang.Thread.run(Thread.java:818)  11-17 10:34:09.401 5540-5581/ D/bdtts-OnlineAuth: this=com.baidu.tts.auth.e$a@55d973a--error=(-1)online engine auth failure 11-17 10:34:09.401 5540-5581/ D/bdtts-OnlineAuth: end online auth 11-17 10:34:09.401 5540-5581/ D/bdtts-Memorizer: - run f=java.util.concurrent.FutureTask@ed54583 11-17 10:34:09.402 5540-5577/ E/TTSClientBaidu: auth failed errorMsg=(-1)online engine auth failure 11-17 10:34:09.411 5540-5580/ I/OpenGLRenderer: Initialized EGL, version 1.4 11-17 10:34:09.423 5540-5580/ D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000
8
在线合成授权失败
Ta的回复 :online tts ,但看log是引擎授权失败 error=(-1)online engine auth failure
8
语音识别引入外部音频文件必须一起上传服务器吗
Ta的回复 :有没有分段上传外部二进制语音流byte[]的API,这样可以节约上传云端的时间(自己写个录音app提供外部音频,边录音边上传) ??
5
语音识别引入外部音频文件必须一起上传服务器吗
Ta的回复 :不是移动端,在电视上,外部陆续提供byte[]类型录音数据,请问可不可以边提供边上传,提供完了一起上传会耗时很多
5
能把离在线的语音合成代码改成纯离线的语音合成么?
Ta的回复 :现在是不是已经支持纯离线 语音合成了?
3
切换版块
智能客服