1. 分享适配同行者语音的免唤醒词

2. 优化分享框ui
3. 优化个人信息展示条件
This commit is contained in:
tongchenfei
2020-06-09 15:47:07 +08:00
parent 40d153468c
commit 64c9c61770
13 changed files with 94 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
package com.mogo.commons.debug;
import com.mogo.utils.logger.Logger;
/**
* @author congtaowang
* @since 2019-12-23
@@ -113,12 +115,16 @@ public class DebugConfig {
/**
* 设置使用哪个语音助手
* @param aiType AI_TYPE_TXZ AI_TYPE_SPEECH
* @param aiType {@link #AI_TYPE_TXZ} {@link #AI_TYPE_SPEECH}
*/
public static void setAIType(int aiType){
Logger.d("DebugConfig", "setAiType: " + aiType);
sAIType = aiType;
}
/**
* 使用哪个语音助手 {@link #AI_TYPE_TXZ} {@link #AI_TYPE_SPEECH}
*/
public static int getAIType(){
return sAIType;
}

View File

@@ -380,6 +380,9 @@ public class AIAssist implements VoiceClient.VoiceCmdCallBack, OnTtsListener {
if ( isProcessRunning( context, getPackageUid( context, "com.zhidao.speech" ) )
&& isProcessRunning( context, getPackageUid( context, "com.zhidao.speech.adapter" ) ) ) {
return true;
} else if (isProcessRunning(context, getPackageUid(context, "com.txznet.txz")) && isProcessRunning(context, getPackageUid(context, "com.txznet.adapter"))) {
Logger.d(TAG, "txz is voiceServiceReady");
return true;
}
return false;
}