|
@@ -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] = [
|