|
@@ -49,6 +49,7 @@ import com.wdkl.callingmainnurse.util.LogUtil;
|
|
import com.wdkl.callingmainnurse.util.PalyPhonetics;
|
|
import com.wdkl.callingmainnurse.util.PalyPhonetics;
|
|
import com.wdkl.callingmainnurse.util.SharedPreferencesUtil;
|
|
import com.wdkl.callingmainnurse.util.SharedPreferencesUtil;
|
|
import com.wdkl.callingmainnurse.util.SipUtil.SipHelperUtil;
|
|
import com.wdkl.callingmainnurse.util.SipUtil.SipHelperUtil;
|
|
|
|
+import com.wdkl.callingmainnurse.util.SpeechUtil;
|
|
import com.wdkl.callingmainnurse.util.StringUtils;
|
|
import com.wdkl.callingmainnurse.util.StringUtils;
|
|
import com.wdkl.callingmainnurse.util.ToastUtil;
|
|
import com.wdkl.callingmainnurse.util.ToastUtil;
|
|
import com.wdkl.callingmainnurse.util.UIUtils;
|
|
import com.wdkl.callingmainnurse.util.UIUtils;
|
|
@@ -425,6 +426,8 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
|
|
|
|
public static CallingBedFragment mCallingBedFragment;
|
|
public static CallingBedFragment mCallingBedFragment;
|
|
|
|
|
|
|
|
+ private boolean enableTTS = false;
|
|
|
|
+
|
|
private CallATimeoutThread callATimeoutThread;
|
|
private CallATimeoutThread callATimeoutThread;
|
|
private List<CallListEntity> callListEntityList;
|
|
private List<CallListEntity> callListEntityList;
|
|
private boolean threadBool = true;//30秒无人接听线程
|
|
private boolean threadBool = true;//30秒无人接听线程
|
|
@@ -517,7 +520,9 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
serialPortUtil.setOnDataReceiveListener(this, this);
|
|
serialPortUtil.setOnDataReceiveListener(this, this);
|
|
setVolumePA(false);
|
|
setVolumePA(false);
|
|
setPowerLed("1");
|
|
setPowerLed("1");
|
|
- startPalyPhonetics();
|
|
|
|
|
|
+ if (!enableTTS) {
|
|
|
|
+ startPalyPhonetics();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -669,6 +674,9 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
if (null != loopVoice) {
|
|
if (null != loopVoice) {
|
|
loopVoice.setPalyDismiss(true);
|
|
loopVoice.setPalyDismiss(true);
|
|
}
|
|
}
|
|
|
|
+ if (enableTTS) {
|
|
|
|
+ SpeechUtil.getInstance().stopSpeak();
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
for (int i=0; i<PalyPhonetics.speakEntityList.size(); i++) {//将播报列表也删除该元素 两种实体格式不一样,所以要用循环
|
|
for (int i=0; i<PalyPhonetics.speakEntityList.size(); i++) {//将播报列表也删除该元素 两种实体格式不一样,所以要用循环
|
|
if(PalyPhonetics.speakEntityList.get(i).equals(deleteEntity)) {
|
|
if(PalyPhonetics.speakEntityList.get(i).equals(deleteEntity)) {
|
|
@@ -716,6 +724,9 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
if (null != loopVoice) {
|
|
if (null != loopVoice) {
|
|
loopVoice.setPalyDismiss(true);
|
|
loopVoice.setPalyDismiss(true);
|
|
}
|
|
}
|
|
|
|
+ if (enableTTS) {
|
|
|
|
+ SpeechUtil.getInstance().stopSpeak();
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
for (int i=0; i<PalyPhonetics.speakEntityList.size(); i++) {//将播报列表也删除该元素 两种实体格式不一样,所以要用循环
|
|
for (int i=0; i<PalyPhonetics.speakEntityList.size(); i++) {//将播报列表也删除该元素 两种实体格式不一样,所以要用循环
|
|
if(PalyPhonetics.speakEntityList.get(i).equals(deleteEntity)) {
|
|
if(PalyPhonetics.speakEntityList.get(i).equals(deleteEntity)) {
|
|
@@ -1011,6 +1022,9 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
if (null != loopVoice) {
|
|
if (null != loopVoice) {
|
|
loopVoice.setPalyDismiss(true);
|
|
loopVoice.setPalyDismiss(true);
|
|
}
|
|
}
|
|
|
|
+ if (enableTTS) {
|
|
|
|
+ SpeechUtil.getInstance().stopSpeak();
|
|
|
|
+ }
|
|
//String sipAddress = callingEntity.getSipAddress();
|
|
//String sipAddress = callingEntity.getSipAddress();
|
|
String sipAddress = callingEntity.getSipAddress();
|
|
String sipAddress = callingEntity.getSipAddress();
|
|
if (StringUtils.notEmpty(sipAddress)) {
|
|
if (StringUtils.notEmpty(sipAddress)) {
|
|
@@ -1026,7 +1040,12 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
if (null != loopingUdpentity && loopingUdpentity.equals(callingEntity)) {
|
|
if (null != loopingUdpentity && loopingUdpentity.equals(callingEntity)) {
|
|
- loopVoice.setPalyDismiss(true);
|
|
|
|
|
|
+ if (null != loopVoice) {
|
|
|
|
+ loopVoice.setPalyDismiss(true);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (enableTTS) {
|
|
|
|
+ SpeechUtil.getInstance().stopSpeak();
|
|
}
|
|
}
|
|
endCall();
|
|
endCall();
|
|
Constants.DoctorMachineCallStatus = Constants.STANDBY;
|
|
Constants.DoctorMachineCallStatus = Constants.STANDBY;
|
|
@@ -1055,6 +1074,9 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
if (null != loopVoice) {
|
|
if (null != loopVoice) {
|
|
loopVoice.setPalyDismiss(true);
|
|
loopVoice.setPalyDismiss(true);
|
|
}
|
|
}
|
|
|
|
+ if (enableTTS) {
|
|
|
|
+ SpeechUtil.getInstance().stopSpeak();
|
|
|
|
+ }
|
|
if (StringUtils.notEmpty(sipAddress)) {
|
|
if (StringUtils.notEmpty(sipAddress)) {
|
|
LogUtil.d("sipAddress", "Call==sipAddress==" + sipAddress);
|
|
LogUtil.d("sipAddress", "Call==sipAddress==" + sipAddress);
|
|
LogUtil.d("sipAddress", "Call==deviceMAC==" + sickBedInfo.getDeviceMAC());
|
|
LogUtil.d("sipAddress", "Call==deviceMAC==" + sickBedInfo.getDeviceMAC());
|
|
@@ -1167,6 +1189,9 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
if (vRightCallInfo.getVisibility() == View.VISIBLE && sickBedInfo.equals(sickbedInformationList.get(position))) {
|
|
if (vRightCallInfo.getVisibility() == View.VISIBLE && sickBedInfo.equals(sickbedInformationList.get(position))) {
|
|
if (null == sickBedInfo || !StringUtils.listNotEmpty(sickbedInformationList)) return;
|
|
if (null == sickBedInfo || !StringUtils.listNotEmpty(sickbedInformationList)) return;
|
|
if (filterSipToast()) {
|
|
if (filterSipToast()) {
|
|
|
|
+ if (enableTTS) {
|
|
|
|
+ SpeechUtil.getInstance().stopSpeak();
|
|
|
|
+ }
|
|
if (Constants.CALL_STATE.equals(Constants.STANDBY)) {
|
|
if (Constants.CALL_STATE.equals(Constants.STANDBY)) {
|
|
String sipAddress = sickBedInfo.getSipID();
|
|
String sipAddress = sickBedInfo.getSipID();
|
|
if (StringUtils.notEmpty(sipAddress)) {
|
|
if (StringUtils.notEmpty(sipAddress)) {
|
|
@@ -1254,6 +1279,9 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
if (vRightCallListInfo.getVisibility() == View.VISIBLE && callItemChooseEntity.equals(MyApplication.callEntityList.get(position))) {
|
|
if (vRightCallListInfo.getVisibility() == View.VISIBLE && callItemChooseEntity.equals(MyApplication.callEntityList.get(position))) {
|
|
if (null == callItemChooseEntity) return;
|
|
if (null == callItemChooseEntity) return;
|
|
if (filterSipToast() && !MyApplication.callEntityList.get(position).getType().equals(Constants.WSHROOM_CALL) && !MyApplication.callEntityList.get(position).getType().equals(Constants.ROOMHELP_CALL)) {
|
|
if (filterSipToast() && !MyApplication.callEntityList.get(position).getType().equals(Constants.WSHROOM_CALL) && !MyApplication.callEntityList.get(position).getType().equals(Constants.ROOMHELP_CALL)) {
|
|
|
|
+ if (enableTTS) {
|
|
|
|
+ SpeechUtil.getInstance().stopSpeak();
|
|
|
|
+ }
|
|
if (Constants.CALL_STATE.equals(Constants.STANDBY)) {
|
|
if (Constants.CALL_STATE.equals(Constants.STANDBY)) {
|
|
String sipAddress = callItemChooseEntity.getSipAddress();
|
|
String sipAddress = callItemChooseEntity.getSipAddress();
|
|
if (StringUtils.notEmpty(sipAddress)) {
|
|
if (StringUtils.notEmpty(sipAddress)) {
|
|
@@ -1336,6 +1364,9 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
if (null != loopVoice) {
|
|
if (null != loopVoice) {
|
|
loopVoice.setPalyDismiss(true);
|
|
loopVoice.setPalyDismiss(true);
|
|
}
|
|
}
|
|
|
|
+ if (enableTTS) {
|
|
|
|
+ SpeechUtil.getInstance().stopSpeak();
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
if (PalyPhonetics.speakEntityList.contains(callingEntity)) {//将播报列表也删除该元素
|
|
if (PalyPhonetics.speakEntityList.contains(callingEntity)) {//将播报列表也删除该元素
|
|
PalyPhonetics.speakEntityList.remove(callingEntity);
|
|
PalyPhonetics.speakEntityList.remove(callingEntity);
|
|
@@ -1405,6 +1436,10 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
//正在呼叫;将播报音量为0
|
|
//正在呼叫;将播报音量为0
|
|
if (null != loopVoice) {
|
|
if (null != loopVoice) {
|
|
loopVoice.setVolumes(0f);
|
|
loopVoice.setVolumes(0f);
|
|
|
|
+ loopVoice.setPalyDismiss(true);
|
|
|
|
+ }
|
|
|
|
+ if (enableTTS) {
|
|
|
|
+ SpeechUtil.getInstance().stopSpeak();
|
|
}
|
|
}
|
|
//安卓端接通电话,通知点阵屏,但要排除固定列表
|
|
//安卓端接通电话,通知点阵屏,但要排除固定列表
|
|
if (!callBed) {
|
|
if (!callBed) {
|
|
@@ -1454,8 +1489,15 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
case "call_4"://增援呼叫护士主机
|
|
case "call_4"://增援呼叫护士主机
|
|
case "call_6": //门口机呼叫护士主机
|
|
case "call_6": //门口机呼叫护士主机
|
|
if (isMySelfMachine(nurseHostID)) {//只有属于自己管的机器才能加进列表
|
|
if (isMySelfMachine(nurseHostID)) {//只有属于自己管的机器才能加进列表
|
|
- if (!PalyPhonetics.speakEntityList.contains(udpEntity) && Constants.CALL_STATE.equals(Constants.STANDBY)) {
|
|
|
|
- addPhonetics(udpEntity); //在此加入列表队列 Waderson 20171101
|
|
|
|
|
|
+ if (enableTTS) {
|
|
|
|
+ //使用TTS播报
|
|
|
|
+ if (Constants.CALL_STATE.equals(Constants.STANDBY)) {
|
|
|
|
+ startSpeak(udpEntity);
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (!PalyPhonetics.speakEntityList.contains(udpEntity) && Constants.CALL_STATE.equals(Constants.STANDBY)) {
|
|
|
|
+ addPhonetics(udpEntity); //在此加入列表队列 Waderson 20171101
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (!MyApplication.callEntityList.contains(udpEntity)) {
|
|
if (!MyApplication.callEntityList.contains(udpEntity)) {
|
|
if (isHaveThisWSHtype(udpEntity)) return;
|
|
if (isHaveThisWSHtype(udpEntity)) return;
|
|
@@ -1472,8 +1514,15 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
break;
|
|
break;
|
|
case "call_12": //总控制室呼叫护士主机
|
|
case "call_12": //总控制室呼叫护士主机
|
|
if (isMySelfMachine(nurseHostID)) {
|
|
if (isMySelfMachine(nurseHostID)) {
|
|
- if (!PalyPhonetics.speakEntityList.contains(udpEntity) && Constants.CALL_STATE.equals(Constants.STANDBY)) {
|
|
|
|
- addPhonetics(udpEntity);
|
|
|
|
|
|
+ if (enableTTS) {
|
|
|
|
+ //使用TTS播报
|
|
|
|
+ if (Constants.CALL_STATE.equals(Constants.STANDBY)) {
|
|
|
|
+ startSpeak(udpEntity);
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (!PalyPhonetics.speakEntityList.contains(udpEntity) && Constants.CALL_STATE.equals(Constants.STANDBY)) {
|
|
|
|
+ addPhonetics(udpEntity);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (!MyApplication.callEntityList.contains(udpEntity)) {
|
|
if (!MyApplication.callEntityList.contains(udpEntity)) {
|
|
MyApplication.callEntityList.add(udpEntity);
|
|
MyApplication.callEntityList.add(udpEntity);
|
|
@@ -1491,8 +1540,15 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
case "call_14": //医生主机呼叫护士主机
|
|
case "call_14": //医生主机呼叫护士主机
|
|
Log.e("qqqq","nurseHostID "+nurseHostID);
|
|
Log.e("qqqq","nurseHostID "+nurseHostID);
|
|
if (isMySelfMachine(nurseHostID)) {
|
|
if (isMySelfMachine(nurseHostID)) {
|
|
- if (!PalyPhonetics.speakEntityList.contains(udpEntity) && Constants.CALL_STATE.equals(Constants.STANDBY)) {
|
|
|
|
- addPhonetics(udpEntity);
|
|
|
|
|
|
+ if (enableTTS) {
|
|
|
|
+ //使用TTS播报
|
|
|
|
+ if (Constants.CALL_STATE.equals(Constants.STANDBY)) {
|
|
|
|
+ startSpeak(udpEntity);
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (!PalyPhonetics.speakEntityList.contains(udpEntity) && Constants.CALL_STATE.equals(Constants.STANDBY)) {
|
|
|
|
+ addPhonetics(udpEntity);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (!MyApplication.callEntityList.contains(udpEntity)) {
|
|
if (!MyApplication.callEntityList.contains(udpEntity)) {
|
|
MyApplication.callEntityList.add(udpEntity);
|
|
MyApplication.callEntityList.add(udpEntity);
|
|
@@ -1664,6 +1720,12 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
if (null != deleteUdpEntity) {
|
|
if (null != deleteUdpEntity) {
|
|
String roomNumber = deleteUdpEntity.getRoomNumber();
|
|
String roomNumber = deleteUdpEntity.getRoomNumber();
|
|
if (StringUtils.notEmpty(roomNumber)) {
|
|
if (StringUtils.notEmpty(roomNumber)) {
|
|
|
|
+ //if (null != loopVoice) {
|
|
|
|
+ // loopVoice.setPalyDismiss(true);
|
|
|
|
+ //}
|
|
|
|
+ if (enableTTS) {
|
|
|
|
+ SpeechUtil.getInstance().stopSpeak();
|
|
|
|
+ }
|
|
for (int i = 0; i < PalyPhonetics.speakEntityList.size(); i++) {
|
|
for (int i = 0; i < PalyPhonetics.speakEntityList.size(); i++) {
|
|
if (roomNumber.equals(PalyPhonetics.speakEntityList.get(i).getRoomNumber())) {
|
|
if (roomNumber.equals(PalyPhonetics.speakEntityList.get(i).getRoomNumber())) {
|
|
if (null != loopingUdpentity && loopingUdpentity.equals(PalyPhonetics.speakEntityList.get(i))) {
|
|
if (null != loopingUdpentity && loopingUdpentity.equals(PalyPhonetics.speakEntityList.get(i))) {
|
|
@@ -1732,6 +1794,48 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
// VoiceManagerUtil.setCallVoice(getActivity(), StringUtils.parseInt(systemInfoEntity.getNightSipVol()) );
|
|
// VoiceManagerUtil.setCallVoice(getActivity(), StringUtils.parseInt(systemInfoEntity.getNightSipVol()) );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ SpeechUtil.getInstance().setSpeechLoopCount(speakLooping);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //语音播报
|
|
|
|
+ private void startSpeak(UdpEntity entity) {
|
|
|
|
+ loopingUdpentity = entity;
|
|
|
|
+ showUrgentWindow(entity);
|
|
|
|
+ String type = entity.getType();
|
|
|
|
+ String rnb = entity.getRoomNumber();
|
|
|
|
+ String bnb = entity.getBedNumber();
|
|
|
|
+ String text = "";
|
|
|
|
+ switch (type) {
|
|
|
|
+ case DOOR_CALL: //门口机
|
|
|
|
+ text = rnb + "房门口机呼叫";
|
|
|
|
+ SpeechUtil.getInstance().newSpeech(text);
|
|
|
|
+ break;
|
|
|
|
+ case Constants.MAIN_CALL://主机
|
|
|
|
+ text = rnb + "号主机呼叫";
|
|
|
|
+ SpeechUtil.getInstance().newSpeech(text);
|
|
|
|
+ break;
|
|
|
|
+ case Constants.SON_CALL://床位
|
|
|
|
+ case Constants.TRADITION_CALL://传统床位
|
|
|
|
+ text = rnb + "房" + bnb + "床呼叫";
|
|
|
|
+ SpeechUtil.getInstance().newSpeech(text);
|
|
|
|
+ break;
|
|
|
|
+ case Constants.ROOMHELP_CALL://请求增援
|
|
|
|
+ text = rnb + "房" + bnb + "床请求增援";
|
|
|
|
+ SpeechUtil.getInstance().newSpeech(text);
|
|
|
|
+ break;
|
|
|
|
+ case Constants.WSHROOM_CALL://卫生间
|
|
|
|
+ text = rnb + "房卫生间请求增援";
|
|
|
|
+ SpeechUtil.getInstance().newSpeech(text);
|
|
|
|
+ break;
|
|
|
|
+ case Constants.MANAGER_CALL://总控机
|
|
|
|
+ text = "总控制室呼叫";
|
|
|
|
+ SpeechUtil.getInstance().newSpeech(text);
|
|
|
|
+ break;
|
|
|
|
+ case Constants.DOCTOR_CALL://医生主机
|
|
|
|
+ text = "医生主机呼叫";
|
|
|
|
+ SpeechUtil.getInstance().newSpeech(text);
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -1771,6 +1875,9 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
if (null != loopVoice) {
|
|
if (null != loopVoice) {
|
|
loopVoice.setPalyDismiss(true);
|
|
loopVoice.setPalyDismiss(true);
|
|
}
|
|
}
|
|
|
|
+ if (enableTTS) {
|
|
|
|
+ SpeechUtil.getInstance().stopSpeak();
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
if (PalyPhonetics.speakEntityList.contains(udpEntity)) {//将播报列表也删除该元素
|
|
if (PalyPhonetics.speakEntityList.contains(udpEntity)) {//将播报列表也删除该元素
|
|
LogUtil.d("sendTransferForSon", "-----2222----");
|
|
LogUtil.d("sendTransferForSon", "-----2222----");
|
|
@@ -1805,6 +1912,9 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
if (null != loopVoice) {
|
|
if (null != loopVoice) {
|
|
loopVoice.setPalyDismiss(true);
|
|
loopVoice.setPalyDismiss(true);
|
|
}
|
|
}
|
|
|
|
+ if (enableTTS) {
|
|
|
|
+ SpeechUtil.getInstance().stopSpeak();
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
if (PalyPhonetics.speakEntityList.contains(callEntityList.get(i))) {//将播报列表也删除该元素
|
|
if (PalyPhonetics.speakEntityList.contains(callEntityList.get(i))) {//将播报列表也删除该元素
|
|
PalyPhonetics.speakEntityList.remove(udpEntity);
|
|
PalyPhonetics.speakEntityList.remove(udpEntity);
|
|
@@ -2191,7 +2301,12 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
} else {
|
|
} else {
|
|
//结束通话将当前呼叫对象语音关闭; 减少由于SIP结束回调的延时而出现重叠(之前是写在SIP结束回调的;在连续狂打电话的情况下效果重叠不行)
|
|
//结束通话将当前呼叫对象语音关闭; 减少由于SIP结束回调的延时而出现重叠(之前是写在SIP结束回调的;在连续狂打电话的情况下效果重叠不行)
|
|
if (null != loopingUdpentity && loopingUdpentity.equals(callingEntity)) {
|
|
if (null != loopingUdpentity && loopingUdpentity.equals(callingEntity)) {
|
|
- loopVoice.setPalyDismiss(true);
|
|
|
|
|
|
+ if (null != loopVoice) {
|
|
|
|
+ loopVoice.setPalyDismiss(true);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (enableTTS) {
|
|
|
|
+ SpeechUtil.getInstance().stopSpeak();
|
|
}
|
|
}
|
|
endCall(); //否则就挂断电话!
|
|
endCall(); //否则就挂断电话!
|
|
}
|
|
}
|
|
@@ -2212,7 +2327,12 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
setCallVoice(0);//0为外喇叭 1为 手柄
|
|
setCallVoice(0);//0为外喇叭 1为 手柄
|
|
if (handTelephone) {
|
|
if (handTelephone) {
|
|
if (null != loopingUdpentity && loopingUdpentity.equals(callingEntity)) {
|
|
if (null != loopingUdpentity && loopingUdpentity.equals(callingEntity)) {
|
|
- loopVoice.setPalyDismiss(true);
|
|
|
|
|
|
+ if (null != loopVoice) {
|
|
|
|
+ loopVoice.setPalyDismiss(true);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (enableTTS) {
|
|
|
|
+ SpeechUtil.getInstance().stopSpeak();
|
|
}
|
|
}
|
|
endCall(); //挂断电话!
|
|
endCall(); //挂断电话!
|
|
}
|
|
}
|