lh 5 päivää sitten
vanhempi
commit
a641a564f6
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      app/Services/DeepSeek/DeepSeekService.php

+ 2 - 1
app/Services/DeepSeek/DeepSeekService.php

@@ -224,13 +224,14 @@ class DeepSeekService
             // 如果音频存在并且参数都未改变则使用已生成的音频
             if (getProp($paragraph, 'paragraph_audio_url')) {
                 if (getProp($paragraph, 'role') == getProp($word, 'role') && getProp($paragraph, 'text') == getProp($word, 'text') && 
-                    getProp($paragraph, 'emotion_type') == getProp($word, 'emotion_type') && getProp($paragraph, 'voice_type') == getProp($word, 'voice_type') && 
+                    getProp($paragraph, 'voice_type') == getProp($word, 'voice_type') && 
                     getProp($paragraph, 'speed_ratio') == getProp($word, 'speed_ratio') && getProp($paragraph, 'loudness_ratio') == getProp($word, 'loudness_ratio') &&
                     getProp($paragraph, 'emotion_scale') == getProp($word, 'emotion_scale'))
                 {
                         $word['paragraph_audio_url'] = getProp($paragraph, 'paragraph_audio_url');
                 }
             }
+            dd($paragraph, $word);
 
             // 组装章节分句音频数据
             $tmp = $word;