Discussions
How do I get the video frames after creating a talk stream?
18 days ago by theprimetux
import requests
url = "https://api.d-id.com/talks/streams/id"
payload = {
"script": {
"type": "text",
"provider": {
"type": "microsoft",
"voice_id": "Sara"
},
"ssml": "false"
},
"config": {
"fluent": "false",
"pad_audio": "0.0"
},
"audio_optimization": "2"
}
headers = {
"accept": "application/json",
"content-type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
How do I get the video & audio frames after creating talk stream using the above code from documentation?