Discussions
Error in response: {'kind': 'UnknownError', 'description': 'Internal Server Error'}
6 months ago by priyankakittur3
Facing this issue, for endpoint: "https://api.d-id.com/talks", payload:
with open(source_url, "rb") as image_file:
base64_image = base64.b64encode(image_file.read()).decode("utf-8")
payload = {
"script": {
"type": "text",
"subtitles": "false",
"provider": {
"type": "microsoft",
"voice_id": "en-US-JennyNeural"
},
"ssml": "false",
"input": input_text
},
"config": {
"fluent": "false",
"pad_audio": "0.0"
},
"source_url": base64_image
}