语音转文本接口,bgm路径修复
This commit is contained in:
@@ -74,7 +74,7 @@ export default async function AwemeDetail({ params }: { params: Promise<{ awemeI
|
||||
return {
|
||||
type: "video" as const,
|
||||
duration_ms: aweme!.duration_ms,
|
||||
video_url: aweme!.video_url,
|
||||
video_url: getFileUrl(aweme!.video_url),
|
||||
width: aweme!.width ?? null,
|
||||
height: aweme!.height ?? null,
|
||||
}
|
||||
@@ -82,8 +82,8 @@ export default async function AwemeDetail({ params }: { params: Promise<{ awemeI
|
||||
const aweme = post!
|
||||
return {
|
||||
type: "image" as const,
|
||||
images: aweme!.images.map(img => ({ ...img, url: getFileUrl(img.url) })),
|
||||
music_url: aweme!.music_url,
|
||||
images: aweme!.images.map(img => ({ ...img, url: getFileUrl(img.url), animated: getFileUrl(img.animated??'default-animated.png'), })),
|
||||
music_url: getFileUrl(aweme!.music_url || 'default-music.mp3'),
|
||||
};
|
||||
}
|
||||
})()
|
||||
|
||||
Reference in New Issue
Block a user