Discussions

Ask a Question
Back to All

How to deal S3 file

https://docs.d-id.com/discuss/642a92f3295490002f301652
I get same result like this

When I create the clip with background url and audio script, I get pending url as S3

How can I fix this


{
"presenter_id": "amy-Aq6OmGZnMt",
"script": {
"type": "audio",
"subtitles": "false",
"audio_url": "https://api.bestglobalal2.com/api/get-audio/combined_audio_752a871a-6205-44e3-a9d9-518fd65763f1.mp3",
"background":{
"source_url":"https://images.pexels.com/photos/259915/pexels-photo-259915.jpeg"
}
},
"config": {"result_format": "mp4"}
}


response is

{
"id": "clp_GfSDh-UOhIn2RkWK9UWhw",
"created_at": "2024-10-03T15:06:15.435Z",
"object": "clip",
"status": "created"
}


when get clip

{
"script": {
"type": "audio",
"subtitles": false,
"audio_url": "https://api.bestglobalal2.com/api/get-audio/combined_audio_752a871a-6205-44e3-a9d9-518fd65763f1.mp3"
},
"version": "v1",
"audio_url": "https://d-id-clips-prod.s3.us-west-2.amazonaws.com/google-oauth2%7C107673349654177951041/clp_kMwpge5wA7D2zQ2QLtQKZ/audio.wav?AWSAccessKeyId=AKIA5CUMPJBIJ7CPKJNP&Expires=1728061544&Signature=PmkeMkY%2BbAEoMzJWIgWwTxkyh3M%3D",
"created_at": "2024-10-03T17:05:44.721Z",
"config": {
"logo": {
"url": "ai",
"position": [
0,
0
]
},
"result_format": ".mp4",
"fluent": false,
"motion_factor_kp": [
1,
0.75
]
},
"source_url": "https://clips-presenters.d-id.com/amy/Aq6OmGZnMt/Vcq0R4a8F0/thumbnail.png",
"created_by": "google-oauth2|107673349654177951041",
"status": "started",
"driver_id": "Vcq0R4a8F0",
"modified_at": "2024-10-03T17:05:44.913Z",
"presenter_id": "amy-Aq6OmGZnMt",
"subtitles": false,
"id": "clp_kMwpge5wA7D2zQ2QLtQKZ",
"duration": 27.689796,
"started_at": "2024-10-03T17:05:44.799",
"pending_url": "s3://d-id-clips-prod/google-oauth2|107673349654177951041/clp_kMwpge5wA7D2zQ2QLtQKZ/amy-Aq6OmGZnMt.mp4",
"user": {
"features": [
"stitch",
"no-watermark",
"clips:write",
"api-keys:write",
"scene",
null
],
"stripe_customer_id": "cus_QwaRMTGmqNaKgJ",
"stripe_plan_group": "deid-api-launch",
"authorizer": "basic",
"owner_id": "google-oauth2|107673349654177951041",
"id": "google-oauth2|107673349654177951041",
"plan": "deid-api-launch",
"email": "********",
"stripe_price_id": "price_1OR80RJxEKZ2zAynHfLq5M84"
},
"owner_id": "google-oauth2|107673349654177951041"
}