Discussions

Ask a Question
Back to All

Error when creating clip

Hello,

I'm experiencing a problem when creating a clip with the following text:"Что такое R&D и какой опыт в проведении R&D исследований у вас есть?"

method: POST

url: https://api.d-id.com/clips

body:

{
"presenter_id": "matt-9C51DD6lgH",
"driver_id": "mBHOFBuOHq",
"script": {
"input": "Что такое R&D и какой опыт в проведении R&D исследований у вас есть?",
"type": "text",
"subtitles": false,
"provider": {
"type": "microsoft",
"voice_id": "ru-RU-DmitryNeural"
},
"ssml": true
},
"config": {
"result_format": "mp4"
},
"presenter_config": {
"crop": {
"type": "rectangle",
"rectangle": {
"bottom": 0.625,
"right": 1,
"left": 0,
"top": 0.0625
}
}
},
"background": {
"color": "#f6fefe"
}
}

I get the following response:
{
"kind": "TextToSpeechProviderError",
"description": "Missing audio data",
"details": {
"provider": "microsoft",
"event": {
"privResultId": "C16FC9FA533D492B8F0C32E51C190996",
"privReason": 1,
"privErrorDetails": "' ' is an unexpected token. The expected token is ';'. Line 5, position 26. websocket error code: 1007",
"privProperties": {
"privKeys": [
"CancellationErrorCode"
],
"privValues": [
"BadRequestParameters"
]
}
}
}
}