// Created by liangshi on 2026/1/28.
//
-//class CCConfig{
-// static var appLanguage = AppSupportLanguage.english
-//
-// static let wxAppID = "wxd9d677e0024caa90"
-// static let wxUniversalLink = "https://dc-cloud-pub.tos-cn-guangzhou.volces.com/app/"
-// static let appStoreLink = "https://itunes.apple.com/cn/app/6752551504?mt=8"
-// /// 版本检测
-// static let appStoreVersionURL = "https://itunes.apple.com/cn/lookup?id=6752551504"
-//
-// /// 服务器地址
-// // static let baseURL = "http://118.145.178.188:32000"
-// static let baseURL = "https://app-api.deepchords.com"
-// //海外版
-// // static let baseURL = "https://app-api.deepchords-ai.com"
-//
-// /// 用户隐私协议地址
-// static let yonghuBaseURL = "https://pub-tos.deepchords.com"
-//}
-
-
-
-
class CCConfig{
static var appLanguage = AppSupportLanguage.english
-
- static let wxAppID = "wxeb3291e720293abc"
- static let wxUniversalLink = "https://www.playboykq.com/app/"
- static let appStoreLink = "https://itunes.apple.com/cn/app/6757697090?mt=8"
+
+ static let wxAppID = "wxd9d677e0024caa90"
+ static let wxUniversalLink = "https://dc-cloud-pub.tos-cn-guangzhou.volces.com/app/"
+ static let appStoreLink = "https://itunes.apple.com/cn/app/6752551504?mt=8"
/// 版本检测
- static let appStoreVersionURL = "https://itunes.apple.com/cn/lookup?id=6757697090"
-
+ static let appStoreVersionURL = "https://itunes.apple.com/cn/lookup?id=6752551504"
+
/// 服务器地址
- static let baseURL = "https://app-api.playboykq.com"
-
+ // static let baseURL = "http://118.145.178.188:32000"
+ static let baseURL = "https://app-api.deepchords.com"
+ //海外版
+ // static let baseURL = "https://app-api.deepchords-ai.com"
+
/// 用户隐私协议地址
- static let yonghuBaseURL = "https://pub-cdn.playboykq.com"
-
+ static let yonghuBaseURL = "https://pub-tos.deepchords.com"
}
+
+
+
+
+//class CCConfig{
+// static var appLanguage = AppSupportLanguage.english
+//
+// static let wxAppID = "wxeb3291e720293abc"
+// static let wxUniversalLink = "https://www.playboykq.com/app/"
+// static let appStoreLink = "https://itunes.apple.com/cn/app/6757697090?mt=8"
+// /// 版本检测
+// static let appStoreVersionURL = "https://itunes.apple.com/cn/lookup?id=6757697090"
+//
+// /// 服务器地址
+// static let baseURL = "https://app-api.playboykq.com"
+//
+// /// 用户隐私协议地址
+// static let yonghuBaseURL = "https://pub-cdn.playboykq.com"
+//
+//}
RSManager.shared.chat.eventCallBack = {[weak self] event in
guard let self = self else {return}
if event.event == "started" {
- recordMamager.start()
+ startRecord()
}
else if event.event == "failed"{
- toolBar.recordBtn.state = .active
+ startRecord()
}
else if event.event == "vad.active"{
toolBar.recordBtn.state = .active
}
else if event.event == "asr.started"{
- toolBar.recordBtn.state = .asr
+// toolBar.recordBtn.state = .asr
CCAiManager.stopPlay()
}
else if event.event == "asr.completed"{
- recordMamager.stop()
+ stopRecord()
}
else if event.event == "llm.created"{
toolBar.recordBtn.state = .respose
CCAiManager.preparePlayBlueTooth()
}
else if event.event == "tts.completed"{
- recordMamager.start()
- toolBar.recordBtn.state = .active
+ startRecord()
}
}
RSManager.shared.chat.ttsCallBack = { data in
}
App.shared.goToPage(vc)
}
+ func startRecord(){
+ toolBar.recordBtn.state = .active
+ recordMamager.start()
+ }
+ func stopRecord(){
+ recordMamager.stop()
+ }
}
extension RSChatVC:RSRecordBarDelegate{
func recordBarIntterupt(_ toolBar: RSRecordBar) {
- recordMamager.start()
CCAiManager.stopPlay()
- toolBar.recordBtn.state = .active
+ startRecord()
}
func recordBarStart(_ toolBar: RSRecordBar) {
}
func recordBarStop(_ toolBar: RSRecordBar) {
- recordMamager.stop()
+ stopRecord()
RSManager.shared.chat.cancelSpeedch()
CCAiManager.stopPlay()
}