Discussions

Ask a Question
Back to All

I can't receive aws keyid of resul_url.

url = "https://api.d-id.com/talks"
payload = {
"script": {
"type": "text",
"subtitles": False,
"provider": {
"type": "microsoft",
"voice_id": "en-US-JennyNeural",
"voice_config": {
"style": "string",
"rate": "0.5",
"pitch": "+2st"
}
},
"input": "This is an example text",
"ssml": True
},
"config": {
# "logo": {
# "position": [0, 500],
# "url": "string"
# },
"fluent": True,
"pad_audio": 0,
"driver_expressions": {
"expressions": [
{
"start_frame": 0,
"expression": "neutral",
"intensity": 0
}
],
"transition_frames": 0
},
"align_driver": True,
"align_expand_factor": 0,
"auto_match": True,
"motion_factor": 0,
"normalization_factor": 0,
"sharpen": True,
"stitch": True,
"result_format": "mp4",
"output_resolution": 512
},
"face": {
"top_left": [0, 0],
"size": 512
},
"source_url": "source url",
"driver_url": "bank://natural",
"user_data": "string",
"name": "string",
"persist": True
}
headers = {
"accept": "application/json",
"content-type": "application/json",
"authorization": "Basic API KEY"
}

response = requests.post(url, json=payload, headers=headers)
response_json = response.json()
talk_id = response_json["id"]

status_url = f"https://api.d-id.com/talks/{talk_id}"
result_response = requests.get(status_url, headers=headers)
result_response_json = json.loads(result_response.text)
print(result_response_json)



///// print(result_response_json) /////


{'user': {'features': ['stitch', 'no-watermark', 'clips:write', 'api-keys:write', 'subtitles', None], 'stripe_customer_id': 'cus_QHhkMo1vIQPmDC', 'stripe_plan_group': 'deid-pro', 'authorizer': 'basic', 'owner_id': 'google-oauth2|103092469304507870803', 'id': 'google-oauth2|103092469304507870803', 'plan': 'deid-pro', 'email': '[email protected]', 'stripe_price_id': 'price_1NkPpTJxEKZ2zAynRq5I2lqu'}, 'script': {'length': 23, 'ssml': True, 'subtitles': False, 'type': 'text', 'provider': {'type': 'microsoft', 'voice_id': 'en-US-JennyNeural',
'voice_config': {'rate': '0.5', 'style': 'string', 'pitch': '+2st'}}}, 'metadata': {'driver_url': 'bank://natural/driver-4/original', 'mouth_open': False, 'num_faces': 1, 'num_frames': 89, 'processing_fps': 34.12846260095697, 'resolution': [512, 512], 'size_kib': 648.9482421875}, 'audio_url': 'https://d-id-talks-persistent-prod.s3.us-west-2.amazonaws.com/google-oauth2%7C103092469304507870803/tlk_idvj_MAR06BqPwzG1Q42a/microsoft.wav?AWSAccessKeyId=AKIA5CUMPJBIK65W6FGA&Expires=1719041853&Signature=GggbmYy3oBJM6Jcp5Rb58EEMgqs%3D', 'created_at': '2024-06-21T07:37:33.330Z', 'face': {'mask_confidence': 1, 'top_left': [0, 0], 'face_id': 0, 'overlap': 'unknown', 'size': 512, 'detect_confidence': 1}, 'persist': True, 'user_data': 'string', 'config': {'stitch': False, 'align_driver': True, 'sharpen': True, 'normalization_factor': 1, 'result_format': '.mp4', 'fluent': False, 'pad_audio': 0, 'reduce_noise': False, 'auto_match': True, 'show_watermark': False, 'logo': {'url': 'ai', 'posiexpand_factor': 0.3}, 'source_url': 'https://d-id-talks-persistent-prod.s3.us-west-2.amazonaws.com/google-oauth2%7C103092469304507870803/tlk_idvj_MAR06BqPwzG1Q42a/so6.jpg?AWSAccessKeyId=AKIA5CUMPJBIK65W6FGA&Expires=1719041853&Signature=A8EGYdO79sIIyQSLiEEXGzL0BzE%3D', 'created_by': 'google-oauth2|103092469304507870803', 'status'
'name': 'string', 'modified_at': '2024-06-21T07:37:36.061Z', 'user_id': 'google-oauth2|103092469304507870803', 'subtitles': False, 'id': 'tlk_idvj_MAR06BqPwzG1Q42a', 'duration': 4, 'started_at': '2024-06-21T07:37:333.403', 'result_url': 's3://d-id-talks-persistent-prod/google-oauth2|103092469304507870803/tlk_idvj_MAR06BqPwzG1Q42a/1718955453330.mp4'}




question : Hello, there. Why is the aws keyid in result_url not showing up??? I can't download the video. Thank you.