浏览代码

添加 LOG

jsonwang 3 年之前
父节点
当前提交
ab9be37530
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      BFRecordScreenKit/Classes/BFRecordExport.swift

+ 5 - 0
BFRecordScreenKit/Classes/BFRecordExport.swift

@@ -195,6 +195,11 @@ public class BFRecordExport {
                             sticker.locationPath = mod.wavFilePath
                             sticker.locationPath = mod.wavFilePath
                             sticker.volumeGain = 100 // Float64(model.volume)
                             sticker.volumeGain = 100 // Float64(model.volume)
                             voiceList.append(sticker)
                             voiceList.append(sticker)
+                            
+                            
+                            let ttsAudioAsset = AVURLAsset(url: URL(fileURLWithPath: sticker.locationPath), options: avAssertOptions)
+                      
+                            BFLog(message: "导出使用的音频文件 timelineIn:\(sticker.timelineIn) timelineOut\(sticker.timelineOut)  sticker.locationPath\( sticker.locationPath) tss语音时长\(ttsAudioAsset.duration.seconds)")
                         }
                         }
                     }
                     }
                 }
                 }