百度语音识别 ASR 收费导致的bug

[ERROR][bds_asr_response_agent.cpp:419][ASRResponse::get_server_err_desc]err_no is: -3004
[DEBUG][bds_EventManagerAsr.cpp:1031]Encounter error: Server app name unknown.
[DEBUG][bds_EventManagerAsr.cpp:936]vr_handler work_status=8, encoded_err=2225220, err_desc=Server app name unknown., need_finish=1, need_stop=0, need_loop=0
[DEBUG][bds_EventManagerAsr.cpp:937]vr_handler m_has_cancelled=0, m_need_cancelled_callback=0
[DEBUG][bds_EventManagerAsr.cpp:654]1cancel_internal m_vr_is_running=1
[DEBUG][bds_EventManagerAsr.cpp:660]2cancel_internal m_vr_is_running=0
[TRACE][bds_Chunk_Connection.mm:194][bds_Chunk_Connection] uptask finished.
2021-09-03 20:26:05.888644+0800 BDSClientSample[13947:7119533] EVoiceRecognitionClientWorkStatusError:33
[TRACE][bds_Chunk_Connection.mm:556][bds_Chunk_Connection] downtask finished.
[TRACE][AppThread.cpp:329]Thread end (SP ~ 0x16d62ef98, threadID: 0x16d62f000

[TRACE][AppThread.cpp:47]============================================= AppThread::~AppThread() ====================================
[TRACE][AppThread.cpp:329]Thread end (SP ~ 0x16dea6f98, threadID: 0x16dea7000

[TRACE][AppThread.cpp:47]============================================= AppThread::~AppThread() ====================================
[DEBUG][BDVRReachability.mm:74]BDVRReachability Flag Status: -R ------- networkStatusForFlags
[DEBUG][BDVRReachability.mm:74]BDVRReachability Flag Status: -R ------- networkStatusForFlags
[DEBUG][bds_EventManagerAsr.cpp:471]start sn=72A104F8-DAAE-4226-8DEE-B7F43402FF4C
[TRACE][bds_EventManagerAsr.cpp:1134][EventManagerAsr::resolve_property_list]PROPERTY:10005
[TRACE][bds_EventManagerAsr.cpp:909]ASR_ONLINE_PARAM_KEY_APPCODE = 24797995
[TRACE][bds_EventManagerAsr.cpp:917]ASR_ONLINE_PARAM_KEY_APPCODE = fxAfMkwQk4gu3RpmgE4Oxhy2
[TRACE][bds_EventManagerMic.cpp:119][Mic:]start recorder prepare cost: 1
[TRACE][bds_EventManagerMic.cpp:121][Mic:]start recorder cost: 102
[TRACE][bds_vad_proxy.cpp:110][VADProxy::init_vad]current vad: ModelVAD
[TRACE][bds_EventManagerDec_Chunk.cpp:370][setupConnection]Cached IP: 
[TRACE][bds_AddressResolver_getaddrinfo.cpp:194]PROTO: https:// HOST: vop.baidu.com PATH: /v2

今天晚上使用语音助理切换影院模式的时候提示错误,Server app name unknown.这特喵的就神奇了,当时各种appkey id之类的都换成自己的了,应该也不会有人删除这些东西。但是就是提示错误,真是人生何处不坑爹。登陆百度后台发现创建的key依旧存在,不过后面语音技术显示的是无!

Continue Reading

一个加号(+)引发的血案

之前做的一个项目,由于阿里的旺信服务停了,最近想找个替代方案,于是找到了野火IM,看了下demo效果还不错,主要是ui部分可以复用。于是下载源代码看了一眼,比较奇怪的一点是昨天在windows已经把代码跑起来了,结果今天在mac上死活运行不聊了,提示下面的错误:

Execution failed for task ':chat:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     C:\Users\obaby\.gradle\caches\transforms-2\files-2.1\87575f1e55fb95ae83d67cbd526a722c\core-1.7.0-alpha02\res\values\values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.
Continue Reading

Gravatar 头像无法加载

Gravatar(英语:Globally Recognized Avatar)是一项用于提供在全球范围内使用的头像服务。只要你在Gravatar的服务器上上传了你自己的头像,你便可以在其他任何支持Gravatar的博客、论坛等地方使用它。

由于众所周知的原因,头像服务器多数都无法正常访问,不管是http还是https。为了解决头像问题有两个办法:

1.直接禁用头像服务

2.替换头像服务器连接。

第二种情况比较蛋疼的地方在于要找一个可用的镜像比较麻烦,可以通过下面的连接来获取可用连接。

Continue Reading

Litespeed Cache https模式下css/js 加载失败

安装litespeed插件并且开启之后,发现原有的页面样式丢失了。导致这个问题的原因在于虽然访问的是https的链接,但是资源文件依旧是http协议加载的,所以就直接挂掉了。解决这个问题最简单的办法应该是开启全站https,但是我并不想这么干,想依旧提供http访问的能力。于是找各种解决方法,网上提供的解决方案包含但不限于下面这几种:

1. 通过插件解决:例如Really Simple SSL等进行样式修复,但是我安装了没有效果。

2.通过修改functions.php添加以下代码(无效):

add_filter('script_loader_src', 'agnostic_script_loader_src', 20,2);
function agnostic_script_loader_src($src, $handle) {
    return preg_replace('/^(http|https):/', '', $src);
}
 
add_filter('style_loader_src', 'agnostic_style_loader_src', 20,2);
function agnostic_style_loader_src($src, $handle) {
    return preg_replace('/^(http|https):/', '', $src);
}
Continue Reading

Loginpress Pro Cracked

LoginPress Pro is a premium plugin which works if you have installed Free version already. So, first install our Free version from wordpress.org https://wordpress.org/plugins/loginpress/ and then install the Pro package.

Crack log:

1. replace the content of  loginpress-main.php with flow content

2. active the plugin with any code .

Continue Reading