|
@@ -273,6 +273,14 @@ class DeepSeekService
|
|
|
$existed_role_info[$role] = [
|
|
|
'timbre_type' => $word['voice_type'],
|
|
|
'timbre_name' => $word['voice_name'],
|
|
|
+ 'emotion' => $word['emotion'],
|
|
|
+ 'emotion_type' => $word['emotion_type'],
|
|
|
+ 'speed_ratio' => $word['speed_ratio'],
|
|
|
+ 'loudness_ratio'=> $word['loudness_ratio'],
|
|
|
+ 'emotion_scale' => $word['emotion_scale'],
|
|
|
+ 'pitch' => $word['pitch']
|
|
|
+ ];
|
|
|
+ $word['paragraph_audio_url'
|
|
|
];
|
|
|
$word['paragraph_audio_url'] = '';
|
|
|
|
|
@@ -472,8 +480,9 @@ class DeepSeekService
|
|
|
}
|
|
|
|
|
|
public function emotionGroups($data) {
|
|
|
+ $id = getProp($data, 'group_id');
|
|
|
$group_name = getProp($data, 'group_name');
|
|
|
- $label = getProp($data, 'label');
|
|
|
+ $voice_type = getProp($data, 'voice_type');
|
|
|
|
|
|
$query = DB::table('mp_emotion_groups')->where('is_enabled', 1)->select('id as group_id', 'group_name',
|
|
|
'emotion', 'emotion_type', 'voice_name', 'voice_type', 'speed_ratio', 'loudness_ratio', 'emotion_scale',
|
|
@@ -483,8 +492,12 @@ class DeepSeekService
|
|
|
$query->where('group_name', 'like', "%{$group_name}%");
|
|
|
}
|
|
|
|
|
|
- if ($label) {
|
|
|
- $query->where('label', 'like', $label);
|
|
|
+ if ($id) {
|
|
|
+ $query->where('id', $id);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ($voice_type) {
|
|
|
+ $query->where('voice_type', $voice_type);
|
|
|
}
|
|
|
|
|
|
return $query->orderBy('id')->get()->map(function ($value) {
|