|
@@ -24,9 +24,9 @@ class BFVoiceRecordManager: NSObject {
|
|
var subtitleRecordHandle: ((String?, String?) -> Void)?
|
|
var subtitleRecordHandle: ((String?, String?) -> Void)?
|
|
|
|
|
|
// 字幕服务 dubug信息
|
|
// 字幕服务 dubug信息
|
|
- var NeoNuiDebugHandle: ((String?) -> Void)?
|
|
|
|
|
|
+ var NeoNuiDebugHandle: ((String?,Bool) -> Void)?
|
|
// 录音机 dubug信息
|
|
// 录音机 dubug信息
|
|
- var AudioQueueRecoderDebugHandle: ((String?) -> Void)?
|
|
|
|
|
|
+ var AudioQueueRecoderDebugHandle: ((String?,Bool) -> Void)?
|
|
|
|
|
|
// 音频文件模型
|
|
// 音频文件模型
|
|
var voiceModel: PQVoiceModel?
|
|
var voiceModel: PQVoiceModel?
|
|
@@ -52,7 +52,7 @@ class BFVoiceRecordManager: NSObject {
|
|
func startRecord() {
|
|
func startRecord() {
|
|
BFLog(2, message: "\(debugHeader)开始录音::: \(Date().timeIntervalSince1970)")
|
|
BFLog(2, message: "\(debugHeader)开始录音::: \(Date().timeIntervalSince1970)")
|
|
if isStoping {
|
|
if isStoping {
|
|
- AudioQueueRecoderDebugHandle?("正在停止中,这次开始无效.")
|
|
|
|
|
|
+ AudioQueueRecoderDebugHandle?("正在停止中,这次开始无效.",false)
|
|
BFLog(2, message: "\(debugHeader)正在停止中,这次开始无效.")
|
|
BFLog(2, message: "\(debugHeader)正在停止中,这次开始无效.")
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -154,13 +154,14 @@ extension BFVoiceRecordManager: BFRecorderManagerDelegate {
|
|
subtitleRecordHandle?(asrResult, noiseFilePath)
|
|
subtitleRecordHandle?(asrResult, noiseFilePath)
|
|
}
|
|
}
|
|
|
|
|
|
- public func neoNuiDebugHandle(_ msg: String) {
|
|
|
|
|
|
+
|
|
|
|
+ public func neoNuiDebugHandle(_ msg: String,isShow:Bool) {
|
|
BFLog(2, message: "neoNuiDebugHandle :\(msg)")
|
|
BFLog(2, message: "neoNuiDebugHandle :\(msg)")
|
|
- NeoNuiDebugHandle?(msg)
|
|
|
|
|
|
+ NeoNuiDebugHandle?(msg,isShow)
|
|
}
|
|
}
|
|
-
|
|
|
|
- public func audioQueueRecoderDebugHandle(_ msg: String) {
|
|
|
|
|
|
+ public func audioQueueRecoderDebugHandle(_ msg: String, isShow: Bool) {
|
|
BFLog(2, message: "audioQueueRecoderDebugHandle :\(msg)")
|
|
BFLog(2, message: "audioQueueRecoderDebugHandle :\(msg)")
|
|
- AudioQueueRecoderDebugHandle?(msg)
|
|
|
|
|
|
+ AudioQueueRecoderDebugHandle?(msg,isShow)
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|