lh hace 3 días
padre
commit
f2eb5549b0
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. 3 3
      app/Services/DeepSeek/DeepSeekService.php
  2. 1 1
      resources/views/index.blade.php

+ 3 - 3
app/Services/DeepSeek/DeepSeekService.php

@@ -205,11 +205,11 @@ class DeepSeekService
             if (!($word['text']) || !($word['voice_type']) || !($word['voice_name'])) Utils::throwError('20003:参数不得为空');
             $role = getProp($word, 'role');
             $word['gender'] = (int)$word['gender'];
-            if (isset($emotion_list[getProp($word, 'emotion')])) {  // 如果有对应情感则赋值,没有则默认为中性(neutral)
+            if (isset($emotion_list[getProp($word, 'emotion')])) {  // 如果有对应情感则赋值,没有则默认为自然讲述(storytelling)
                 $word['emotion_type'] = $emotion_list[getProp($word, 'emotion')];
             }else {
-                $word['emotion'] = '中性';
-                $word['emotion_type'] = 'neutral';
+                $word['emotion'] = '自然讲述';
+                $word['emotion_type'] = 'storytelling';
             }
             if (!in_array($role, $existed_roles)) {
                 $existed_role_info[$role] = [

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 1 - 1
resources/views/index.blade.php