|
@@ -4670,7 +4670,7 @@ class AnimeService
|
|
|
|
|
|
|
|
// 如果有首帧图片,添加到content中
|
|
// 如果有首帧图片,添加到content中
|
|
|
if ($hasImage) {
|
|
if ($hasImage) {
|
|
|
- if (in_array($model, ['doubao-seedance-2-0-260128', 'doubao-seedance-2-0-fast-260128', 'baidu-doubao-seedance-2-0-260128', 'baidu-doubao-seedance-2-0-fast-260128', 'baidu-doubao-seedance-2-0-mini-260615'])) {
|
|
|
|
|
|
|
+ if (in_array($model, ['doubao-seedance-2-0-260128', 'doubao-seedance-2-0-fast-260128', 'baidu_doubao-seedance-2-5-260628', 'baidu-doubao-seedance-2-0-260128', 'baidu-doubao-seedance-2-0-fast-260128', 'baidu-doubao-seedance-2-0-mini-260615'])) {
|
|
|
$videoParams['content'][] = [
|
|
$videoParams['content'][] = [
|
|
|
'type' => 'image_url',
|
|
'type' => 'image_url',
|
|
|
'image_url' => [
|
|
'image_url' => [
|
|
@@ -4810,7 +4810,7 @@ class AnimeService
|
|
|
$videoParams['video_duration'] = max(4, min(12, ceil($audioDuration)));
|
|
$videoParams['video_duration'] = max(4, min(12, ceil($audioDuration)));
|
|
|
}
|
|
}
|
|
|
$task = $this->aiVideoGenerationService->createKuaikuaiVideoTask($videoParams);
|
|
$task = $this->aiVideoGenerationService->createKuaikuaiVideoTask($videoParams);
|
|
|
- } elseif ($canUseAudio && in_array($model, ['doubao-seedance-2-0-260128', 'doubao-seedance-2-0-fast-260128', 'baidu-doubao-seedance-2-0-260128', 'baidu-doubao-seedance-2-0-fast-260128', 'baidu-doubao-seedance-2-0-mini-260615'])) {
|
|
|
|
|
|
|
+ } elseif ($canUseAudio && in_array($model, ['doubao-seedance-2-0-260128', 'doubao-seedance-2-0-fast-260128', 'baidu_doubao-seedance-2-5-260628', 'baidu-doubao-seedance-2-0-260128', 'baidu-doubao-seedance-2-0-fast-260128', 'baidu-doubao-seedance-2-0-mini-260615'])) {
|
|
|
// 检查是否为 Seedance 2.0 模型,如果是则需要处理配音音频
|
|
// 检查是否为 Seedance 2.0 模型,如果是则需要处理配音音频
|
|
|
// 添加配音音频到content中
|
|
// 添加配音音频到content中
|
|
|
$videoParams['content'][] = [
|
|
$videoParams['content'][] = [
|
|
@@ -4873,6 +4873,7 @@ class AnimeService
|
|
|
'baidu-doubao-seedance-2-0-260128',
|
|
'baidu-doubao-seedance-2-0-260128',
|
|
|
'baidu-doubao-seedance-2-0-fast-260128',
|
|
'baidu-doubao-seedance-2-0-fast-260128',
|
|
|
'baidu-doubao-seedance-2-0-mini-260615',
|
|
'baidu-doubao-seedance-2-0-mini-260615',
|
|
|
|
|
+ 'baidu_doubao-seedance-2-5-260628',
|
|
|
], true);
|
|
], true);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -5066,7 +5067,7 @@ class AnimeService
|
|
|
|
|
|
|
|
// 如果有首帧图片,添加到content中
|
|
// 如果有首帧图片,添加到content中
|
|
|
if ($hasImage) {
|
|
if ($hasImage) {
|
|
|
- if (in_array($model, ['doubao-seedance-2-0-260128', 'doubao-seedance-2-0-fast-260128', 'doubao-seedance-2.0', 'baidu-doubao-seedance-2-0-260128', 'baidu-doubao-seedance-2-0-fast-260128', 'baidu-doubao-seedance-2-0-mini-260615'])) {
|
|
|
|
|
|
|
+ if (in_array($model, ['doubao-seedance-2-0-260128', 'doubao-seedance-2-0-fast-260128', 'doubao-seedance-2.0', 'baidu_doubao-seedance-2-5-260628', 'baidu-doubao-seedance-2-0-260128', 'baidu-doubao-seedance-2-0-fast-260128', 'baidu-doubao-seedance-2-0-mini-260615'])) {
|
|
|
$videoParams['content'][] = [
|
|
$videoParams['content'][] = [
|
|
|
'type' => 'image_url',
|
|
'type' => 'image_url',
|
|
|
'image_url' => [
|
|
'image_url' => [
|