通话录音调试
authorliangzhenying <867174124@qq.com>
Wed, 31 Dec 2025 11:00:22 +0000 (19:00 +0800)
committerliangzhenying <867174124@qq.com>
Wed, 31 Dec 2025 11:00:22 +0000 (19:00 +0800)
DeepChordsSdk_iOS/DeepChordsSdk/Example/DeepChordsSdk/DCCallRecord.swift
DeepChordsSdk_iOS/DeepChordsSdk/Example/DeepChordsSdk/DeepChordsAiSdk.swift
ShenYin/ShenYin/Sdk/DcSdk/opus/OpusManager.m

index 48c6ba8..b293dd0 100644 (file)
@@ -57,7 +57,7 @@ public class DCCallRecord {
         } recognizeText: { [weak self]  model in
             guard let self = self else {return}
             guard let model = model else {return}
-            DCLogger.debug(model.channel,"asr =",model.textResult)
+            DCLogger.debug(model.channel,"asr =",model.definiteIndex,model.textResult)
             if let text = model.textResult,!text.isEmpty{
                 
                 if model.channel == 1 {
@@ -90,7 +90,7 @@ public class DCCallRecord {
                         return str
                     }).joined(separator: "\n")
                     
-                    asrCallback?(asrOtherText)
+                    asrOtherCallback?(asrOtherText)
                 }
 
             }
index f11632f..764d4ff 100644 (file)
@@ -18,7 +18,7 @@ public class DeepChordsAiSdk{
 
         StarburstConfig.shared().switch(to: .ble)
         StarburstConfig.shared().appId = "prjzVnOEpKL1N"
-        StarburstConfig.shared().isDebug = true
+        StarburstConfig.shared().isDebug = false
         //MARK: 配置缓存路径
         StarburstConfig.shared().sdkFolder = NSTemporaryDirectory()
 //        StarburstConfig.shared().sdkFolder = NSHomeDirectory() + "/Documents/DeepChordsSdk"
index 68bc91f..947d8b1 100644 (file)
@@ -47,7 +47,7 @@
 
 - (void)pcmData:(NSNotification *)note{
     NSData *data = [note object];
-    NSLog(@"--->output: %lu",(unsigned long)data.length);
+//    NSLog(@"--->output: %lu",(unsigned long)data.length);
     if(self.pcmDataCallback)self.pcmDataCallback(data);
 }