|
@@ -2845,6 +2845,7 @@ extension BFRecordScreenController: BFTTSManagerDelegte{
|
|
voice.ttsTaskID = model.tTtaskId
|
|
voice.ttsTaskID = model.tTtaskId
|
|
voice.recordId = model.recordId
|
|
voice.recordId = model.recordId
|
|
voice.voice = model.fontName
|
|
voice.voice = model.fontName
|
|
|
|
+ BFLog(message: "加入到了段落 id\(Int(model.itemModelIndex))")
|
|
itemModels[Int(model.itemModelIndex)].voiceChangeStickers.append(voice)
|
|
itemModels[Int(model.itemModelIndex)].voiceChangeStickers.append(voice)
|
|
|
|
|
|
|
|
|
|
@@ -2925,7 +2926,7 @@ extension BFRecordScreenController: BFTTSManagerDelegte{
|
|
//指量加入 TTS 任务,1切换发音人了,2,删除段落后
|
|
//指量加入 TTS 任务,1切换发音人了,2,删除段落后
|
|
func bathPushTask(){
|
|
func bathPushTask(){
|
|
//使用不包含方法
|
|
//使用不包含方法
|
|
- for itemModel in itemModels{
|
|
|
|
|
|
+ for (idx,itemModel) in itemModels.enumerated(){
|
|
for title in itemModel.titleStickers{
|
|
for title in itemModel.titleStickers{
|
|
//加入变音缓存,
|
|
//加入变音缓存,
|
|
let ttsModel = BFTTSTaskModel.init()
|
|
let ttsModel = BFTTSTaskModel.init()
|
|
@@ -2934,7 +2935,7 @@ extension BFRecordScreenController: BFTTSManagerDelegte{
|
|
ttsModel.fontName = mSelectVoiced?.voice ?? ""
|
|
ttsModel.fontName = mSelectVoiced?.voice ?? ""
|
|
ttsModel.recordId = title.recordId ?? ""
|
|
ttsModel.recordId = title.recordId ?? ""
|
|
ttsModel.tTtaskId = getUniqueId(desc: "tTtaskId")
|
|
ttsModel.tTtaskId = getUniqueId(desc: "tTtaskId")
|
|
- ttsModel.itemModelIndex = Int32(itemModel.index)
|
|
|
|
|
|
+ ttsModel.itemModelIndex = Int32(idx)
|
|
ttsModel.text = title.text
|
|
ttsModel.text = title.text
|
|
tts?.pushTaskCache(ttsModel, autoTranslate:false)
|
|
tts?.pushTaskCache(ttsModel, autoTranslate:false)
|
|
|
|
|